Help for this page

Select Code to Download


  1. or download this
    my $source1  = '[TCG]GGGG[AT]'; # ambiguous
    my $target1   = 'AGGGG[CT]'; # No of mismatch = 1  only at position 1
    
  2. or download this
    sub mismatches {
        my($source, $target) = @_;
    ...
        
        scalar grep $tparts[$_] !~ /^$sparts[$_]/, 0 .. $#sparts;
      }