Skip to content

Commit

Permalink
Check for _ in sampleset names
Browse files Browse the repository at this point in the history
  • Loading branch information
nebfield authored Apr 9, 2024
1 parent 8bdf287 commit 954330a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SamplesheetParser.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class SamplesheetParser {

private def checkReservedName(samplesheet) {
def samplesets = samplesheet.collect { row -> row.sampleset }
def n_bad_name = samplesets.count { it == "reference" }
def n_bad_name = samplesets.count { it == "reference" | it.contains("_") }

if (n_bad_name != 0) {
Nextflow.error("Reserved sampleset name detected. Please don't call your sampleset 'reference'")
Expand Down

0 comments on commit 954330a

Please sign in to comment.