laziness, impatience, and hubris | |
PerlMonks |
Re: Iso electric point calculation using perlby erix (Prior) |
on Jul 19, 2013 at 23:09 UTC ( [id://1045408]=note: print w/replies, xml ) | Need Help?? |
Looking at the original code from that page, I conclude that it is the body of a subroutine, and not a standalone program. So, wrap it in a subroutine (say, calculate_protein_details and call that subroutine with 2 arguments: a protein sequence $protein (the input), and an empty hash %results (the output, which whill be filled in by the subroutine).
Output:
( Don't complicate matters and solve one problem at a time. Reading a fasta file to get its sequence is a entirely separate thing ) UPDATED: restructured the code a bit
In Section
Seekers of Perl Wisdom
|
|