in reply to Bioinformatic task
Define 'big'. One way to handle the problem for smaller values of 'big' is to read the entire file into memory then use a regular expression to cut it up for you.
For larger values of big you may be able to use something like:
use strict; use warnings; local $/ = ">Seq"; while (<DATA>) { chomp; next if ! length; print "Record: $_\n"; } __DATA__ >Seq1 AAATTTGGG..... >Seq2 AGATTTACC.....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Bioinformatic task
by uvnew (Acolyte) on Nov 07, 2010 at 23:18 UTC | |
by GrandFather (Saint) on Nov 07, 2010 at 23:41 UTC | |
|
Re^2: Bioinformatic task
by patcat88 (Deacon) on Nov 09, 2010 at 03:59 UTC |