Skip to content

Commit

Permalink
Update to add default to flag
Browse files Browse the repository at this point in the history
  • Loading branch information
DLBPointon committed Nov 15, 2024
1 parent 382f7f4 commit 5fb3c96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions workflows/treeval_rapid.nf
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ workflow TREEVAL_RAPID {
main:
ch_versions = Channel.empty()

exclude_workflow_steps = params.steps ? params.steps.split(",") : ""
exclude_workflow_steps = params.steps ? params.steps.split(",") : "NONE"

full_list = ["insilico_digest", "gene_alignments", "repeat_density", "gap_finder", "selfcomp", "synteny", "read_coverage", "telo_finder", "busco", "kmer", "hic_mapping", ""]
full_list = ["insilico_digest", "gene_alignments", "repeat_density", "gap_finder", "selfcomp", "synteny", "read_coverage", "telo_finder", "busco", "kmer", "hic_mapping", "NONE"]

if (!full_list.containsAll(exclude_workflow_steps)) {
exit 1, "There is an extra argument given on Command Line: \n Check contents of --exclude: $exclude_workflow_steps\nMaster list is: $full_list"
Expand Down
4 changes: 2 additions & 2 deletions workflows/treeval_rapid_tol.nf
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ workflow TREEVAL_RAPID_TOL {
main:
ch_versions = Channel.empty()

exclude_workflow_steps = params.exclude ? params.exclude.split(",") : ""
exclude_workflow_steps = params.exclude ? params.exclude.split(",") : "NONE"

full_list = ["insilico_digest", "gene_alignments", "repeat_density", "gap_finder", "selfcomp", "synteny", "read_coverage", "telo_finder", "busco", "kmer", "hic_mapping", ""]
full_list = ["insilico_digest", "gene_alignments", "repeat_density", "gap_finder", "selfcomp", "synteny", "read_coverage", "telo_finder", "busco", "kmer", "hic_mapping", "NONE"]

if (!full_list.containsAll(exclude_workflow_steps)) {
exit 1, "There is an extra argument given on Command Line: \n Check contents of --exclude: $exclude_workflow_steps\nMaster list is: $full_list"
Expand Down

0 comments on commit 5fb3c96

Please sign in to comment.