[Biojava-l] Calculating edit distance between 2 DNA Sequences

Hannes Brandstätter-Müller biojava at hannes.oib.com
Thu Nov 3 13:08:22 UTC 2011


Hi!

Is there a Class/Method in Biojava that calculates the Levenshtein
distance between two sequences? I could not find anything in the docs
at first search.

I need to compare 2 DNASequences (or Strings) and get the number of
insertions, deletions, and substitutions. Ideally, there would be an
option to abort the comparison if the number of mismatches exceeds a
certain number.

Hannes



More information about the Biojava-l mailing list