in reply to how to find this substring?
I wonder if index & rindex might do a better job, particularly if the strings to search are large.
so something along these lines
my $start = index ($dna,'ATG'); my $end1 = rindex($dna,'TAA'); my $end2 = rindex($dna,'TAG'); ...
Obviously, you'd need a little logic to handle the different stop strings, but I've left that as an exercise for the reader ;)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to find this substring?
by bulk88 (Priest) on Jun 08, 2012 at 17:04 UTC | |
by GrandFather (Saint) on Jun 09, 2012 at 01:53 UTC | |
by bulk88 (Priest) on Jun 09, 2012 at 05:30 UTC | |
by GrandFather (Saint) on Jun 10, 2012 at 05:04 UTC |