Skip to content

Commit

Permalink
Updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kylacochrane committed May 21, 2024
1 parent 9748287 commit 131af6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflows/gas_nomenclature.nf
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
}
Expand Down

0 comments on commit 131af6f

Please sign in to comment.