Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Iterating single line within a For Loop

by pvaldes (Chaplain)
on Jun 23, 2015 at 14:33 UTC ( #1131642=note: print w/replies, xml ) Need Help??


in reply to Iterating single line within a For Loop

Untested

use Bio::SeqIO; $infile = Bio::SeqIO->new(-file => $ARGV[0] , '-format' => 'Fastq'); $outfile = Bio::SeqIO->new(-file => ">myfilename" , '-format' => 'genb +ank'); while ( my $seq = $infile->next_seq() ) { ...do something... # finally you could print to $outfile in genbank format (for example... or in embl, nexml, bsml, fasta, seqxml...) $outfile->write_seq($seq); }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1131642]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2019-10-22 14:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?