Skip to content

Commit e9c7bdd

Browse files
committed
refactor: Add rspr and evolccm to annotation entry (#183)
Signed-off-by: jvfe <[email protected]>
1 parent 961738a commit e9c7bdd

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

workflows/arete.nf

+28
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,34 @@ workflow ANNOTATION {
470470
if (!params.skip_phylo) {
471471
PHYLOGENOMICS(gffs, use_full_alignment, use_fasttree)
472472
ch_software_versions = ch_software_versions.mix(PHYLOGENOMICS.out.phylo_software)
473+
474+
if (params.run_evolccm) {
475+
EVOLCCM (
476+
PHYLOGENOMICS.out.core_tree,
477+
ANNOTATE_ASSEMBLIES.out.feature_profile
478+
)
479+
}
480+
481+
if (params.run_rspr) {
482+
PHYLOGENOMICS.out.gene_trees
483+
.flatten()
484+
.map{it -> it.toString() }
485+
.collectFile(newLine: true) { item ->
486+
["${item}.txt",
487+
"sample,path\n" + item + ',' + item ]
488+
}
489+
.set { individual_sheets }
490+
491+
individual_sheets
492+
.collectFile(name: 'gene_tree_paths.txt', skip:1 , keepHeader: true)
493+
.set{ gene_tree_sheet }
494+
495+
RSPR (
496+
PHYLOGENOMICS.out.core_tree,
497+
gene_tree_sheet,
498+
ANNOTATE_ASSEMBLIES.out.annotation
499+
)
500+
}
473501
}
474502

475503
////////////////////////// GENE ORDER /////////////////////////////////////

0 commit comments

Comments
 (0)