Skip to content

Commit b374c9b

Browse files
committed
Use nft-bam
1 parent fc793a0 commit b374c9b

File tree

2 files changed

+17
-87
lines changed

2 files changed

+17
-87
lines changed

subworkflows/local/align_star/tests/main.nf.test

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,14 @@ nextflow_workflow {
6363
{ assert snapshot(
6464
file(workflow.out.log_final[0][1]).name,
6565
file(workflow.out.log_out[0][1]).name,
66-
workflow.out.bai,
67-
workflow.out.bam,
68-
workflow.out.bam_sorted,
69-
workflow.out.bam_transcript,
66+
file(workflow.out.bai[0][1]).name,
67+
bam(workflow.out.bam[0][1]).getReadsMD5(),
7068
workflow.out.csi,
7169
workflow.out.log_progress,
7270
workflow.out.fastq,
7371
workflow.out.flagstat,
7472
workflow.out.idxstats,
75-
workflow.out.orig_bam,
73+
bam(workflow.out.orig_bam[0][1]).getReadsMD5(),
7674
workflow.out.stats,
7775
workflow.out.tab,
7876
workflow.out.versions).match()}
@@ -132,16 +130,14 @@ nextflow_workflow {
132130
{ assert snapshot(
133131
file(workflow.out.log_final[0][1]).name,
134132
file(workflow.out.log_out[0][1]).name,
135-
workflow.out.bai,
136-
workflow.out.bam,
137-
workflow.out.bam_sorted,
138-
workflow.out.bam_transcript,
133+
file(workflow.out.bai[0][1]).name,
134+
bam(workflow.out.bam[0][1]).getReadsMD5(),
139135
workflow.out.csi,
140136
workflow.out.log_progress,
141137
workflow.out.fastq,
142138
workflow.out.flagstat,
143139
workflow.out.idxstats,
144-
workflow.out.orig_bam,
140+
bam(workflow.out.orig_bam[0][1]).getReadsMD5(),
145141
workflow.out.stats,
146142
workflow.out.tab,
147143
workflow.out.versions).match()}

subworkflows/local/align_star/tests/main.nf.test.snap

Lines changed: 11 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,8 @@
33
"content": [
44
"test.Log.final.out",
55
"test.Log.out",
6-
[
7-
[
8-
{
9-
"id": "test",
10-
"single_end": false
11-
},
12-
"test.bam.bai:md5,4cf31974d82bed533f4b6528dff95b50"
13-
]
14-
],
15-
[
16-
[
17-
{
18-
"id": "test",
19-
"single_end": false
20-
},
21-
"test.bam:md5,7137528dd300c4ae0f7e3370a5555c79"
22-
]
23-
],
24-
[
25-
[
26-
{
27-
"id": "test",
28-
"single_end": false
29-
},
30-
"test.Aligned.sortedByCoord.out.bam:md5,b6cec9bba6b04b9b92eddbef128bdfbb"
31-
]
32-
],
33-
[
34-
35-
],
6+
"test.bam.bai",
7+
"1e02b8e6b4a02ab58bfe4ee795aba815",
368
[
379

3810
],
@@ -66,15 +38,7 @@
6638
"test.idxstats:md5,107ca94dd426cc44db316f0d402307c5"
6739
]
6840
],
69-
[
70-
[
71-
{
72-
"id": "test",
73-
"single_end": false
74-
},
75-
"test.Aligned.sortedByCoord.out.bam:md5,b6cec9bba6b04b9b92eddbef128bdfbb"
76-
]
77-
],
41+
"db9a8324b5163b025bcc0c33e848486",
7842
[
7943
[
8044
{
@@ -103,10 +67,10 @@
10367
]
10468
],
10569
"meta": {
106-
"nf-test": "0.9.0",
107-
"nextflow": "24.04.4"
70+
"nf-test": "0.9.2",
71+
"nextflow": "24.10.2"
10872
},
109-
"timestamp": "2024-10-21T14:53:32.322441137"
73+
"timestamp": "2025-06-06T17:48:18.740399"
11074
},
11175
"star - no igenomes - stub": {
11276
"content": [
@@ -248,30 +212,8 @@
248212
"content": [
249213
"test.Log.final.out",
250214
"test.Log.out",
251-
[
252-
[
253-
{
254-
"id": "test",
255-
"single_end": false
256-
},
257-
"test.bam.bai:md5,59e8552f0e50c540d41198496bf34251"
258-
]
259-
],
260-
[
261-
[
262-
{
263-
"id": "test",
264-
"single_end": false
265-
},
266-
"test.bam:md5,0d47a5f971c1548eadc1f3c39dab0dbf"
267-
]
268-
],
269-
[
270-
271-
],
272-
[
273-
274-
],
215+
"test.bam.bai",
216+
"1e02b8e6b4a02ab58bfe4ee795aba815",
275217
[
276218

277219
],
@@ -305,15 +247,7 @@
305247
"test.idxstats:md5,107ca94dd426cc44db316f0d402307c5"
306248
]
307249
],
308-
[
309-
[
310-
{
311-
"id": "test",
312-
"single_end": false
313-
},
314-
"test.Aligned.sortedByCoord.out.bam:md5,4e917b4befbbe216fd666d06af0298af"
315-
]
316-
],
250+
"db9a8324b5163b025bcc0c33e848486",
317251
[
318252
[
319253
{
@@ -343,9 +277,9 @@
343277
],
344278
"meta": {
345279
"nf-test": "0.9.2",
346-
"nextflow": "24.10.3"
280+
"nextflow": "24.10.2"
347281
},
348-
"timestamp": "2024-12-19T09:47:39.98853048"
282+
"timestamp": "2025-06-06T17:36:09.274326"
349283
},
350284
"star - with igenomes - stub": {
351285
"content": [

0 commit comments

Comments
 (0)