in reply to Re^2: Counting amino acids
in thread Counting amino acids

Well then replace the line I mentioned above with:

 count{$a};

Replies are listed 'Best First'.
Re^4: Counting amino acids
by yuvraj_ghaly (Sexton) on Jul 19, 2013 at 07:24 UTC

    I have sorted out the problem

    I modify this code

    $count{$a}= sprintf("%0.6f",($count{$a}/length($seq{$k})));

    to this code

    $count{$a}=length($seq{$k});

    also I have to modify this code

    my @aa= qw(A R N D C Q E G H I L K M F P S T W Y V);

    to this code

    my @aa= qw(A);