Skip to content

Commit

Permalink
updated gaurd conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
mattheww95 committed Sep 13, 2024
1 parent bb420d2 commit 296b8d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/local/locidex_select.nf
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
}

Expand Down
2 changes: 1 addition & 1 deletion subworkflows/local/locidex.nf
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
}

Expand Down

0 comments on commit 296b8d5

Please sign in to comment.