in reply to Re^3: mismatching characters in dna sequence
in thread mismatching characters in dna sequence

yes, i need to know the direction of change.
  • Comment on Re^4: mismatching characters in dna sequence

Replies are listed 'Best First'.
Re^5: mismatching characters in dna sequence
by choroba (Cardinal) on Dec 30, 2011 at 02:36 UTC
    You can get the information back from the strings if needed:
    use warnings; use strict; my $source="ATTCCGGG"; print "source: $source\n"; for my $str ( "ATTGCGGG", "ATACCGGC", "ACTGCGGT" , "ATCGGGGG" ) { print "string: $str\n"; my @res = unpack "c*", $source ^ $str; for my $i (grep $res[$_], 0 .. $#res) { print "$i: ", substr($source, $i, 1), "->", substr($str, $i, 1), "\n"; } }
    I am not sure how fast this is compared to the PDL solution.