Skip to content

Commit

Permalink
feat: Add param to skip the pan/phylo subwf (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvfe committed Jun 16, 2023
1 parent 78a8c92 commit 3f3f5b2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
1 change: 1 addition & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ params {
accessory_similarity = 99

// Phylogenomics parameters
skip_phylo = false
use_ppanggolin = false
use_full_alignment = false
use_fasttree = true
Expand Down
8 changes: 7 additions & 1 deletion nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@
},
"skip_phispy": {
"type": "boolean",
"fa_icon": "fas fa-virus"
"fa_icon": "fas fa-virus",
"description": "Skip PhiSpy phage detection tool"
}
}
},
Expand All @@ -129,6 +130,11 @@
"default": "",
"fa_icon": "fab fa-pagelines",
"properties": {
"skip_phylo": {
"type": "boolean",
"fa_icon": "fas fa-forward",
"description": "Skip Pangenomics and Phylogenomics subworkflow"
},
"use_ppanggolin": {
"type": "boolean",
"fa_icon": "fas fa-expand",
Expand Down
12 changes: 8 additions & 4 deletions workflows/arete.nf
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,10 @@ workflow ARETE {
ch_software_versions = ch_software_versions.mix(ASSEMBLE_SHORTREADS.out.assembly_software)

////////////////////////// PANGENOME /////////////////////////////////////
PHYLOGENOMICS(gffs, use_full_alignment, use_fasttree)
ch_software_versions = ch_software_versions.mix(PHYLOGENOMICS.out.phylo_software)
if (!params.skip_phylo) {
PHYLOGENOMICS(gffs, use_full_alignment, use_fasttree)
ch_software_versions = ch_software_versions.mix(PHYLOGENOMICS.out.phylo_software)
}

ch_software_versions
.map { it -> if (it) [ it.baseName, it ] }
Expand Down Expand Up @@ -387,8 +389,10 @@ workflow ANNOTATION {
}

////////////////////////// PANGENOME /////////////////////////////////////
PHYLOGENOMICS(gffs, use_full_alignment, use_fasttree)
ch_software_versions = ch_software_versions.mix(PHYLOGENOMICS.out.phylo_software)
if (!params.skip_phylo) {
PHYLOGENOMICS(gffs, use_full_alignment, use_fasttree)
ch_software_versions = ch_software_versions.mix(PHYLOGENOMICS.out.phylo_software)
}

ch_software_versions
.map { it -> if (it) [ it.baseName, it ] }
Expand Down

0 comments on commit 3f3f5b2

Please sign in to comment.