Skip to main content

clonalframeml

Tags: recombination phylogeny masking clonalframe bacterial-evolution run-scope

Detect and mask recombination events in bacterial phylogenies.

This subworkflow uses ClonalFrameML to detect and mask recombination events in bacterial phylogenies. It first builds a quick phylogenetic tree using IQ-TREE, then identifies recombination regions and creates a recombination-masked alignment. Finally, it calculates SNP distances from the masked alignment using snp-dists.

Take

alignment: Channel<Record>
FieldDescription
metaGroovy Record containing sample information
alnCore-genome alignment in FASTA format

Emit

Published

The sample_outputs and run_outputs emissions are aggregates of output files that will be published in the entry workflow.

sample_outputs

No sample-scope outputs.

run_outputs

OutputDescription
masked_alnRecombination-masked alignment with detected recombination regions removed
emsimUncertainty estimation results
emFinal parameter estimates from the EM algorithm
statusPredicted recombination events (importations)
nwkInput tree with internal nodes labelled
fastaReconstructed ancestral sequences
pos_refPosition cross-reference table
alnInput multiple sequence alignment (passed through from IQ-TREE)
nwkQuick-start maximum-likelihood phylogenetic tree from IQ-TREE
tsvPairwise SNP distances from masked alignment in TSV format

Downstream Inputs

The following emissions are meant to be used as inputs to downstream subworkflows.

alignment

OutputDescription
alnRecombination-masked alignment for downstream phylogenetic analysis

Subworkflow Composition

This subworkflow calls the following subworkflows:

  • iqtree - Construct maximum likelihood phylogenetic trees from alignments.
  • snpdists - Calculate pairwise SNP distances from sequence alignments.

Module Composition

This subworkflow calls the following modules:

  • clonalframeml - Inference of recombination in bacterial genomes.

Used By

This subworkflow is used by the following workflows:

  • pangenome - Pangenome analysis with optional core-genome phylogeny.

Citations

If you use this in your analysis, please cite the following.

Source

View source on GitHub