File tree Expand file tree Collapse file tree
subworkflows/local/interproscan Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,9 +41,9 @@ workflow INTERPROSCAN {
4141 ch_versions = ch_versions. mix(INTERPROSCAN_RUN . out. versions. first())
4242
4343 emit :
44- tsv = INTERPROSCAN_RUN . out. tsv // channel: [ val(meta), [ tsv ] ]
45- xml = INTERPROSCAN_RUN . out. xml // channel: [ val(meta), [ xml ] ]
4644 gff3 = INTERPROSCAN_RUN . out. gff3 // channel: [ val(meta), [ gff3 ] ]
4745 json = INTERPROSCAN_RUN . out. json // channel: [ val(meta), [ json ] ]
46+ tsv = INTERPROSCAN_RUN . out. tsv // channel: [ val(meta), [ tsv ] ]
47+ xml = INTERPROSCAN_RUN . out. xml // channel: [ val(meta), [ xml ] ]
4848 versions = ch_versions // channel: [ versions.yml ]
4949}
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ nextflow_workflow {
1414 tag "untar"
1515
1616
17- // TODO nf-core: Change the test name preferably indicating the test-data and file-format used
1817 test("interproscan -- input: tar.gz, untar") {
1918
2019 when {
2120 params {
2221 interproscan_tar_gz = "${moduleTestDir}/fixtures/interproscan-5.73-104.0.tar.gz"
2322 interproscan_database_version = "interproscan-5.73-104.0"
23+ outdir = "results/"
2424 }
2525 workflow {
2626 """
@@ -46,4 +46,49 @@ nextflow_workflow {
4646 )
4747 }
4848 }
49+
50+ test("interproscan -- input: tar.gz, untar -- stub") {
51+ tag "stub"
52+ tag "CI"
53+ options "-stub"
54+
55+ when {
56+ params {
57+ interproscan_tar_gz = "${moduleTestDir}/fixtures/interproscan-5.73-104.0.tar.gz"
58+ interproscan_database_version = "interproscan-5.73-104.0"
59+ outdir = "results/"
60+ }
61+ workflow {
62+ """
63+ input[0] = Channel.of(
64+ [
65+ [ id:'test1', single_end:false ], // meta map
66+ file("${moduleTestDir}/fixtures/test1.fasta", checkIfExists: true)
67+ ],
68+ [
69+ [ id:'test2', single_end:false ], // meta map
70+ file("${moduleTestDir}/fixtures/test2.fasta", checkIfExists: true)
71+ ]
72+ )
73+ """
74+ }
75+ }
76+
77+ then {
78+ println "Number of output channels: ${workflow.out.size()}"
79+ assertAll(
80+ { assert workflow.success },
81+ // Warning: all of the outputs MUST be in the same order as the emit: "directive(?)"
82+ // We chose alphabetical sorting except for versions because you gotta pick some ordering
83+ { assert snapshot(
84+ workflow.out.gff3,
85+ workflow.out.json,
86+ workflow.out.tsv,
87+ workflow.out.xml,
88+ workflow.out.versions
89+ ).match()
90+ }
91+ )
92+ }
93+ }
4994}
Original file line number Diff line number Diff line change 11{
2- " interproscan -- input: tar.gz, untar" : {
2+ " interproscan -- input: tar.gz, untar -- stub " : {
33 " content" : [
4- {
5- " 0" : [
6-
4+ [
5+ [
6+ {
7+ " id" : " test1" ,
8+ " single_end" : false
9+ },
10+ " test1.gff3.gz:md5,d41d8cd98f00b204e9800998ecf8427e"
711 ],
8- " 1" : [
9-
10- ],
11- " 2" : [
12-
13- ],
14- " 3" : [
15-
16- ],
17- " 4" : [
18-
19- ],
20- " gff3" : [
21-
22- ],
23- " json" : [
24-
12+ [
13+ {
14+ " id" : " test2" ,
15+ " single_end" : false
16+ },
17+ " test2.gff3.gz:md5,d41d8cd98f00b204e9800998ecf8427e"
18+ ]
19+ ],
20+ [
21+ [
22+ {
23+ " id" : " test1" ,
24+ " single_end" : false
25+ },
26+ " test1.json.gz:md5,d41d8cd98f00b204e9800998ecf8427e"
2527 ],
26- " tsv" : [
27-
28+ [
29+ {
30+ " id" : " test2" ,
31+ " single_end" : false
32+ },
33+ " test2.json.gz:md5,d41d8cd98f00b204e9800998ecf8427e"
34+ ]
35+ ],
36+ [
37+ [
38+ {
39+ " id" : " test1" ,
40+ " single_end" : false
41+ },
42+ " test1.tsv.gz:md5,d41d8cd98f00b204e9800998ecf8427e"
2843 ],
29- " versions" : [
30-
44+ [
45+ {
46+ " id" : " test2" ,
47+ " single_end" : false
48+ },
49+ " test2.tsv.gz:md5,d41d8cd98f00b204e9800998ecf8427e"
50+ ]
51+ ],
52+ [
53+ [
54+ {
55+ " id" : " test1" ,
56+ " single_end" : false
57+ },
58+ " test1.xml.gz:md5,d41d8cd98f00b204e9800998ecf8427e"
3159 ],
32- " xml" : [
33-
60+ [
61+ {
62+ " id" : " test2" ,
63+ " single_end" : false
64+ },
65+ " test2.xml.gz:md5,d41d8cd98f00b204e9800998ecf8427e"
3466 ]
35- }
67+ ],
68+ [
69+ " versions.yml:md5,448c213a3be7face5f23a2fe79622fb4"
70+ ]
3671 ],
3772 " meta" : {
3873 " nf-test" : " 0.9.2" ,
3974 " nextflow" : " 25.04.1"
4075 },
41- " timestamp" : " 2025-05-13T16:31:13.768834 "
76+ " timestamp" : " 2025-06-03T11:33:01.738065 "
4277 }
4378}
You can’t perform that action at this time.
0 commit comments