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

Overlapping supplementary alignments? #244

Closed
armintoepfer opened this issue Sep 27, 2018 · 4 comments
Closed

Overlapping supplementary alignments? #244

armintoepfer opened this issue Sep 27, 2018 · 4 comments

Comments

@armintoepfer
Copy link
Contributor

My understanding was that query intervals of primary and supplementary alignments of the same read never overlap. But it looks like I'm mistaken, because they are overlapping...is there an option to force non-overlapping intervals?

$ minimap2 ref.fasta tiny.fasta --cs --secondary=no 2> /dev/null | cut -f 3,4,6,8,9
4378	16658	ENA|CP002685|CP002685.1:5190000-5210000	8050	20000
13615	22038	ENA|CP002685|CP002685.1:5190000-5210000	8174	15881

Data: Archive.zip

Thank you,
Armin

@lh3 lh3 added the question label Sep 27, 2018
@lh3
Copy link
Owner

lh3 commented Sep 27, 2018

Segments on a query may overlap by up to 50%. The threshold is controlled by -M/--mask-level.

In this particular example, you would assume the second half of the read to be a novel sequence if minimap2 didn't report it.

@armintoepfer
Copy link
Contributor Author

Can I force it to be non-overlapping? Setting -M 0 changes numbers, but still overlapping:

$ minimap2 ref.fasta tiny.fasta --cs --secondary=no -M 0 2> /dev/null | cut -f 3,4,6,8,9
4378	16658	ENA|CP002685|CP002685.1:5190000-5210000	8050	20000
14623	22090	ENA|CP002685|CP002685.1:5190000-5210000	8870	15858

@lh3
Copy link
Owner

lh3 commented Sep 27, 2018

Minimap2 has another heuristic hard coded to avoid leaving long query sequences unmapped. It will override mask level. So far, it is not possible to force the results to be non-overlapping.

@armintoepfer
Copy link
Contributor Author

Looks like solved to me. Will reopen, if I find additional problems with this new feature. Thanks Heng!

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

No branches or pull requests

2 participants