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

feat: add HN tag to bwa aln #438

Closed
wants to merge 1 commit into from
Closed

feat: add HN tag to bwa aln #438

wants to merge 1 commit into from

Conversation

nh13
Copy link
Contributor

@nh13 nh13 commented Jan 17, 2025

This is really useful when we want to know the # of hits found, not just the # reported (in the XA tag), which can be zero there were too many.

@nh13 nh13 changed the title feat: add HN tag to bwa mem feat: add HN tag to bwa aln Jan 17, 2025
nh13 added a commit to fulcrumgenomics/pybwa that referenced this pull request Jan 17, 2025
This requires us to patch bwa, which we store in the patches
sub-directory.  They are applied before we build, and reverted after
the build completes (regardless of success).  They can be removed
when the bwa PRs are merged and submodule updated.

See: lh3/bwa#438
See: lh3/bwa#439
nh13 added a commit to fulcrumgenomics/pybwa that referenced this pull request Jan 17, 2025
This requires us to patch bwa, which we store in the patches
sub-directory.  They are applied before we build, and reverted after
the build completes (regardless of success).  They can be removed
when the bwa PRs are merged and submodule updated.

See: lh3/bwa#438
See: lh3/bwa#439
nh13 added a commit to fulcrumgenomics/pybwa that referenced this pull request Jan 17, 2025
This requires us to patch bwa, which we store in the patches
sub-directory.  They are applied before we build, and reverted after
the build completes (regardless of success).  They can be removed
when the bwa PRs are merged and submodule updated.

See: lh3/bwa#438
See: lh3/bwa#439
@lh3
Copy link
Owner

lh3 commented Mar 21, 2025

Use the X0 and X1 tags

@lh3 lh3 closed this Mar 21, 2025
@nh13
Copy link
Contributor Author

nh13 commented Mar 25, 2025

@lh3 would you be willing to reconsider this? The HN tag is a standard tag across aligners, while X0 and X1 are not, and so we need to translate from the latter two tags to the former, and this PR would remove that.

The MD to the XA tag would be incredibly useful, especially when looking at the alignments of alternative hits, even if we don't want all of them. And then this would be analogous to the SA tag.

What's the harm in adding both?

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