From c2daeab38aabfb56d52ffb9132f7a9e79a4880cf Mon Sep 17 00:00:00 2001 From: Sam Lambert Date: Wed, 19 Jun 2024 20:45:27 +0100 Subject: [PATCH 1/2] Update SamplesheetParser.groovy --- lib/SamplesheetParser.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SamplesheetParser.groovy b/lib/SamplesheetParser.groovy index 828170a7..9cca8db4 100644 --- a/lib/SamplesheetParser.groovy +++ b/lib/SamplesheetParser.groovy @@ -177,7 +177,7 @@ class SamplesheetParser { 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'") + Nextflow.error("Reserved sampleset name/character detected. DO NOT call your sampleset 'reference' or use underscores ('_') in the name.") } } From 717a5651f1f1d089661ad8d2f5dbc1b004cc7623 Mon Sep 17 00:00:00 2001 From: Benjamin Wingfield Date: Thu, 20 Jun 2024 09:59:43 +0100 Subject: [PATCH 2/2] fix multiple samplesheet error message --- lib/SamplesheetParser.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SamplesheetParser.groovy b/lib/SamplesheetParser.groovy index 9cca8db4..e3e41299 100644 --- a/lib/SamplesheetParser.groovy +++ b/lib/SamplesheetParser.groovy @@ -168,7 +168,7 @@ class SamplesheetParser { def samplesets = rows.collect { row -> row.sampleset } def n_samplesets = samplesets.toSet().size() if (n_samplesets > 1) { - Nextflow.error("${n_samplesets} missing chromosomes detected! Maximum is 1. Check your samplesheet.") + Nextflow.error("${n_samplesets} samplesets detected! Maximum is 1. Check your samplesheet.") } }