Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Add some sanity checks in SC__ANNOTATE_BY_SAMPLE_METADATA process
Browse files Browse the repository at this point in the history
  • Loading branch information
dweemx committed Sep 24, 2020
1 parent 239b229 commit 16c5dbf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utils/processes/h5adAnnotate.nf
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,14 @@ process SC__ANNOTATE_BY_SAMPLE_METADATA {
// samplecolumnName
sampleColumnName = ''
if(processParams.containsKey("by")) {
if(!processParams.by.containsKey("sampleColumnName")) {
throw new Exception("VSN ERROR: Missing sampleColumnName param in params.sc.sample_annotate.by.")
}
sampleColumnName = processParams.by.sampleColumnName
} else {
if(!processParams.containsKey("sampleColumnName")) {
throw new Exception("VSN ERROR: Missing sampleColumnName param in params.sc.sample_annotate.")
}
// make it backward compatible (see sample_annotate_old_v1.config)
sampleColumnName = processParams.sampleColumnName
}
Expand Down

0 comments on commit 16c5dbf

Please sign in to comment.