Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How to write a perl script to grab the first 100 sequences to a 227,000 sequence file?

by pvaldes (Chaplain)
on Jul 26, 2012 at 21:44 UTC ( #983948=note: print w/ replies, xml ) Need Help??


in reply to How to write a perl script to grab the first 100 sequences to a 227,000 sequence file?

to grab the first 200 lines (each sequence having at least two lines) its a simple "head -n 200 myfile" problem or, if you want to be more perlish, while $my_file print if $. <= 200, but I suggest you to take a look to bioperl in any case


Comment on Re: How to write a perl script to grab the first 100 sequences to a 227,000 sequence file?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (13)
As of 2015-07-30 12:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls