Skip to content

Commit b8ccb74

Browse files
committed
add in stub code (commented for now) for alternative MSA tools
1 parent 5bad784 commit b8ccb74

1 file changed

Lines changed: 34 additions & 4 deletions

File tree

subworkflows/local/phylogeny.nf

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,40 @@ workflow PHYLOGENY {
1515
ch_versions = Channel.empty()
1616

1717
if (!params.skip_alignment) {
18-
DECIPHER(
19-
asvs
20-
)
21-
ch_alignment = DECIPHER.out.alignment
18+
ch_alignment = Channel.empty()
19+
// This is needed b/c nf-core modules have a
20+
// meta file, so we need to create a simple
21+
// fake one for the workflow
22+
// ch_aln = asvs
23+
// .map{
24+
// [id: params.aligner ], it ->
25+
// [ meta, fastafile ]
26+
// }
27+
// if (params.aligner == "decipher") {
28+
DECIPHER(
29+
asvs
30+
)
31+
ch_alignment = DECIPHER.out.alignment
32+
// } else if (params.aligner == "mafft") {
33+
// MAFFT_ALIGN (
34+
// ch_aln ,
35+
// [ [:], [] ],
36+
// [ [:], [] ],
37+
// [ [:], [] ],
38+
// [ [:], [] ],
39+
// [ [:], [] ],
40+
// true
41+
// )
42+
// ch_alignment = MAFFT_ALIGN.out.fas // the MAFFT module calls its output fas instead of alignment
43+
// ch_versions = ch_versions.mix(MAFFT_ALIGN.out.versions.first())
44+
// } else if (params.aligner == "muscle") {
45+
// MUSCLE5_ALIGN (
46+
// ch_aln ,
47+
// true
48+
// )
49+
// ch_alignment = MUSCLE5_ALIGN.out.alignment.first() // the MAFFT module calls its output fas instead of alignment
50+
// ch_versions = ch_versions.mix(MUSCLE5_ALIGN.out.versions.first())
51+
// }
2252
if (!params.skip_tree) {
2353
if (params.phylo_tool == 'phangorn') {
2454
PHANGORN(

0 commit comments

Comments
 (0)