Repository navigation
Conversation
* update doc * bump gpgr version
ec2700b to
8db35b3
Compare
54672c1 to
9c613d4
Compare
9c613d4 to
8223ef9
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR upgrades PCGR from v1.4.1 to v2.2.1 and adds handling for hypermutated samples. The upgrade requires updating field names and annotations to match the new PCGR version's output format, while new functionality filters variants in hypermutated samples to stay within PCGR's variant count limits.
Key changes:
- Updated PCGR/CPSR field names to match v2.2.1 output (e.g.,
PCGR_TIER→PCGR_ACTIONABILITY_TIER) - Added hypermutation handling with variant filtering logic for samples exceeding 450,000 variants
- Implemented chunked PCGR processing for large variant sets with parallel execution
Reviewed Changes
Copilot reviewed 19 out of 20 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| pyproject.toml | Version bump to 0.2.17 |
| docker/Dockerfile.pcgr | Updated PCGR conda environment from v1.4.1 to v2.2.1 |
| docker/Dockerfile.gpgr | Updated r-gpgr from 2.1.3 to 2.2.11 |
| conda/env/bolt_env.yml | Added ncurses dependency |
| bolt/workflows/sv_somatic/annotate.py | Added logging infrastructure |
| bolt/workflows/smlv_somatic/rescue.py | Added logging infrastructure |
| bolt/workflows/smlv_somatic/report.py | Added hypermutation variant filtering and updated PCGR integration |
| bolt/workflows/smlv_somatic/filter.py | Updated field names for PCGR v2.2.1 and added helper function to handle missing values |
| bolt/workflows/smlv_somatic/annotate.py | Refactored PCGR processing to support chunking and updated field names |
| bolt/workflows/smlv_germline/report.py | Added logging and vep_dir parameter |
| bolt/workflows/other/cancer_report.py | Made dragen_hrd_fp optional and added new signature analysis parameters |
| bolt/util.py | Enhanced command execution with logging, added VCF splitting/merging utilities |
| bolt/logging_config.py | New logging configuration module |
| bolt/common/pcgr.py | Major refactor for PCGR v2.2.1 compatibility, chunked processing, and updated field mappings |
| bolt/common/constants.py | Updated field names and added hypermutation filtering constants |
| tests/test_smlv_somatic_filter.py | Updated test data to match new PCGR field names |
| README.md | Updated version references to 0.2.17 |
| CHANGELOG.md | Added changelog entries for recent PRs |
| .bumpversion.cfg | Updated version to 0.2.17 |
Comments suppressed due to low confidence (1)
bolt/common/pcgr.py:1
- Missing spaces around the
==operator. Should beif value == '' or value == '.':
import collections
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 20 out of 21 changed files in this pull request and generated 11 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Corrects the tier ordering logic and filtering in hypermutated sample handling to ensure NONCODING variants are dropped before TIER_1, preventing excessive variant counts. Refines error handling, improves logging and VCF writing, and clarifies filter traceability. Adds comprehensive unit and integration tests to verify all edge cases in tiered variant selection and CSQ parsing. Relates to improved reliability for high-mutation samples.
… testing Revert to conda pin r-gpgr ==2.3.0 before final release.
- TestSplitVcf: verify split_vcf correctly chunks VCFs above MAX_SOMATIC_VARIANTS - Document PCGR 500k as a hard software limit (not OOM) in CLAUDE.md - Document known failure mode when tiered filtering cannot cap count (sash #52)
run_somatic has pcgr_threads between threads and pcgr_conda. The call
in run_somatic_chunk used positional args and skipped pcgr_threads,
causing pcgr_conda ('pcgr') to land in pcgr_threads → ValueError.
Switch to keyword args matching the non-chunked call in annotate.py.
Add regression test that mocks run_somatic and asserts pcgr_conda,
pcgrr_conda, and threads are received at the correct parameters.
Covers count_variant_process: dragen vs filter_pass threshold, SAGE_NOVEL exclusion, and annotation filter exclusion.
Uses select() to multiplex both pipes in one thread, preventing pipe buffer deadlock and routing stderr to WARNING level.
Includes hypermutated flag fix (reads is_hypermutated from bolt JSON) and SNVs display cleanup.
Path.with_suffix() only replaces the last suffix everything after the final dot. The caller passes a path ending in .pass
….2.5 tabix check)
Add
Upgrade
Removed