Skip to content

feat: Add support for updating existing aux tags inplace. #481

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ghuls
Copy link
Contributor

@ghuls ghuls commented Aug 5, 2025

Add support for updating existing aux tags inplace, by using HTSlib:

  • bam_aux_update_str
  • bam_aux_update_int
  • bam_aux_update_float
  • bam_aux_update_array functions.

Updating aux tags this way will keep the tag at the original location and data of aux tags after get automatically moved if more space was needed when updating a tag inplace.

@ghuls
Copy link
Contributor Author

ghuls commented Aug 5, 2025

Closes: #480 and #335

@ghuls ghuls changed the title Add support for updating existing aux tags inplace. feat: Add support for updating existing aux tags inplace. Aug 5, 2025
@coveralls
Copy link

coveralls commented Aug 5, 2025

Pull Request Test Coverage Report for Build 16755693314

Details

  • 0 of 86 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.8%) to 81.935%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/bam/record.rs 0 86 0.0%
Totals Coverage Status
Change from base Build 16167570816: -1.8%
Covered Lines: 2744
Relevant Lines: 3349

💛 - Coveralls

Add support for updating existing aux tags inplace, by using HTSlib:
 - bam_aux_update_str
 - bam_aux_update_int
 - bam_aux_update_float
 - bam_aux_update_array
functions.

Updating aux tags this way will keep the tag at the original location
and data of aux tags after get automatically moved if more space was
needed when updating a tag inplace.
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