Skip to content

Conversation

@lbeltrame
Copy link

If a detected gender is unknown, the median X counts are set to NULL, and Y counts to NA. However, NULL doesn't have a dimension, while NA is 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 bind NA (with dimensions) with NULL (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 in output.R so that they understand that the value can also be NA (incidentally, the checks for chromosome Y were incomplete, they only checked for NULL, so NA is also taken into account`).

This is not a new issue, I believe it has gone unnoticed for years.

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
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
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.
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant