From 296b8d5c19b26242174122eabcb1598081cc586e Mon Sep 17 00:00:00 2001 From: Matthew Wells Date: Fri, 13 Sep 2024 12:42:29 -0500 Subject: [PATCH] updated gaurd conditions --- modules/local/locidex_select.nf | 2 +- subworkflows/local/locidex.nf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/local/locidex_select.nf b/modules/local/locidex_select.nf index 5621ff1..577df9d 100644 --- a/modules/local/locidex_select.nf +++ b/modules/local/locidex_select.nf @@ -53,7 +53,7 @@ process LOCIDEX_SELECT { def report_name = "${meta.id}_${params.locidex.db_config_output_name}" output_config = task.workDir.resolve(report_name) - if(params.override_allele_scheme && params.locidex.allele_database == null){ + if(!params.override_allele_scheme && params.locidex.allele_database == null){ error("Allele calling is enabled but there is no allele scheme or locidex allele database location present.") } diff --git a/subworkflows/local/locidex.nf b/subworkflows/local/locidex.nf index 0a9b6f8..1ecbf15 100644 --- a/subworkflows/local/locidex.nf +++ b/subworkflows/local/locidex.nf @@ -16,7 +16,7 @@ workflow LOCIDEX { paired_species = top_hit.join(contigs) paired_dbs = Channel.empty() - if(params.override_allele_scheme && params.locidex.allele_database == null && !params.skip_allele_calling){ + if(!params.override_allele_scheme && params.locidex.allele_database == null && !params.skip_allele_calling){ error("Allele calling is enabled, but no locidex database directory has been configured.") }