Murcia has asked for the wisdom of the Perl Monks concerning the following question:
I want to extract regions from a file.
>lmo0024 16802072 upstream sequence, from -300 to +3, size 304 ctttcggacaaagcgtggttgattttattcttaacgaaattccagaatggctaatgggtg caaaaatccagtagctgcaggagcaaatggtgcagcgctagttggggaggaga atga >lmo0025 16802073 upstream sequence, from -27 to +3, size 31 aatataaaaattggaggaatagacaaaatgg . . .The regions are between the >lmo numbers (inclusive)
extracts regionswhile(<>){ if(/begin/ ... /end/){ do } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: extract regions
by Roger (Parson) on Feb 09, 2004 at 10:43 UTC | |
|
Re: extract regions
by ysth (Canon) on Feb 09, 2004 at 10:46 UTC | |
|
Re: extract regions
by Abigail-II (Bishop) on Feb 09, 2004 at 10:39 UTC | |
|
Re: extract regions
by flounder99 (Friar) on Feb 09, 2004 at 16:01 UTC |