Skip to content

Commit

Permalink
Fix duplicatation from inclusion of dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jtangrot committed Aug 17, 2023
1 parent 825a871 commit 7747d9e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions lib/WorkflowMain.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ class WorkflowMain {
if (params.qiime_ref_taxonomy && !params.skip_taxonomy && !params.classifier) {
qiimereftaxonomyExistsError(params, log)
}
if (params.sintax_ref_taxonomy && !params.skip_taxonomy) {
sintaxreftaxonomyExistsError(params, log)
}

// Print workflow version and exit on --version
if (params.version) {
Expand Down Expand Up @@ -99,17 +96,4 @@ class WorkflowMain {
Nextflow.error(error_string)
}
}
//
// Exit pipeline if incorrect --qiime_ref_taxonomy key provided
//
private static void sintaxreftaxonomyExistsError(params, log) {
if (params.sintax_ref_databases && params.sintax_ref_taxonomy && !params.sintax_ref_databases.containsKey(params.sintax_ref_taxonomy)) {
def error_string = "=============================================================================\n" +
" SINTAX reference database '${params.sintax_ref_taxonomy}' not found in any config files provided to the pipeline.\n" +
" Currently, the available reference taxonomy keys for `--sintax_ref_taxonomy` are:\n" +
" ${params.sintax_ref_databases.keySet().join(", ")}\n" +
"==================================================================================="
Nextflow.error(error_string)
}
}
}

0 comments on commit 7747d9e

Please sign in to comment.