in reply to Parse DNA fasta file
Would have been better for you if you showed us what you came up with ... but anyway, this is one way to do it
use Bio::SeqIO my $in = Bio::SeqIO->new(-file => "test.fa" , '-format' => 'Fasta'); my $out = Bio::SeqIO->new(-file => ">out.fa" , '-format' => 'Fasta'); while ( my $seq = $in->next_seq() ) { $out->write_seq($seq) if($seq->length > 500); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parse DNA fasta file
by william.orsi (Initiate) on Nov 11, 2009 at 17:03 UTC | |
by BrowserUk (Patriarch) on Nov 11, 2009 at 17:21 UTC | |
by arun_kom (Monk) on Nov 12, 2009 at 09:07 UTC |