Repository navigation
use samtools > v1 (for vcf2maf) - #298
Conversation
PR Summary by QodoRequire samtools >=1.0 to ensure vcf2maf-compatible dependency resolution
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
Context used✅ Tickets:
🎫 Docker samtools bug 1. samtools still pinned 0.1.19
|
| - conda-forge::pandoc | ||
| - bioconda::perl-bio-bigfile | ||
| - conda-forge::perl-compress-raw-zlib | ||
| - bioconda::samtools >=1.0 |
There was a problem hiding this comment.
1. samtools still pinned 0.1.19 📎 Requirement gap ≡ Correctness
The PR adds bioconda::samtools >=1.0 to the environment YAML, but the official Docker image (and other lock-based installs) are built from committed conda-lock files that still pin samtools-0.1.19, so the image will not actually pick up samtools v1 and the intended `samtools faidx/vcf2maf` GRCh37 fix remains ineffective until the lock files are regenerated.
Agent Prompt
## Issue description
`conda/env/yaml/pcgr.yaml` now requires `bioconda::samtools >=1.0`, but Docker (and users following lock-based installs) build environments from the committed `conda/env/lock/*.lock` files, which still pin `samtools-0.1.19`. As a result, the official Docker image will not actually get samtools v1 from this PR alone, leaving the `samtools faidx`/`vcf2maf` GRCh37 fix ineffective until the lock files are regenerated and updated.
## Issue Context
The `Dockerfile` creates the environment using `mamba create --file ...pcgr-linux-64.lock`, so the lock file contents (not the YAML) determine what ends up in the shipped image. The current lock files still reference `samtools-0.1.19`.
## Fix Focus Areas
- conda/env/yaml/pcgr.yaml[13-20]
- conda/env/lock/pcgr-linux-64.lock[95-101]
- conda/env/lock/pcgr-osx-64.lock[126-132]
- Dockerfile[21-26]
## Expected fix
1. Re-run `conda-lock` for `conda/env/yaml/pcgr.yaml` (both linux-64 and osx-64) so the resulting lock files resolve to samtools v1+.
2. Commit the updated `conda/env/lock/pcgr-linux-64.lock` and `conda/env/lock/pcgr-osx-64.lock` outputs.
3. (Optional sanity) Verify the rebuilt Docker image reports `samtools --version` as v1+ and that `vcf2maf` no longer errors.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Fixes #297.
I did a local conda-lock and the samtools v1 requirement forces conda to pull in the samtools-less perl-bio-samtools which is what we want.
@sigven I think this is critical enough to be merged straight into main and we should make a new patch release v2.3.1