In a similar way write a subroutine named as countcodons to


• Write a Perl code ("my-seq-stats.pl") to emulate its two methods ("count_monomers" & "count_codons") with the following specific requirements:

o Read the fasta file with Bio::SeqIO

o Write a subroutine named as "count_monomers" to count and print the frequency of each nucleotide (in percentage), sorted by nucleotide type. The argument for the subroutine would be the sequence as a string, as in count_monomers($seqobj->seq). The return value would be a reference to a hash (the same as the $monomers in the above code).

o Hint: use hash to count unique bases

o In a similar way, write a subroutine named as "count_codons" to count and print the frequency of each codon, sorted by codons. Your codon counts should be the same as those produced by the listed code.

Solution Preview :

Prepared by a verified Expert
Programming Languages: In a similar way write a subroutine named as countcodons to
Reference No:- TGS0665025

Now Priced at $40 (50% Discount)

Recommended (93%)

Rated (4.5/5)