English 中文(简体)
允许进行不止一次的常规搜索
原标题:Pattern search with more than one mismatch allowed
  • 时间:2011-11-17 05:56:54
  •  标签:
  • perl

I am trying to find pattern search with specific condition: we have to find starting positions. Also more than one mismatch is allowed ie. it should be run for 1 or 2 or 3 mismatch. i.e. for 1 mismatch one character of the pattern may or may not match while matching with the sequence. As same for 2 mismatch two character of the pattern may or may not match while matching with the sequence. And so on.

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

配对和错配可能处于任何地位(即处于相同地位或处于不同地位)。 我如何执行?

问题回答

总的来说,这是最常见的次消费问题。 是否对“Smith-Waterman”算法进行了一些研究——你或许应该这样做。

http://en.wikipedia.org/wiki/Smith-Waterman_algorithm





相关问题
Why does my chdir to a filehandle not work in Perl?

When I try a "chdir" with a filehandle as argument, "chdir" returns 0 and a pwd returns still the same directory. Should that be so? I tried this, because in the documentation to chdir I found: "...

How do I use GetOptions to get the default argument?

I ve read the doc for GetOptions but I can t seem to find what I need... (maybe I am blind) What I want to do is to parse command line like this myperlscript.pl -mode [sth] [inputfile] I can use ...

Object-Oriented Perl constructor syntax and named parameters

I m a little confused about what is going on in Perl constructors. I found these two examples perldoc perlbot. package Foo; #In Perl, the constructor is just a subroutine called new. sub new { #I ...

Where can I find object-oriented Perl tutorials? [closed]

A Google search yields a number of results - but which ones are the best? The Perl site appears to contain two - perlboot and perltoot. I m reading these now, but what else is out there? Note: I ve ...

热门标签