Helps run a mashtree analysis to make rapid trees for genomes. Please see github.com/lskatz/Mashtree for more information.
This document covers the Mashtree library, but the highlight the mashtree package is the executable `mashtree`. See github.com/lskatz/Mashtree for more information.
Fast method:
mashtree --numcpus 12 *.fastq.gz [*.fasta] > mashtree.dnd
More accurate method:
mashtree --mindepth 0 --numcpus 12 *.fastq.gz [*.fasta] > mashtree.dnd
Bootstrapping and jackknifing
mashtree_bootstrap.pl --reps 100 --numcpus 12 *.fastq.gz -- --min-depth 0 > mashtree.jackknife.dnd mashtree_jackknife.pl --reps 100 --numcpus 12 *.fastq.gz -- --min-depth 0 > mashtree.jackknife.dnd
Used to mark whether a file is being read, so that Mashtree limits disk I/O
Remakes how `die` works, so that it references the caller
Prints a message to STDERR with the thread number and the program name, with a trailing newline.
Opens a fastq file in a thread-safe way.
Removes fastq extension, removes directory name,
1. Read the mash distances 2. Create a phylip file
Arguments: hash of distances, output directory, settings hash
Sorts names.
Arguments:
1. $name - array of names 2. $settings - options * $$settings{'sort-order'} is either "abc", "random", "input-order"
Create tree file with Quicktree but bioperl as a backup.
Lee's implementation of a tree distance. The objective is to return zero if two trees are the same.
Find the distance between two mash sketch files Alternatively: two hash lists.
Return an array of hashes, the kmer length, and the genome estimated length
Compare unequal sized hashes. Treat the first set of hashes as the reference (denominator) set.
Return the number of kmers in common and the number compared total. inspiration from https://github.com/onecodex/finch-rs/blob/master/src/distance.rs#L34
Title : transfer_bootstrap_expectation Usage : my $tree_with_bs = transfer_bootstrap_expectation(\@bs_trees,$guide_tree); Function: Calculates the Transfer Bootstrap Expectation (TBE) for internal nodes based on the methods outlined in Lemoine et al, Nature, 2018. Currently experimental. Returns : L<Bio::Tree::TreeI> Args : Arrayref of L<Bio::Tree::TreeI>s Guide tree, L<Bio::Tree::TreeI>s
To install Mashtree, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mashtree
CPAN shell
perl -MCPAN -e shell install Mashtree
For more information on module installation, please visit the detailed CPAN module installation guide.