Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better detection of supplementary alignments #76

Merged
merged 2 commits into from
Aug 18, 2024

Conversation

rob-p
Copy link

@rob-p rob-p commented Aug 17, 2024

This is related to issue 72. Essentially, minimap2-rs is treating secondary alignments as supplementary, whereas they are quite different.

Unfortunately, the code where the supplementary alignment flag is set in minimap2 isn't super-elegant, I believe the most relevant part is here. I've made this change in this PR and it seems to work in my use case. Note that I'm not handling the > 1 segment case here, so I believe we'll need further work to handle reads with > 1 segment (e.g. paired-end short reads).

@jguhlin
Copy link
Owner

jguhlin commented Aug 18, 2024

Cool. I'll dig into this today. Paired-end reads aren't supported yet, but it'll be good to make a note here for in the future

@jguhlin jguhlin merged commit a00d1d3 into jguhlin:alignment-score Aug 18, 2024
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants