Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix check for panel of normals and add in log #319

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,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 @@ -92,6 +92,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