in reply to How to write a perl script to grab the first 100 sequences to a 227,000 sequence file?
change the 99 to 1 less than the number of sequences you want:
perl -e"BEGIN{$/=qq[\n>]}" -ple"$. == 99 && last;" yourfile.fasta >new +file.fasta
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to write a perl script to grab the first 100 sequences to a 227,000 sequence file?
by Anonymous Monk on Apr 11, 2013 at 13:18 UTC | |
by Anonymous Monk on Apr 11, 2013 at 13:24 UTC | |
by educated_foo (Vicar) on Apr 11, 2013 at 13:59 UTC |