in reply to Problems with Variable Scope in Perl
You can then code something like this:
use Bio::SeqIO; $in = Bio::SeqIO->new(-file => '$inputfile', -format => 'fasta'); while (my $seq = $in->next_seq() ) { print "fasta tag: ", $seq->id(), "sequence: ", $seq->sequence(), "\n"; }
I think you can figure out how to do the rest of your stuff once you have the fasta tag and the sequence.
In case you don't know about it, check out BioPerl for tutorials, How Do I's and script examples.
Hope this helps...
MadraghRua
yet another biologist hacking perl....
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Problems with Variable Scope in Perl
by Anonymous Monk on Nov 05, 2008 at 15:56 UTC |