in reply to Re: Bracketing Substring(s) in the String
in thread Bracketing Substring(s) in the String
But, when we have OVERLAPPING sequences the output should 'mash-up' a bit:STRING ------- GCGCTCGACGC SUBSTRINGS ---------- GCGC ACG == [GCGC]TC[ACG]C
Do you see how GCGC AND GCTC MERGE into one single substring for the desired output?STRING ------- GCGCTCGACGC SUBSTRINGS ---------- GCGC GCTC == [GCGCTC]GACGC
So I think the algorithm should look like this:
Can you imagine how messy this would look if you had 100 substrings and a main string running 10,000 letters long (which I assume is possible because this stuff looks like gene sequence data)?
Celebrate Intellectual Diversity
|
|---|