Skip to content

Release/0.3.0 - #16

Closed
qclayssen wants to merge 64 commits into
devfrom
release/0.3.0
Closed

qclayssen wants to merge 64 commits into
devfrom
release/0.3.0

Conversation

@qclayssen

@qclayssen qclayssen commented Sep 15, 2025 •

Copy link
Copy Markdown
Collaborator

Add

Upgrade

  • pcgrr v1.4.1 -> pcgr v2.2.5
  • gpgr v2.1.3 → v2.2.11
  • Improve logging

Removed

  • Removal of COSMIC count and ICGC PCAWG count from rescue logic

* update doc

*  bump  gpgr version
@qclayssen qclayssen self-assigned this Sep 15, 2025
qclayssen and others added 9 commits September 23, 2025 17:00
* Bump version: 0.2.15 → 0.2.16

* Change hrd facultative for cancer report (#17)

* change hrd file facultatif

* fix arg position and assign default value

* fix version (#18)

* Bump gpgr version to 2.2.0
* Bump version: 0.2.16 → 0.2.17

* bump gpgr to v2.2.1 in docker files (#21)
@qclayssen
qclayssen force-pushed the release/0.3.0 branch 2 times, most recently from 54672c1 to 9c613d4 Compare October 17, 2025 00:38
@qclayssen
qclayssen requested a review from Copilot October 24, 2025 00:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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 be if value == '' or value == '.':
import collections

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread bolt/workflows/smlv_somatic/report.py Resolved
Comment thread bolt/workflows/other/cancer_report.py Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment thread docker/Dockerfile.pcgr Resolved
Comment thread README.md Resolved
Comment thread CHANGELOG.md Resolved
Comment thread bolt/workflows/smlv_somatic/report.py Resolved
Comment thread bolt/workflows/smlv_somatic/annotate.py Resolved
Comment thread bolt/common/constants.py Resolved
Comment thread bolt/workflows/smlv_somatic/report.py Resolved
Comment thread bolt/common/pcgr.py Resolved
Comment thread bolt/util.py Resolved
Comment thread docker/Dockerfile.pcgr Resolved
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
@qclayssen
qclayssen deleted the branch dev June 3, 2026 00:39
@qclayssen qclayssen closed this Jun 3, 2026
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.

2 participants