diff --git a/main.nf b/main.nf index df59326..1bdf0eb 100644 --- a/main.nf +++ b/main.nf @@ -35,7 +35,7 @@ workflow { CollectVersions.out.software_versions, CollectVersions.out.model_versions, BasecallingAndDemux.out.sequencing_summary, - samples.map { it[0] }.collect(), + samples.map { it[0] }.collect().ifEmpty { [] }, data_dir, multiqc_config ) diff --git a/subworkflows/reports.nf b/subworkflows/reports.nf index 7602069..85369c4 100644 --- a/subworkflows/reports.nf +++ b/subworkflows/reports.nf @@ -64,7 +64,7 @@ process toulligQC { script: report_filename = "${slugify(params.experiment_name)}_toulligqc.html" barcode_list = ["NB23", "NB24"] - barcodes_opt = barcode_list + barcodes_opt = !params.skip_demultiplexing && barcode_list ? "--barcoding --barcodes ${barcode_list.join(',')}" : '' """