Skip to content

Commit

Permalink
Do not allow donor without normal
Browse files Browse the repository at this point in the history
  • Loading branch information
scwatts committed Sep 9, 2024
1 parent ee5209e commit 2c20a1e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/Utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,13 @@ class Utils {

}

// Do not allow donor sample without normal sample
if (Utils.hasDonorDna(meta) && ! Utils.hasNormalDna(meta)) {
log.error "a donor sample but not normal sample was found for ${meta.group_id}\n\n" +
"Analysis with a donor sample requires a normal sample."
Nextflow.exit(1)
}

// Apply some required restrictions to targeted mode
if (run_config.mode === Constants.RunMode.TARGETED) {

Expand Down

0 comments on commit 2c20a1e

Please sign in to comment.