0
我在用特定條件搜索模式搜索:我們必須找到起始位置。 也允許不止一個不匹配,即。它應該運行1或2或3不匹配。 即對於1個不匹配,圖案的一個字符可能匹配或不匹配,而匹配 與序列。與2個不匹配相同,在將 與序列匹配時,模式的兩個字符可能匹配或可能不匹配。等等。允許多個不匹配的模式搜索
output: should be written into a file in a table format:
e.g, pattern may be TGCA and sequence may be ATCGATGCATATCGATC....]
finding TGCA in sequence ATCGATGATATCGATC will result in
S.no position the_matched_pattern
1 5 TGCA
匹配和不匹配可能出現在任何位置(即在相同位置或不同位置)。我怎樣才能實現這個?
實際上LCS *是*上CPAN:[算法:: LCS](http://search.cpan.org/~joesuf/Algorithm-LCS-1.04/LCS.pm )[Algorithm :: Diff](http://search.cpan.org/perldoc?Algorithm%3A%3ADiff) – Dallaylaen
謝謝Anthony Blake的回覆。但是我必須在模式中找出多於一個的不匹配。 Smith-Waterman_algorithm是個大問題。所以你可以幫我準確的語法來解決我的問題。 – smith