From 0ee988b0ba81a5201485d5b1eb1879690893f45b Mon Sep 17 00:00:00 2001 From: Nico Trummer Date: Sat, 30 Mar 2024 08:01:36 +0100 Subject: [PATCH] Make some parameters non-required when according modules are disabled --- main.nf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.nf b/main.nf index 544e9738..a360b046 100644 --- a/main.nf +++ b/main.nf @@ -56,11 +56,11 @@ workflow NFCORE_CIRCRNA { // WORKFLOW: Run nf-core/circrna workflow // ch_samplesheet = Channel.fromSamplesheet("input") - ch_phenotype = Channel.value([[id: "phenotype"], file(params.phenotype, checkIfExists:true)]) ch_fasta = Channel.value([[id: "fasta"], file(params.fasta, checkIfExists:true)]) ch_gtf = Channel.value([[id: "gtf"], file(params.gtf, checkIfExists:true)]) - ch_mature = Channel.value([[id: "mature"], file(params.mature, checkIfExists:true)]) - ch_species = Channel.value(params.species_id) + ch_mature = params.module.split(',').contains('mirna_prediction') ? Channel.value([[id: "mature"], file(params.mature, checkIfExists:true)]) : Channel.empty() + ch_phenotype = params.module.split(',').contains('differential_expression') ? Channel.value([[id: "phenotype"], file(params.phenotype, checkIfExists:true)]) : Channel.empty() + ch_species = params.module.split(',').contains('differential_expression') ? Channel.value(params.species_id) : Channel.empty() CIRCRNA ( ch_samplesheet,