Skip to content

Commit 3c5fa30

Browse files
committed
Update logic to reflect fixes / enhancements added in [email protected]
1 parent cee9f54 commit 3c5fa30

File tree

3 files changed

+20
-10
lines changed

3 files changed

+20
-10
lines changed

.nf-core.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ lint:
44
- assets/email_template.html
55
- assets/email_template.txt
66
- lib/NfcoreTemplate.groovy
7+
- pyproject.toml
78
multiqc_config: false

nextflow_schema.json

+16
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
"bbsplit_fasta_list": {
123123
"type": "string",
124124
"format": "file-path",
125+
"exists": true,
125126
"mimetype": "text/plain",
126127
"fa_icon": "fas fa-list-alt",
127128
"description": "Path to comma-separated file containing a list of reference genomes to filter reads against with BBSplit. You have to also explicitly set `--skip_bbsplit false` if you want to use BBSplit.",
@@ -130,6 +131,7 @@
130131
"bbsplit_index": {
131132
"type": "string",
132133
"format": "path",
134+
"exists": true,
133135
"fa_icon": "fas fa-bezier-curve",
134136
"description": "Path to directory or tar.gz archive for pre-built BBSplit index.",
135137
"help_text": "The BBSplit index will have to be built at least once with this pipeline (see `--save_reference` to save index). It can then be provided via `--bbsplit_index` for future runs."
@@ -154,6 +156,7 @@
154156
"ribo_database_manifest": {
155157
"type": "string",
156158
"format": "file-path",
159+
"exists": true,
157160
"mimetype": "text/plain",
158161
"default": "${projectDir}/assets/rrna-db-defaults.txt",
159162
"fa_icon": "fas fa-database",
@@ -193,6 +196,7 @@
193196
"gtf": {
194197
"type": "string",
195198
"format": "file-path",
199+
"exists": true,
196200
"mimetype": "text/plain",
197201
"pattern": "^\\S+\\.gtf(\\.gz)?$",
198202
"description": "Path to GTF annotation file.",
@@ -202,6 +206,7 @@
202206
"gff": {
203207
"type": "string",
204208
"format": "file-path",
209+
"exists": true,
205210
"mimetype": "text/plain",
206211
"pattern": "^\\S+\\.gff(\\.gz)?$",
207212
"fa_icon": "fas fa-code-branch",
@@ -211,6 +216,7 @@
211216
"gene_bed": {
212217
"type": "string",
213218
"format": "file-path",
219+
"exists": true,
214220
"mimetype": "text/plain",
215221
"pattern": "^\\S+\\.bed(\\.gz)?$",
216222
"fa_icon": "fas fa-procedures",
@@ -219,6 +225,7 @@
219225
"transcript_fasta": {
220226
"type": "string",
221227
"format": "file-path",
228+
"exists": true,
222229
"mimetype": "text/plain",
223230
"pattern": "^\\S+\\.fn?a(sta)?(\\.gz)?$",
224231
"fa_icon": "far fa-file-code",
@@ -227,6 +234,7 @@
227234
"additional_fasta": {
228235
"type": "string",
229236
"format": "file-path",
237+
"exists": true,
230238
"mimetype": "text/plain",
231239
"pattern": "^\\S+\\.fn?a(sta)?(\\.gz)?$",
232240
"fa_icon": "far fa-file-code",
@@ -236,31 +244,36 @@
236244
"splicesites": {
237245
"type": "string",
238246
"format": "file-path",
247+
"exists": true,
239248
"mimetype": "text/plain",
240249
"fa_icon": "fas fa-hand-scissors",
241250
"description": "Splice sites file required for HISAT2."
242251
},
243252
"star_index": {
244253
"type": "string",
245254
"format": "path",
255+
"exists": true,
246256
"fa_icon": "fas fa-bezier-curve",
247257
"description": "Path to directory or tar.gz archive for pre-built STAR index."
248258
},
249259
"hisat2_index": {
250260
"type": "string",
251261
"format": "path",
262+
"exists": true,
252263
"fa_icon": "fas fa-bezier-curve",
253264
"description": "Path to directory or tar.gz archive for pre-built HISAT2 index."
254265
},
255266
"rsem_index": {
256267
"type": "string",
257268
"format": "path",
269+
"exists": true,
258270
"fa_icon": "fas fa-bezier-curve",
259271
"description": "Path to directory or tar.gz archive for pre-built RSEM index."
260272
},
261273
"salmon_index": {
262274
"type": "string",
263275
"format": "path",
276+
"exists": true,
264277
"fa_icon": "fas fa-bezier-curve",
265278
"description": "Path to directory or tar.gz archive for pre-built Salmon index."
266279
},
@@ -694,6 +707,7 @@
694707
"multiqc_config": {
695708
"type": "string",
696709
"format": "file-path",
710+
"exists": true,
697711
"mimetype": "text/plain",
698712
"description": "Custom config file to supply to MultiQC.",
699713
"fa_icon": "fas fa-cog",
@@ -702,6 +716,7 @@
702716
"multiqc_logo": {
703717
"type": "string",
704718
"format": "file-path",
719+
"exists": true,
705720
"mimetype": "text/plain",
706721
"description": "Custom logo file to supply to MultiQC. File name must also be set in the MultiQC config file",
707722
"fa_icon": "fas fa-image",
@@ -710,6 +725,7 @@
710725
"multiqc_methods_description": {
711726
"type": "string",
712727
"format": "file-path",
728+
"exists": true,
713729
"mimetype": "text/plain",
714730
"description": "Custom MultiQC yaml file containing HTML including a methods description.",
715731
"fa_icon": "fas fa-cog"

workflows/rnaseq.nf

+3-10
Original file line numberDiff line numberDiff line change
@@ -193,19 +193,12 @@ workflow RNASEQ {
193193
.fromSamplesheet("input")
194194
.map {
195195
meta, fastq_1, fastq_2 ->
196-
if (!fastq_1.exists()) {
197-
error("Please check input samplesheet -> Read 1 FastQ file does not exist!\n${fastq_1}")
198-
}
199-
if (fastq_2) {
200-
if(!fastq_2.exists()) {
201-
error("Please check input samplesheet -> Read 2 FastQ file does not exist!\n${fastq_2}")
202-
}
203-
return [ meta.id, meta + [ single_end:false ], [ fastq_1, fastq_2 ] ]
204-
} else {
196+
if (!fastq_2) {
205197
return [ meta.id, meta + [ single_end:true ], [ fastq_1 ] ]
198+
} else {
199+
return [ meta.id, meta + [ single_end:false ], [ fastq_1, fastq_2 ] ]
206200
}
207201
}
208-
.unique()
209202
.groupTuple()
210203
.map {
211204
WorkflowRnaseq.validateInput(it)

0 commit comments

Comments
 (0)