diff --git a/workflows/gas_nomenclature.nf b/workflows/gas_nomenclature.nf index 80518d9..b0fb977 100644 --- a/workflows/gas_nomenclature.nf +++ b/workflows/gas_nomenclature.nf @@ -85,9 +85,9 @@ workflow GAS_NOMENCLATURE { new_input = match.filter { meta, json -> if (meta.id_match) { return true // Keep the sample - } else if (meta.address == null && meta.id_match == 'False') { + } else if (meta.address == null && !meta.id_match) { return false // Remove the sample - } else if (meta.address != null && meta.id_match == 'False') { + } else if (meta.address != null && !meta.id_match) { // Exit with error statement throw new RuntimeException("Pipeline exiting: sample with ID ${meta.id} does not have matching MLST JSON file.") }