diff --git a/subworkflows/nf-core/bcl_demultiplex/main.nf b/subworkflows/nf-core/bcl_demultiplex/main.nf index 7061cfffbe18..08ae1585456b 100644 --- a/subworkflows/nf-core/bcl_demultiplex/main.nf +++ b/subworkflows/nf-core/bcl_demultiplex/main.nf @@ -60,7 +60,8 @@ workflow BCL_DEMULTIPLEX { // MODULE: multiqcsav ch_mqcsav_input = ch_flowcell .map { meta, _samplesheet, flowcell -> - def interop = files(file(flowcell).resolve("InterOp/*.bin"), checkIfExists: true) + def interopDir = file(flowcell).resolve("InterOp") + def interop = file(interopDir).exists() ? files("${interopDir}/*.bin") : [] def xml = files(file(flowcell).resolve("*.xml"), checkIfExists: true) return [meta, xml, interop] }