in reply to Split Function - Positions
Update: Ignore this! It is much slower.
This might work out a little faster if performance is a issue--which it usually is with genome related stuff.
#! perl -slw use strict; my $re = '([^X]+)X*' . '(?:([^X]+)X*)?' x 100; $re = qr[$re]; my $screen = "ATCGATCGXXXXXATCGATXXXACTGCTACGGTACXXXAATTATXGCGCGXXT"; $screen =~ $re; print for @-[ 1 .. $#- ]; __END__ P:\test>test2 0 13 22 38 45 52
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Split Function - Positions
by duff (Parson) on Jun 02, 2004 at 03:10 UTC | |
by BrowserUk (Patriarch) on Jun 02, 2004 at 03:28 UTC |