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
In reply to Re: Split Function - Positions
by BrowserUk
in thread Split Function - Positions
by MiamiGenome
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |