in reply to Re^2: Private Utilities
in thread Private Utilities
no problem!! round robin is fine - here is a way I have done it in a liner without having to read the entire file into mem (just an example) :
example usage:# Choose first N FASTA records perl -ne 'BEGIN {$/=">";$o=0}{chomp;$o<N?(/^$/?next:print">$_"):last;$ +o++}' EXAMPLE.fa
perl -ne 'BEGIN{$/=">";$o=0}{chomp;$o<22?(/^$/?next:print">$_"):last; +$o++}' b4x_est100.fa # print the first 22 records
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Private Utilities
by thor (Priest) on Dec 02, 2005 at 04:57 UTC | |
by l3v3l (Monk) on Dec 02, 2005 at 16:33 UTC | |
by thor (Priest) on Dec 02, 2005 at 20:22 UTC |
In Section
Meditations