Skip to content

Yf make revert sam robust to errant XQ and XB tags#2021

Merged
kockan merged 6 commits intobroadinstitute:masterfrom
yfarjoun:yf_make_revert_sam_robust_to_XQ
Jul 25, 2025
Merged

Yf make revert sam robust to errant XQ and XB tags#2021
kockan merged 6 commits intobroadinstitute:masterfrom
yfarjoun:yf_make_revert_sam_robust_to_XQ

Conversation

@yfarjoun
Copy link
Contributor

fixes #2020 so that RevertSamFile doesn't choke on XB or XQ even if they are not strings.

  • checks that both are present before attempting to revert hard-clips
  • obtains values in a try-catch block
  • emits (up to 100) warning for problematic values of XB and XQ (only if both are present)
  • test included

Description

Give your PR a concise yet descriptive title
Please explain the changes you made here.
Explain the motivation for making this change. What existing problem does the pull request solve?
Mention any issues fixed, addressed or otherwise related to this pull request, including issue numbers or hard links for issues in other repos.
You can delete these instructions once you have written your PR description.


Checklist (never delete this)

Never delete this, it is our record that procedure was followed. If you find that for whatever reason one of the checklist points doesn't apply to your PR, you can leave it unchecked but please add an explanation below.

Content

  • Added or modified tests to cover changes and any new functionality
  • Edited the README / documentation (if applicable)
  • All tests passing on github actions

Review

  • Final thumbs-up from reviewer
  • Rebase, squash and reword as applicable

For more detailed guidelines, see https://github.com/broadinstitute/picard/wiki/Guidelines-for-pull-requests

yfarjoun added 6 commits July 24, 2025 13:54
- checks that both are present before attempting to revert hard-clips
- obtains values in a try-catch block
- emits (up to 100) warning for problematic values of XB and XQ (only if both are present)
- test included
Copy link
Contributor

@kockan kockan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yfarjoun
Copy link
Contributor Author

Thanks @kockan I'm no longer a maintainer, so someone else will have to do the honors...

@kockan kockan merged commit 01158a7 into broadinstitute:master Jul 25, 2025
6 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.

Errant XQ tag confuses RevertSam

2 participants