Skip to content

Conversation

rob-p
Copy link
Contributor

@rob-p rob-p commented Nov 14, 2024

This adds the (optional) ability to pass the read
name to the mappy map method. Without the
read name, the call to map can sometimes give
different output than the command line version
of minimap2 because of the way minimap uses
the hash of the read name to break ties in ordering hits.
This can affect which / if certain supplementary alignments
are generated, and even which / if non-primary alignments
are generated.

This adds the (optional) ability to pass the read
name to the mappy `map` method.  Without the
read name, the call to `map` can sometimes give
different output than the command line version
of `minimap2` because of the way minimap uses
the hash of the read name to break ties in ordering
hits.  This can affect which / if certain
supplementary alignments are generated, and even
which / if non-primary alignments are generated.
@lh3
Copy link
Owner

lh3 commented Nov 15, 2024

Thanks a lot for this. Could you merge mm_map_aux_with_name() into mm_map_aux()? This is an internal function and API changes are ok.

Get rid of additional function, and always
accept the name parameter in the mm_map_aux
function (can be nullptr if not available).
@rob-p
Copy link
Contributor Author

rob-p commented Nov 15, 2024

Ok, I've changed the implementation now so that mm_map_aux simply takes the name parameter (which can be null) and that gets propagated to the underlying minimap2 calls. I've removed mm_map_aux_with_name.

@lh3 lh3 merged commit 358a398 into lh3:master Nov 15, 2024
1 check passed
@lh3
Copy link
Owner

lh3 commented Nov 15, 2024

Thank you!

@rob-p
Copy link
Contributor Author

rob-p commented Nov 15, 2024

My pleasure! Thanks as always for the great tools ;).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants