Skip to content

Commit fd2419e

Browse files
committed
update test names and bwameth index md5
1 parent c856ff9 commit fd2419e

File tree

2 files changed

+68
-89
lines changed

2 files changed

+68
-89
lines changed

subworkflows/nf-core/fasta_index_bismark_bwameth/tests/main.nf.test

Lines changed: 10 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,14 @@ nextflow_workflow {
4646
test("Params: bismark | generate bismark index (bowtie2)") {
4747

4848
when {
49-
params {
50-
aligner = "bismark"
51-
}
5249
workflow {
5350
"""
5451
input[0] = file('https://github.com/nf-core/test-datasets/raw/methylseq/reference/genome.fa.gz', checkIfExists: true)
5552
input[1] = [] // fasta_index
5653
input[2] = [] // bismark_index
5754
input[3] = [] // bwameth_index
5855
input[4] = "bismark" // aligner
59-
input[5] = false // run_picard_collecthsmetrics
56+
input[5] = false // collecthsmetrics
6057
"""
6158
}
6259
}
@@ -78,17 +75,14 @@ nextflow_workflow {
7875
test("Params: bismark_hisat | download bismark index (hisat2)") {
7976

8077
when {
81-
params {
82-
aligner = "bismark_hisat"
83-
}
8478
workflow {
8579
"""
8680
input[0] = file('https://github.com/nf-core/test-datasets/raw/methylseq/reference/genome.fa.gz', checkIfExists: true)
8781
input[1] = [] // fasta_index
8882
input[2] = file('https://github.com/nf-core/test-datasets/raw/methylseq/reference/Hisat2_Index.tar.gz', checkIfExists: true)
8983
input[3] = [] // bwameth_index
9084
input[4] = "bismark_hisat" // aligner
91-
input[5] = false // run_picard_collecthsmetrics
85+
input[5] = false // collecthsmetrics
9286
"""
9387
}
9488
}
@@ -110,17 +104,14 @@ nextflow_workflow {
110104
test("Params: bismark_hisat | generate bismark index (hisat2)") {
111105

112106
when {
113-
params {
114-
aligner = "bismark_hisat"
115-
}
116107
workflow {
117108
"""
118109
input[0] = file('https://github.com/nf-core/test-datasets/raw/methylseq/reference/genome.fa.gz', checkIfExists: true)
119110
input[1] = [] // fasta_index
120111
input[2] = file('https://github.com/nf-core/test-datasets/raw/methylseq/reference/Hisat2_Index.tar.gz', checkIfExists: true)
121112
input[3] = [] // bwameth_index
122113
input[4] = "bismark_hisat" // aligner
123-
input[5] = false // run_picard_collecthsmetrics
114+
input[5] = false // collecthsmetrics
124115
"""
125116
}
126117
}
@@ -139,21 +130,17 @@ nextflow_workflow {
139130
}
140131
}
141132

142-
test("Params: bismark | download bismark index (bowtie2) | run_picard_collecthsmetrics") {
133+
test("Params: bismark | download bismark index (bowtie2) | collecthsmetrics") {
143134

144135
when {
145-
params {
146-
aligner = "bismark"
147-
run_picard_collecthsmetrics = true
148-
}
149136
workflow {
150137
"""
151138
input[0] = file('https://github.com/nf-core/test-datasets/raw/methylseq/reference/genome.fa.gz', checkIfExists: true)
152139
input[1] = [] // fasta_index
153140
input[2] = file('https://github.com/nf-core/test-datasets/raw/methylseq/reference/Bowtie2_Index.tar.gz', checkIfExists: true)
154141
input[3] = [] // bwameth_index
155142
input[4] = "bismark" // aligner
156-
input[5] = true // run_picard_collecthsmetrics
143+
input[5] = true // collecthsmetrics
157144
"""
158145
}
159146
}
@@ -175,17 +162,14 @@ nextflow_workflow {
175162
test("Params: bwameth | download fasta index | download bwameth index") {
176163

177164
when {
178-
params {
179-
aligner = "bwameth"
180-
}
181165
workflow {
182166
"""
183167
input[0] = file('https://github.com/nf-core/test-datasets/raw/methylseq/reference/genome.fa.gz', checkIfExists: true)
184168
input[1] = file('https://github.com/nf-core/test-datasets/raw/methylseq/reference/genome.fa.fai', checkIfExists: true)
185169
input[2] = [] // bismark index
186170
input[3] = file('https://github.com/nf-core/test-datasets/raw/methylseq/reference/Bwameth_Index.tar.gz', checkIfExists: true)
187171
input[4] = "bwameth" // aligner
188-
input[5] = false // run_picard_collecthsmetrics
172+
input[5] = false // collecthsmetrics
189173
"""
190174
}
191175
}
@@ -207,17 +191,14 @@ nextflow_workflow {
207191
test("Params: bwameth | generate fasta index | download bwameth index") {
208192

209193
when {
210-
params {
211-
aligner = "bwameth"
212-
}
213194
workflow {
214195
"""
215196
input[0] = file('https://github.com/nf-core/test-datasets/raw/methylseq/reference/genome.fa.gz', checkIfExists: true)
216197
input[1] = [] //fasta index
217198
input[2] = [] // bismark index
218199
input[3] = file('https://github.com/nf-core/test-datasets/raw/methylseq/reference/Bwameth_Index.tar.gz', checkIfExists: true)
219200
input[4] = "bwameth" // aligner
220-
input[5] = false // run_picard_collecthsmetrics
201+
input[5] = false // collecthsmetrics
221202
"""
222203
}
223204
}
@@ -239,17 +220,14 @@ nextflow_workflow {
239220
test("Params: bwameth | generate fasta index | generate bwameth index") {
240221

241222
when {
242-
params {
243-
aligner = "bwameth"
244-
}
245223
workflow {
246224
"""
247225
input[0] = file('https://github.com/nf-core/test-datasets/raw/methylseq/reference/genome.fa.gz', checkIfExists: true)
248226
input[1] = [] // fasta_index
249227
input[2] = [] // bismark index
250228
input[3] = [] // bwameth index
251229
input[4] = "bwameth" // aligner
252-
input[5] = false // run_picard_collecthsmetrics
230+
input[5] = false // collecthsmetrics
253231
"""
254232
}
255233
}
@@ -268,21 +246,17 @@ nextflow_workflow {
268246
}
269247
}
270248

271-
test("Params: bwameth | generate fasta index | download bwameth index | run_picard_collecthsmetrics") {
249+
test("Params: bwameth | generate fasta index | download bwameth index | collecthsmetrics") {
272250

273251
when {
274-
params {
275-
aligner = "bwameth"
276-
run_picard_collecthsmetrics = true
277-
}
278252
workflow {
279253
"""
280254
input[0] = file('https://github.com/nf-core/test-datasets/raw/methylseq/reference/genome.fa.gz', checkIfExists: true)
281255
input[1] = [] //fasta index
282256
input[2] = [] // bismark index
283257
input[3] = file('https://github.com/nf-core/test-datasets/raw/methylseq/reference/Bwameth_Index.tar.gz', checkIfExists: true)
284258
input[4] = "bwameth" // aligner
285-
input[5] = true // run_picard_collecthsmetrics
259+
input[5] = true // collecthsmetrics
286260
"""
287261
}
288262
}

subworkflows/nf-core/fasta_index_bismark_bwameth/tests/main.nf.test.snap

Lines changed: 58 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,55 @@
214214
},
215215
"timestamp": "2024-12-13T18:04:54.292757645"
216216
},
217+
"Params: bwameth | generate fasta index | download bwameth index | collecthsmetrics": {
218+
"content": [
219+
[
220+
[
221+
{
222+
223+
},
224+
"genome.fa:md5,923a0a268ad29fee3c3437d00f9970de"
225+
]
226+
],
227+
[
228+
[
229+
{
230+
231+
},
232+
"genome.fa.fai:md5,84f5b44c25877ac58b154706cc8bc451"
233+
]
234+
],
235+
[
236+
237+
],
238+
[
239+
[
240+
{
241+
242+
},
243+
[
244+
"genome.fa:md5,923a0a268ad29fee3c3437d00f9970de",
245+
"genome.fa.bwameth.c2t:md5,e51d48ed28fa0c26e2f9c9f13d09403b",
246+
"genome.fa.bwameth.c2t.amb:md5,010a242c6764efb30141868a45d698b3",
247+
"genome.fa.bwameth.c2t.ann:md5,09b4db3d87a2d4dac9e10e807f377110",
248+
"genome.fa.bwameth.c2t.bwt:md5,4646f8ae6bd523b7f4106bbd32eff95e",
249+
"genome.fa.bwameth.c2t.pac:md5,a662d7add09698e25c8152fd2306ec66",
250+
"genome.fa.bwameth.c2t.sa:md5,4a1e905b828396a1909669bc9c573d8d"
251+
]
252+
]
253+
],
254+
[
255+
"versions.yml:md5,b0160273bd1b3b049a2748c02496c6d1",
256+
"versions.yml:md5,dfb3bc1adbc94d00aec14dad16eee3df",
257+
"versions.yml:md5,ee0146f5d2942f9ff466bf275567515e"
258+
]
259+
],
260+
"meta": {
261+
"nf-test": "0.9.2",
262+
"nextflow": "24.10.4"
263+
},
264+
"timestamp": "2025-04-15T11:09:44.719682704"
265+
},
217266
"Params: bismark_hisat | download bismark index (hisat2)": {
218267
"content": [
219268
[
@@ -286,7 +335,12 @@
286335
]
287336
],
288337
[
289-
"/nf-core/test-datasets/raw/methylseq/reference/genome.fa.fai"
338+
[
339+
{
340+
341+
},
342+
"/nf-core/test-datasets/raw/methylseq/reference/genome.fa.fai"
343+
]
290344
],
291345
[
292346

@@ -313,12 +367,12 @@
313367
]
314368
],
315369
"meta": {
316-
"nf-test": "0.9.2",
370+
"nf-test": "0.9.0",
317371
"nextflow": "24.10.2"
318372
},
319-
"timestamp": "2024-12-13T18:05:04.769597102"
373+
"timestamp": "2025-06-11T20:45:19.092285"
320374
},
321-
"Params: bismark | download bismark index (bowtie2) | run_picard_collecthsmetrics": {
375+
"Params: bismark | download bismark index (bowtie2) | collecthsmetrics": {
322376
"content": [
323377
[
324378
[
@@ -437,54 +491,5 @@
437491
"nextflow": "24.10.2"
438492
},
439493
"timestamp": "2024-12-13T18:04:34.428155309"
440-
},
441-
"Params: bwameth | generate fasta index | download bwameth index | run_picard_collecthsmetrics": {
442-
"content": [
443-
[
444-
[
445-
{
446-
447-
},
448-
"genome.fa:md5,923a0a268ad29fee3c3437d00f9970de"
449-
]
450-
],
451-
[
452-
[
453-
{
454-
455-
},
456-
"genome.fa.fai:md5,84f5b44c25877ac58b154706cc8bc451"
457-
]
458-
],
459-
[
460-
461-
],
462-
[
463-
[
464-
{
465-
466-
},
467-
[
468-
"genome.fa:md5,923a0a268ad29fee3c3437d00f9970de",
469-
"genome.fa.bwameth.c2t:md5,e51d48ed28fa0c26e2f9c9f13d09403b",
470-
"genome.fa.bwameth.c2t.amb:md5,010a242c6764efb30141868a45d698b3",
471-
"genome.fa.bwameth.c2t.ann:md5,09b4db3d87a2d4dac9e10e807f377110",
472-
"genome.fa.bwameth.c2t.bwt:md5,4646f8ae6bd523b7f4106bbd32eff95e",
473-
"genome.fa.bwameth.c2t.pac:md5,a662d7add09698e25c8152fd2306ec66",
474-
"genome.fa.bwameth.c2t.sa:md5,4a1e905b828396a1909669bc9c573d8d"
475-
]
476-
]
477-
],
478-
[
479-
"versions.yml:md5,b0160273bd1b3b049a2748c02496c6d1",
480-
"versions.yml:md5,dfb3bc1adbc94d00aec14dad16eee3df",
481-
"versions.yml:md5,ee0146f5d2942f9ff466bf275567515e"
482-
]
483-
],
484-
"meta": {
485-
"nf-test": "0.9.2",
486-
"nextflow": "24.10.4"
487-
},
488-
"timestamp": "2025-04-15T11:09:44.719682704"
489494
}
490495
}

0 commit comments

Comments
 (0)