forked from broadinstitute/ichorCNA
-
Notifications
You must be signed in to change notification settings - Fork 13
Fix counting reads when sex chromosomes aren't available #26
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
lbeltrame
wants to merge
2
commits into
GavinHaLab:master
Choose a base branch
from
DIncalciLab:fix-gender-counts
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NULL doesn't have a dimension, while NA is a vector of length 1 If this is not done, building a PoN with data missing sex chromosomes will fail, because the code will try to bind NA (with dimensions) with NULL (no dimension), leading to a hard-to-debug-message
1fdd5d3 to
54e5fd9
Compare
lbeltrame
added a commit
to DIncalciLab/bioconda-recipes
that referenced
this pull request
Dec 2, 2025
Submitted upstream as PR (GavinHaLab/ichorCNA#26 these patches fix breakage seen in real-world usage (DIncalciLab/samurai/commit/5e292cef413676448f503f97660c395ee9ba0d99) However,u pstream development is very slow, and a long time may pass before the PR is accepted
This was referenced Dec 2, 2025
bgruening
pushed a commit
to bioconda/bioconda-recipes
that referenced
this pull request
Dec 2, 2025
Submitted upstream as PR (GavinHaLab/ichorCNA#26 these patches fix breakage seen in real-world usage (DIncalciLab/samurai/commit/5e292cef413676448f503f97660c395ee9ba0d99) However,u pstream development is very slow, and a long time may pass before the PR is accepted
ljwharbers
pushed a commit
to ljwharbers/bioconda-recipes
that referenced
this pull request
Dec 5, 2025
) Submitted upstream as PR (GavinHaLab/ichorCNA#26 these patches fix breakage seen in real-world usage (DIncalciLab/samurai/commit/5e292cef413676448f503f97660c395ee9ba0d99) However,u pstream development is very slow, and a long time may pass before the PR is accepted
lbeltrame
added a commit
to DIncalciLab/nf-core-modules
that referenced
this pull request
Dec 9, 2025
At the moment, creating a PoN without data on chromosome X is bound to fail due to a bug in ichorCNA(GavinHaLab/ichorCNA#26). It is unclear when a new version will be out, so I have patched the current bioconda package (bioconda/bioconda-recipes#61045) and built new container images, which I want to update to in this PR.
17 tasks
github-merge-queue bot
pushed a commit
to nf-core/modules
that referenced
this pull request
Dec 10, 2025
…9531) * Bump ichorCNA package build in ichorcna/createpon and ichorcna/run At the moment, creating a PoN without data on chromosome X is bound to fail due to a bug in ichorCNA(GavinHaLab/ichorCNA#26). It is unclear when a new version will be out, so I have patched the current bioconda package (bioconda/bioconda-recipes#61045) and built new container images, which I want to update to in this PR. * Update some md5sums * Update test snapshot * Update test snapshot
vagkaratzas
pushed a commit
to nf-core/modules
that referenced
this pull request
Dec 12, 2025
…9531) * Bump ichorCNA package build in ichorcna/createpon and ichorcna/run At the moment, creating a PoN without data on chromosome X is bound to fail due to a bug in ichorCNA(GavinHaLab/ichorCNA#26). It is unclear when a new version will be out, so I have patched the current bioconda package (bioconda/bioconda-recipes#61045) and built new container images, which I want to update to in this PR. * Update some md5sums * Update test snapshot * Update test snapshot
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If a detected gender is unknown, the median X counts are set to
NULL, and Y counts toNA. However,NULLdoesn't have a dimension, whileNAis a vector of length 1. This will go undetected when doing regular runs, but it will break when creating a new PoN with data without sex chromosomes, because the code will try to bindNA(with dimensions) withNULL(no dimension), leading to a hard-to-debug-message (arguments imply differing number of rows).This is fixed by setting the median chrX value to
NA, and adjusting checks inoutput.Rso that they understand that the value can also beNA(incidentally, the checks for chromosome Y were incomplete, they only checked forNULL, soNAis also taken into account`).This is not a new issue, I believe it has gone unnoticed for years.