diff --git a/nextflow_schema.json b/nextflow_schema.json index f2283d9..56bcaaf 100644 --- a/nextflow_schema.json +++ b/nextflow_schema.json @@ -179,8 +179,9 @@ "generate_pipeline_samplesheets": { "type": "string", "default": "taxprofiler", - "description": "Specify a comma separated string in quotes to specify which pipeline to generate a samplesheet for. Currently supported pipeline(s): taxprofiler", - "fa_icon": "fas fa-toolbox" + "description": "Specify a comma separated string in quotes to specify which pipeline to generate a samplesheet for.", + "fa_icon": "fas fa-toolbox", + "pattern": "^(taxprofiler)(?:,(taxprofiler)){0,1}" }, "generate_samplesheet_dbtype": { "type": "string", diff --git a/subworkflows/local/utils_nfcore_createtaxdb_pipeline/main.nf b/subworkflows/local/utils_nfcore_createtaxdb_pipeline/main.nf index 3fba330..8b0d04e 100644 --- a/subworkflows/local/utils_nfcore_createtaxdb_pipeline/main.nf +++ b/subworkflows/local/utils_nfcore_createtaxdb_pipeline/main.nf @@ -141,11 +141,6 @@ def validateInputParameters() { error('[nf-core/createtaxdb] If supplying `--generate_downsteam_samplesheets`, you must also specify which pipeline to generate for with `--generate_pipeline_samplesheets! Check input.') } - def supported_samplesheets = ['taxprofiler'] - if (params.generate_downstream_samplesheets && !params.generate_pipeline_samplesheets.split(",").every { it in supported_samplesheets }) { - error("[nf-core/createtaxdb] Unrecognised or unsupported pipeline selection for samplesheet generation. Options: ${supported_samplesheets.join(", ")}. Specified: --generate_pipeline_samplesheets ${params.generate_pipeline_samplesheets}") - } - if (params.generate_downstream_samplesheets && !params.generate_tar_archive && params.generate_samplesheet_dbtype == 'tar') { error('[nf-core/createtaxdb] Supplied --generate_downstream_samplesheets with --generate_samplesheet_dbtype tar, but missing --generate_tar_archive (mandatory for tar archive output).') }