Re: Calculating edit distance between 2 DNA Sequences

Chris Friedline <[email protected]>
Newsgroups gmane.comp.java.bio.general
Message-ID <[email protected]>
Hannes,

If you really want to use Levenstein distance, there's a method in Apache commons lang StringUtils.

Chris

On Nov 3, 2011, at 9:08 AM, Hannes Brandstätter-Müller wrote:

> 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
> _______________________________________________
> Biojava-l mailing list  -  [email protected]
> http://lists.open-bio.org/mailman/listinfo/biojava-l


_______________________________________________
Biojava-l mailing list  -  [email protected]
http://lists.open-bio.org/mailman/listinfo/biojava-l
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.