jguhlin / minimap2-rs

Rust bindings to minimap2 library
Other
60 stars 13 forks source link

Alignment score #80

Open rob-p opened 2 weeks ago

rob-p commented 2 weeks ago

This PR adds a function map_with_name which allows resolving https://github.com/jguhlin/minimap2-rs/issues/75. Specifically, it passes the query name (which must be \0 terminated) to the map function, which allows the internal minimap2 function mm_map to resolve ties in the chain score.

Though the differences are subtle, this allows exactly replicating the behavior of command-line minimap2, in cases where this tie breaking can result in some alignments being marked supplementary, where they otherwise would not.