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

Add bw_long option to mappy's Aligner class #1124

Merged
merged 1 commit into from
Oct 24, 2023
Merged

Conversation

Donaim
Copy link
Contributor

@Donaim Donaim commented Oct 23, 2023

The Minimap2 behavior was found to handle sequences with large deletions differently when upgraded from v2.17 to v2.26, causing potential issues in projects mapping extensive deletions of ~1200 base pairs. The originally suggested solution of setting -r 500,500 was observed to be partially non-applicable since the Python Wrapper, mappy, only allowed manipulation of parameter bw.

In response to issue #1111, where this was originally reported, this commit introduces a modification in the Python wrapper, mappy. Until now, mappy only allowed manipulation of the bw parameter, preventing the suggested fix of setting -r 500,500.

This commit introduces a modification in the Python wrapper to include the bw_long option in the Aligner class. Consequently, both parameters bw and bw_long can be manipulated, thereby allowing the desired Minimap2 behavior encountered in version 2.17. As a result, this patch ensures consistent handling of sequences containing large deletions irrespective of the version upgrade."

Closes #1111

The Minimap2 behavior was found to handle sequences with large
deletions differently when upgraded from v2.17 to v2.26, causing
potential issues in projects mapping extensive deletions of ~1200 base
pairs. The originally suggested solution of setting `-r 500,500` was
observed to be partially non-applicable since the Python Wrapper,
`mappy`, only allowed manipulation of parameter `bw`.

In response to issue lh3#1111, where this was originally reported,
this commit introduces a modification in the Python wrapper,
`mappy`. Until now, `mappy` only allowed manipulation of the `bw`
parameter, preventing the suggested fix of setting `-r 500,500`.

This commit introduces a modification in the Python wrapper to include
the `bw_long` option in the `Aligner` class. Consequently, both
parameters `bw` and `bw_long` can be manipulated, thereby allowing the
desired Minimap2 behavior encountered in version 2.17. As a result,
this patch ensures consistent handling of sequences containing large
deletions irrespective of the version upgrade."

Closes lh3#1111
@lh3 lh3 merged commit ae05f84 into lh3:master Oct 24, 2023
3 checks passed
@lh3
Copy link
Owner

lh3 commented Oct 24, 2023

Thanks!

kojix2 added a commit to kojix2/ruby-minimap2 that referenced this pull request Mar 13, 2024
Donaim added a commit to cfe-lab/MiCall that referenced this pull request Oct 24, 2024
Since minimap base algorithm changed between versions, this update
requires setting the bw and bw_long options to retain the original
behaviour. See lh3/minimap2#1124 for more details.

Also, the quality calculation was adjusted in minimap.
This is not a significant change for us because that quality
metrics is not actually used anywhere.
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.

Minimap2 v2.26 Alters Alignment Behavior for Large Deletions
2 participants