Skip to content

Commit

Permalink
Update PAVE somatic command
Browse files Browse the repository at this point in the history
  • Loading branch information
scwatts committed Aug 15, 2024
1 parent f0184f9 commit 41b962e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 33 deletions.
9 changes: 1 addition & 8 deletions modules/local/pave/somatic/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ process PAVE_SOMATIC {
path genome_fai
path sage_pon
path pon_artefacts
path sage_blocklist_regions
path sage_blocklist_sites
path clinvar_annotations
path segment_mappability
path driver_gene_panel
Expand Down Expand Up @@ -47,9 +45,6 @@ process PAVE_SOMATIC {

// Targeted mode
def pon_artefact_arg = pon_artefacts ? "-pon_artefact_file ${pon_artefacts}" : ''
def sage_blocklist_regions_arg = sage_blocklist_regions ? "-blacklist_bed ${sage_blocklist_regions}" : ''
def sage_blocklist_sites_arg = sage_blocklist_sites ? "-blacklist_vcf ${sage_blocklist_sites}" : ''
def clinvar_annotations = clinvar_annotations ? "-clinvar_vcf ${clinvar_annotations}" : ''

"""
pave \\
Expand All @@ -62,12 +57,10 @@ process PAVE_SOMATIC {
-pon_file ${sage_pon} \\
-pon_filters "${pon_filters}" \\
${pon_artefact_arg} \\
${clinvar_annotations} \\
-clinvar_vcf ${clinvar_annotations} \\
-driver_gene_panel ${driver_gene_panel} \\
-mappability_bed ${segment_mappability} \\
-ensembl_data_dir ${ensembl_data_resources} \\
${sage_blocklist_regions_arg} \\
${sage_blocklist_sites_arg} \\
${gnomad_args} \\
-read_pass_only \\
-threads ${task.cpus} \\
Expand Down
8 changes: 0 additions & 8 deletions modules/local/pave/somatic/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@ input:
- pon_artefacts:
type: file
description: Taregeted sequencing PON artefacts file (optional)
- sage_blocklist_regions:
type: file
description: SAGE regions blocklist file
pattern: "*.{bed}"
- sage_blocklist_sites:
type: file
description: SAGE sites blocklist file
pattern: "*.{vcf.gz}"
- clinvar_annotations:
type: file
description: ClinVar annotations VCF file
Expand Down
18 changes: 1 addition & 17 deletions subworkflows/local/pave_annotation/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -124,20 +124,6 @@ workflow PAVE_ANNOTATION {
return [meta_pave, sage_vcf, sage_tbi]
}

// Set resource files according to run mode
// NOTE(SW): required since certain files can be used in germline and somatic depending on mode
// but want to avoid duplicating as multiple inputs
// NOTE(SW): this pattern should be used only sparingly; implicit config from workflows is prefered
sage_blocklist_regions_somatic = sage_blocklist_regions
sage_blocklist_sites_somatic = sage_blocklist_sites
clinvar_annotations_somatic = clinvar_annotations
run_mode = Utils.getEnumFromString(params.mode, Constants.RunMode)
if (run_mode === Constants.RunMode.WGTS) {
sage_blocklist_regions_somatic = []
sage_blocklist_sites_somatic = []
clinvar_annotations_somatic = []
}

// Run process
SOMATIC(
ch_pave_somatic_inputs,
Expand All @@ -146,9 +132,7 @@ workflow PAVE_ANNOTATION {
genome_fai,
sage_pon,
pon_artefacts,
sage_blocklist_regions_somatic,
sage_blocklist_sites_somatic,
clinvar_annotations_somatic,
clinvar_annotations,
segment_mappability,
driver_gene_panel,
ensembl_data_resources,
Expand Down

0 comments on commit 41b962e

Please sign in to comment.