Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Iterating single line within a For Loop

by pvaldes (Chaplain)
on Jun 23, 2015 at 14:33 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1131642]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-24 20:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found