I have a sequence:
GAATGTTTTAGCAATCTCTTTCTGTCATGAATCCATGGCAGTGACCATACTAATGGTGACTGCCATTGAT +GGAGGGAGACACA
and I want to be able to find this word in the sequence:
Problem is, the word is found at the beginning of the sequence, and in a truncated form (first 8 letters of word missing).CTGGATAAGAATGTTTTAGCAATCTCTT
I was considering looping through successively smaller substrings of the word until it is found. I'd have to do it from either end of the word too, when trying to match an array of sequences.
My question is, is there a simpler way of using regexp to say find partial match?
I tried googling this but couldn't find the right combination of words (truncated/partial/overlap etc.) so any links to a solution would be greatly appreciated.
Many thanks
Sam
20061019 Janitored by Corion: Added code tags around sequences to enable wrapping
In reply to Searching for a word that may only exist in part by seaver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |