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?
[1nickt]: Tux I'm getting there ... perlbrew list | wc -l 22 :-)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2017-09-21 02:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (241 votes). Check out past polls.

    Notices?