Skip to content

Commit 3c0a94d

Browse files
authored
Merge pull request #51 from mirpedrol/update-modules-msa-treealign
add more module to msa_treealign
2 parents 47da7ae + bd2cf26 commit 3c0a94d

File tree

7 files changed

+161
-3
lines changed

7 files changed

+161
-3
lines changed

classes/msa_treealign.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ components:
5252
- famsa/align
5353
- magus/align
5454
- tcoffee/align
55+
- tcoffee/regressive
56+
- upp/align
5557
testdata:
5658
- - "[ id:'test' ]"
5759
- "file(params.modules_testdata_base_path + 'genomics/eukaryotes/anemonia_sulcata/seatoxin-ref.aln', checkIfExists: true)"

subworkflows/mirpedrol/msa_treealign/main.nf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ include { CLUSTALO_ALIGN } from '../../../modules/nf-core/clustalo/align/main'
22
include { FAMSA_ALIGN } from '../../../modules/nf-core/famsa/align/main'
33
include { MAGUS_ALIGN } from '../../../modules/nf-core/magus/align/main'
44
include { TCOFFEE_ALIGN } from '../../../modules/nf-core/tcoffee/align/main'
5+
include { TCOFFEE_REGRESSIVE } from '../../../modules/nf-core/tcoffee/regressive/main'
6+
include { UPP_ALIGN } from '../../../modules/nf-core/upp/align/main'
57

68

79
workflow MSA_TREEALIGN {
@@ -25,6 +27,10 @@ workflow MSA_TREEALIGN {
2527
return [ meta, fasta ]
2628
tcoffee_align: tool == "tcoffee_align"
2729
return [ meta, fasta ]
30+
tcoffee_regressive: tool == "tcoffee_regressive"
31+
return [ meta, fasta ]
32+
upp_align: tool == "upp_align"
33+
return [ meta, fasta ]
2834
}
2935
.set { ch_fasta_branch }
3036
ch_tree
@@ -38,6 +44,10 @@ workflow MSA_TREEALIGN {
3844
return [ meta, tree ]
3945
tcoffee_align: tool == "tcoffee_align"
4046
return [ meta, tree ]
47+
tcoffee_regressive: tool == "tcoffee_regressive"
48+
return [ meta, tree ]
49+
upp_align: tool == "upp_align"
50+
return [ meta, tree ]
4151
}
4252
.set { ch_tree_branch }
4353

@@ -57,6 +67,14 @@ workflow MSA_TREEALIGN {
5767
ch_out_alignment = ch_out_alignment.mix(TCOFFEE_ALIGN.out.alignment)
5868
ch_out_versions = ch_out_versions.mix(TCOFFEE_ALIGN.out.versions)
5969

70+
TCOFFEE_REGRESSIVE( ch_fasta_branch.tcoffee_regressive, ch_tree_branch.tcoffee_regressive, [[], [], []], [] )
71+
ch_out_alignment = ch_out_alignment.mix(TCOFFEE_REGRESSIVE.out.alignment)
72+
ch_out_versions = ch_out_versions.mix(TCOFFEE_REGRESSIVE.out.versions)
73+
74+
UPP_ALIGN( ch_fasta_branch.upp_align, ch_tree_branch.upp_align, [] )
75+
ch_out_alignment = ch_out_alignment.mix(UPP_ALIGN.out.alignment)
76+
ch_out_versions = ch_out_versions.mix(UPP_ALIGN.out.versions)
77+
6078

6179

6280
emit:

subworkflows/mirpedrol/msa_treealign/meta.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ components:
1111
git_remote: "https://github.com/nf-core/modules.git"
1212
- tcoffee/align:
1313
git_remote: "https://github.com/nf-core/modules.git"
14+
- tcoffee/regressive:
15+
git_remote: "https://github.com/nf-core/modules.git"
16+
- upp/align:
17+
git_remote: "https://github.com/nf-core/modules.git"
1418

1519
input:
1620
- ch_fasta:
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Changes in component 'mirpedrol/msa_treealign'
2+
'subworkflows/mirpedrol/msa_treealign/.nf-test.log' was created
3+
'subworkflows/mirpedrol/msa_treealign/meta.yml' is unchanged
4+
'subworkflows/mirpedrol/msa_treealign/main.nf' is unchanged
5+
'subworkflows/mirpedrol/msa_treealign/tests/main.nf.test.snap' was created
6+
'subworkflows/mirpedrol/msa_treealign/tests/nextflow.config' was created
7+
Changes in 'msa_treealign/tests/main.nf.test':
8+
--- subworkflows/mirpedrol/msa_treealign/tests/main.nf.test
9+
+++ subworkflows/mirpedrol/msa_treealign/tests/main.nf.test
10+
@@ -111,6 +111,7 @@
11+
}
12+
13+
test("upp/align") {
14+
+ config "./nextflow.config"
15+
16+
when {
17+
workflow {
18+
19+
************************************************************

subworkflows/mirpedrol/msa_treealign/tests/main.nf.test

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ nextflow_workflow {
1111
tag "subworkflows/../../modules/nf-core/famsa/align"
1212
tag "subworkflows/../../modules/nf-core/magus/align"
1313
tag "subworkflows/../../modules/nf-core/tcoffee/align"
14+
tag "subworkflows/../../modules/nf-core/tcoffee/regressive"
15+
tag "subworkflows/../../modules/nf-core/upp/align"
1416

1517

1618
test("clustalo/align") {
@@ -89,5 +91,44 @@ nextflow_workflow {
8991
}
9092
}
9193

94+
test("tcoffee/regressive") {
95+
96+
when {
97+
workflow {
98+
"""
99+
input[0] = Channel.of( [[ id:'test' ], file(params.modules_testdata_base_path + 'genomics/eukaryotes/anemonia_sulcata/seatoxin-ref.aln', checkIfExists: true), 'tcoffee_regressive'] )
100+
input[1] = Channel.of( [[ id:'test' ], file(params.modules_testdata_base_path + 'genomics/eukaryotes/anemonia_sulcata/seatoxin-ref.dnd', checkIfExists: true), 'tcoffee_regressive'] )
101+
"""
102+
}
103+
}
104+
105+
then {
106+
assertAll(
107+
{ assert workflow.success },
108+
{ assert snapshot(workflow.out).match("tcoffee/regressive") },
109+
)
110+
}
111+
}
112+
113+
test("upp/align") {
114+
config "./nextflow.config"
115+
116+
when {
117+
workflow {
118+
"""
119+
input[0] = Channel.of( [[ id:'test' ], file(params.modules_testdata_base_path + 'genomics/eukaryotes/anemonia_sulcata/seatoxin-ref.aln', checkIfExists: true), 'upp_align'] )
120+
input[1] = Channel.of( [[ id:'test' ], file(params.modules_testdata_base_path + 'genomics/eukaryotes/anemonia_sulcata/seatoxin-ref.dnd', checkIfExists: true), 'upp_align'] )
121+
"""
122+
}
123+
}
124+
125+
then {
126+
assertAll(
127+
{ assert workflow.success },
128+
{ assert snapshot(workflow.out).match("upp/align") },
129+
)
130+
}
131+
}
132+
92133

93134
}

subworkflows/mirpedrol/msa_treealign/tests/main.nf.test.snap

Lines changed: 70 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
]
4545
],
4646
"1": [
47-
"versions.yml:md5,dc23c65f66a62f337556459f11efb7b3"
47+
"versions.yml:md5,a1ee55248052d51e7dea2c7ae59d27d7"
4848
],
4949
"alignment": [
5050
[
@@ -55,7 +55,7 @@
5555
]
5656
],
5757
"versions": [
58-
"versions.yml:md5,dc23c65f66a62f337556459f11efb7b3"
58+
"versions.yml:md5,a1ee55248052d51e7dea2c7ae59d27d7"
5959
]
6060
}
6161
],
@@ -65,6 +65,40 @@
6565
},
6666
"timestamp": "2025-08-01T14:08:10.972913645"
6767
},
68+
"tcoffee/regressive": {
69+
"content": [
70+
{
71+
"0": [
72+
[
73+
{
74+
"id": "test"
75+
},
76+
"test.aln:md5,a399645e1b14b858ccc9aef57ce3d9f8"
77+
]
78+
79+
],
80+
"1": [
81+
"versions.yml:md5,167b47da97b1e1b8f168aa85495245b4"
82+
],
83+
"alignment": [
84+
[
85+
{
86+
"id": "test"
87+
},
88+
"test.aln:md5,a399645e1b14b858ccc9aef57ce3d9f8"
89+
]
90+
],
91+
"versions": [
92+
"versions.yml:md5,167b47da97b1e1b8f168aa85495245b4"
93+
]
94+
}
95+
],
96+
"meta": {
97+
"nf-test": "0.9.2",
98+
"nextflow": "25.10.0"
99+
},
100+
"timestamp": "2025-11-26T14:48:00.884458852"
101+
},
68102
"magus/align": {
69103
"content": [
70104
{
@@ -130,5 +164,38 @@
130164
"nextflow": "25.04.6"
131165
},
132166
"timestamp": "2025-08-01T14:09:48.216260207"
167+
},
168+
"upp/align": {
169+
"content": [
170+
{
171+
"0": [
172+
[
173+
{
174+
"id": "test"
175+
},
176+
"test.aln:md5,a543b6c4d215628c0307111268496557"
177+
]
178+
],
179+
"1": [
180+
"versions.yml:md5,480e12b84ba1a750dc9e347a0ee77d1b"
181+
],
182+
"alignment": [
183+
[
184+
{
185+
"id": "test"
186+
},
187+
"test.aln:md5,a543b6c4d215628c0307111268496557"
188+
]
189+
],
190+
"versions": [
191+
"versions.yml:md5,480e12b84ba1a750dc9e347a0ee77d1b"
192+
]
193+
}
194+
],
195+
"meta": {
196+
"nf-test": "0.9.2",
197+
"nextflow": "25.10.0"
198+
},
199+
"timestamp": "2025-11-26T14:48:08.969096652"
133200
}
134-
}
201+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
process {
2+
3+
withName: "UPP_ALIGN" {
4+
ext.args = { "-m amino" }
5+
}
6+
7+
}

0 commit comments

Comments
 (0)