Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Loading only portions of a file at any given time

by TJCooper (Beadle)
on Nov 30, 2017 at 13:23 UTC ( [id://1204589]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    >header1
    AGACATGATCGACTGGACACAATTTACGTAGCTG
    >header2
    AAATACTAGGGCAACACACACACACACCACACAC
    >header3
    AGTTAGTCCAGTAGTTTACAGTACGACTGATCGT
    
  2. or download this
    my $fasta = $ARGV[0];
    my $seqio = Bio::SeqIO->new(-file => $fasta);
    while(my $seqobj = $seqio->next_seq) {
    ...
    while (<$IN2>) {
        # Subsample the FASTA sequences
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1204589]
Approved by 1nickt
Front-paged by 1nickt
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found