MoniqueLT has asked for the wisdom of the Perl Monks concerning the following question:
PLEASE HELP!! Evey way I attempt to do this I am not successful!
I and trying to extract the sequence in between two primers. For example if my primers are ATGAA and TGCCG, and the sequence is AATCGGGTATGAAAAATTTTGCCGGCGTTTGCG I want to get AAAATTT,
I tried this by using split() by the first primer save value then split() by the second primer, but some sequence have multiple ATGG or TGCCG at it splits to many times
So I tried it using the m// function, something like
$seq=~ m/.*ATGAA.*?TGCCG.*/; $match=$_;
but this isn't working either!! I know there is a simple way, but I can't seem to find a helpful function!! Any help would be greatly appreciated!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Finding patterns
by roboticus (Chancellor) on May 24, 2012 at 00:58 UTC | |
|
Re: Finding patterns
by AnomalousMonk (Archbishop) on May 24, 2012 at 03:58 UTC | |
|
Re: Finding patterns
by snape (Pilgrim) on May 24, 2012 at 00:59 UTC | |
|
Re: Finding patterns
by jack123 (Acolyte) on May 24, 2012 at 05:57 UTC | |
by MoniqueLT (Initiate) on May 25, 2012 at 01:56 UTC | |
|
Re: Finding patterns
by Anonymous Monk on May 24, 2012 at 00:41 UTC |