Skip to content

Commit

Permalink
Move platform logic to main script
Browse files Browse the repository at this point in the history
  • Loading branch information
drpatelh committed Feb 4, 2021
1 parent cef16d4 commit a0c7519
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ Checks.aws_batch(workflow, params)
// Check the hostnames against configured profiles
Checks.hostname(workflow, params, log)

// Check sequencing platform
def platformList = ['illumina', 'nanopore']
if (!params.public_data_ids && !platformList.contains(params.platform)) {
exit 1, "Invalid platform option: ${params.platform}. Valid options: ${platformList.join(', ')}"
}

////////////////////////////////////////////////////
/* -- RUN MAIN WORKFLOW -- */
////////////////////////////////////////////////////
Expand Down

0 comments on commit a0c7519

Please sign in to comment.