Skip to content

Be more explicit about how missing bam-readcount lines are handled, allow override - #111

Merged
chrisamiller merged 4 commits into
griffithlab:masterfrom
chrisamiller:issue110
Nov 18, 2026
Merged

chrisamiller merged 4 commits into
griffithlab:masterfrom
chrisamiller:issue110

Conversation

@chrisamiller

@chrisamiller chrisamiller commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

bam-readcount does not output sites with zero coverage, so by the time we get to this point, it's not clear whether a missing line means "zero" or "not assessed". We're going to leave the default in place, but this PR does the following:

  • adds a warning message when sites not represented in the bam-readcount file are being zeroed out
  • adds more clear documentation in the vcf-readcount-annotator docs about this behavior, so that it doesn't catch people by surprise!
  • adds an override option --keep-original-if-missing that allows specifying that missing lines should not be assumed to be zero coverage.

Closes #110

@susannasiebert susannasiebert left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

+1

If I'm reading this correctly, it looks like this PR also fixes a bug where the ADF and ADR fields were not being written on zero readcounts (when overwriting), correct?

@chrisamiller

Copy link
Copy Markdown
Collaborator Author

Yep, when looking at the missing-line behavior, noticed that they weren't being zeroed out along with all the other fields

@chrisamiller
chrisamiller merged commit 6484ebb into griffithlab:master Nov 18, 2026
10 of 12 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.

Question about 0 values for variants missing from bam_readcount

2 participants