in reply to How do I find match patterns between two DNA sequences?
As Marshall has said, it is difficult to divine your intent. Perhaps you want to find the character offsets where you have matching letters in each string?
knoppix@Microknoppix:~$ perl -E ' $seq1 = q{AAAAACCCGGGTTTTTAAA}; $seq2 = q{AAAAACGGGTTTCCCAGAGA}; $same = $seq1 ^ $seq2; push @posn, pos( $same ) while $same =~ m{(?=\x00)}g; say for @posn;' 0 1 2 3 4 5 8 11 17 knoppix@Microknoppix:~$
Please explain again what you are trying to achieve.
Cheers,
JohnGG
|
|---|