Skip to main content

mashtree

Tags: phylogeny tree mash minhash alignment-free distance clustering neighbor-joining run-scope

Rapid alignment-free phylogenomic tree construction.

Uses Mashtree to create a phylogenetic tree from genome sequences (FASTA, FASTQ, or GenBank) using MinHash distances. It computes pairwise distances between all inputs and uses the Neighbor-Joining algorithm to cluster genomes, effectively creating a "distance-based" tree without full alignment.

Inputs

record (
meta: Record,
fna: Set<Path>
)
FieldTypeDescription
metaRecordGroovy Record containing sample information
fnaSet<Path>Assembled contigs in FASTA format

Outputs

record (
meta: Record,
nwk: Path,
tsv: Path,
sketches: Set<Path?>,
results: Set<Path>,
logs: Set<Path?>,
nf_logs: Set<Path>,
versions: Set<Path>
)
FieldTypeDescription
metaRecordSample information record
nwkPathThe final phylogenetic tree in Newick format (*.dnd)
tsvPathThe pairwise distance matrix used to build the tree (*.tsv)
sketchesSet<Path?>Directory containing the individual Mash sketches
resultsSet<Path>All output files to be published
logsSet<Path?>Optional program specific log files
nf_logsSet<Path>Nextflow-specific log files (e.g. .command.{begin
versionsSet<Path>A YAML formatted file with program versions

Parameters

Mashtree Parameters

ParameterTypeDefaultDescription
--mashtree_sortorderstringABCFor neighbor-joining, the sort order can make a difference. (choices: ABC, random, input-order)
--mashtree_genomesizeinteger5000000Genome size of the input samples
--mashtree_mindepthinteger5If mindepth is zero, then it will be chosen in a smart but slower method, to discard lower-abundance kmers.
--mashtree_kmerlengthinteger21Hashes will be based on strings of this many nucleotides

Used By

Subworkflows

  • mashtree - Create phylogenetic trees using Mash distances.

Workflows

  • mashtree - Rapid phylogenetic tree construction using Mash distances.

Citations

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

Source

View source on GitHub

Version

MASHTREE:
- mashtree: 1.4.6