good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: PROTEIN FILE help me pleaseeeby Kenosis (Priest) |
on Jan 30, 2013 at 16:59 UTC ( [id://1016101]=note: print w/replies, xml ) | Need Help?? |
You've been given excellent suggestions (!):
Not to confuse matters here, but for your future reference (since you appear to be on a bioinformatics path), consider becoming well acquainted with Bio::SeqIO and its set of related modules. Just as there are well-developed modules to parse HTML, XML, and CSV files, Bio::SeqIO lives to do the same for Fasta and other such formats. For example, to retrieve and process each sequence within a Fasta file, you can do the following:
Each sequence in the Fasta file is accessible using the $seq->seq notation. The first part before the arrow operator is the sequence object; the part after the arrow operator is the method. These methods are covered in detail in the Bio::Seq module's documentation. In the example above, the sequence is printed, but a character count could be done there, too. Hope this helps!
In Section
Seekers of Perl Wisdom
|
|