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.
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 functionmm_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.