NVlabs / nvbio

NVBIO is a library of reusable components designed to accelerate bioinformatics applications using CUDA.
BSD 3-Clause "New" or "Revised" License
206 stars 50 forks source link

GetEditDistance usage examples #35

Open blacklight opened 4 years ago

blacklight commented 4 years ago

I'm relatively new to nvbio, and I was looking for a library that provides edit distance/Levenshtein distance calculation on GPU given a pair of genomes represented as strings. While I have found a GetEditDistance implementation in struct BamAlignment, it's not clear to me neither how the alignment struct should be initialized nor how to build a functional interface like the one described above (get the edit distance given two strings), and I couldn't find implementations in the provided examples. Would it be possible to provide a short example of how to use the edit distance using nvbio?