Skip to content

Commit

Permalink
Merge pull request #319 from uclahs-cds/sfitz-fix-pon-check
Browse files Browse the repository at this point in the history
fix check for panel of normals and add in log
  • Loading branch information
sorelfitzgibbon authored Oct 28, 2024
2 parents 0835f91 + b03b049 commit 51d781a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add option to input VCFs for intersection
- Add VAF stripplot for variant overlaps across tools

### Fixed
- Avoid warning when run without panel of normals

## [8.1.0] - 2024-05-15

### Added
Expand Down
3 changes: 3 additions & 0 deletions config/methods.config
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ methods {
params.germline = false
}
params.germline_resource_gnomad_vcf_index = "${params.germline_resource_gnomad_vcf}.tbi"
if (!params.containsKey("panel_of_normals_vcf")) {
params.panel_of_normals_vcf = ""
}
}

check_valid_algorithms = {
Expand Down
5 changes: 3 additions & 2 deletions module/mutect2-processes.nf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Mutect2 Options:
- single tumor normal pair: ${params.single_NT_paired}
- germline resource: ${params.germline_resource_gnomad_vcf}
- contamination_table: ${params.input.tumor.contamination_table}
- panel of normals: ${params.panel_of_normals_vcf}
"""

process run_SplitIntervals_GATK {
Expand Down Expand Up @@ -92,7 +93,7 @@ process call_sSNV_Mutect2 {
normal_names = normal_name.collect { "-normal ${it}" }.join(' ')
bam = normal_names == '-normal NO_ID' ? "$tumors" : "$tumors $normals $normal_names"
germline = params.germline ? "--germline-resource $germline_resource_gnomad_vcf" : ""
panel_of_normals = params.panel_of_normals_vcf ? "--panel-of-normals ${params.panel_of_normals_vcf}" : ""
panel_of_normals_cmd = params.panel_of_normals_vcf ? "--panel-of-normals ${params.panel_of_normals_vcf}" : ""
interval_id = interval.baseName.split('-')[0]
"""
set -euo pipefail
Expand All @@ -105,7 +106,7 @@ process call_sSNV_Mutect2 {
-O ${params.output_filename}_unfiltered-${interval.baseName}.vcf.gz \
--tmp-dir \$PWD \
$germline \
$panel_of_normals \
$panel_of_normals_cmd \
${params.mutect2_extra_args}
"""
}
Expand Down
1 change: 1 addition & 0 deletions test/configtest-F16.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
"normal_id": "0192847",
"output_dir": "/tmp/outputs",
"output_dir_base": "/tmp/outputs/call-sSNV-VER.SI.ON/0192847",
"panel_of_normals_vcf": "",
"patient_id": "TWGSAMIN000001",
"pipeval_version": "4.0.0-rc.2",
"proc_resource_params": {
Expand Down
1 change: 1 addition & 0 deletions test/configtest-F32.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
"normal_id": "0192847",
"output_dir": "/tmp/outputs",
"output_dir_base": "/tmp/outputs/call-sSNV-VER.SI.ON/0192847",
"panel_of_normals_vcf": "",
"patient_id": "TWGSAMIN000001",
"pipeval_version": "4.0.0-rc.2",
"proc_resource_params": {
Expand Down

0 comments on commit 51d781a

Please sign in to comment.