Skip to content

An easier way of doing Smith-Waterman #2

@mmcco

Description

@mmcco

I don't know if you're interested, but there's a much easier way of doing Smith-Waterman that involves having an extra row and column at the 0th indexes, whose scores are all zero. You only need a single body loop:

https://github.com/plsql/jh-bio/blob/unique-kmers/bioutils/alignment.go#L63

For example, comparing "heh" and "hhh" will use the below matrix:

0.0  0.0  0.0  0.0  

0.0  1.0  1.0  1.0  

0.0  0.5  0.5  0.5  

0.0  1.0  1.5  1.5 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions