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

see the problem is I don't want any decimal. This code do division calculation between amino acid counted to overall length of sequence. I just require the amino acid counted.

Replies are listed 'Best First'.
Re^3: Counting amino acids
by mtmcc (Hermit) on Jul 19, 2013 at 07:19 UTC
    Well then replace the line I mentioned above with:

     count{$a};

      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);