Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: simple perl script to trim a FASTA fileby erix (Prior) |
on Apr 09, 2010 at 15:52 UTC ( [id://833851]=note: print w/replies, xml ) | Need Help?? |
You should indeed not edit the sequence files. The previous answers (by almut and BrowserUK) just use __DATA__ because that makes it easy to show as compact example. And to use the examples they'll need a little editing. For instance, in almut's script, replace the line: with
and invoke the script as:
Replacing <DATA> with <> means it will not read the __DATA__ section of the program-file itself, but instead read from STDIN (aka standard input). hth
In Section
Seekers of Perl Wisdom
|
|