LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

mashtree

rapidly creates distance trees from genome sequences using MinHash sketching

TLDR

Fastest method to create a tree from fastq and/or fasta files using multiple threads
$ mashtree --numcpus [12] [*.fastq.gz] [*.fasta] > [mashtree.dnd]
copy
Most accurate method to create a tree with mindepth 0
$ mashtree --mindepth 0 --numcpus [12] [*.fastq.gz] [*.fasta] > [mashtree.dnd]
copy
Most accurate method with confidence values (bootstrap)
$ mashtree_bootstrap.pl --reps [100] --numcpus [12] [*.fastq.gz] -- --min-depth 0 > [mashtree.bootstrap.dnd]
copy

SYNOPSIS

mashtree [options] genomefiles_...

DESCRIPTION

mashtree rapidly creates distance trees from genome sequences using MinHash sketching. It computes pairwise distances between genomes based on k-mer similarity and constructs a neighbor-joining tree.The tool accepts FASTA, FASTQ, and compressed versions (.gz) of both formats. It uses the Mash algorithm internally for efficient sketch-based distance calculation, making it suitable for thousands of genomes.Output is in Newick format (.dnd), compatible with tree visualization tools. Note that mashtree creates distance trees, not phylogenetic trees—it shows similarity relationships, not evolutionary history.

PARAMETERS

--numcpus _n_

Number of CPU threads to use for parallel processing
--mindepth _n_
Minimum depth for k-mer counting (0 for most accuracy)
--genomesize _size_
Estimated genome size for sketch calculations
--truncLength _n_
Truncate sequence names at this length
--outtree _file_
Output file for the tree (default: stdout)

CAVEATS

Not suitable for formal phylogenetic analysis; use proper phylogenetic methods for evolutionary studies. Accuracy depends on genome completeness and quality. Very divergent sequences may produce unreliable trees. Memory usage scales with the number of genomes being compared.

HISTORY

Mashtree was developed by Lee Katz at the CDC (Centers for Disease Control and Prevention) for rapid outbreak analysis and genome clustering in public health microbiology.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid