Scroll to navigation

TREETIME(1) User Commands TREETIME(1)

NAME

treetime - Maximum Likelihood Phylodynamics

SYNOPSIS

treetime <positional> [optional]

DESCRIPTION

TreeTime provides routines for ancestral sequence reconstruction and inference of molecular-clock phylogenies, i.e., a tree where all branches are scaled such that the positions of terminal nodes correspond to their sampling times and internal nodes are placed at the most likely time of divergence.

To optimize the likelihood of time-scaled phylogenies, TreeTime uses an iterative approach that first infers ancestral sequences given the branch length of the tree, then optimizes the positions of unconstrained nodes on the time axis, and then repeats this cycle. The only topology optimization are (optional) resolution of polytomies in a way that is most (approximately) consistent with the sampling time constraints on the tree. The package is designed to be used as a stand-alone tool on the command-line or as a library used in larger phylogenetic analysis work-flows.

OPTIONS

positional arguments

infer ancestral sequences maximizing the joint or marginal likelihood.
analyze patterns of recurrent mutations aka homoplasies.
estimate molecular clock parameters and reroot the tree.
map discrete character such as host or country to the tree.

optional arguments

show this help message and exit
Name of file containing the tree in newick, nexus, or phylip format. If none is provided, treetime will attempt to build a tree from the alignment using fasttree, iqtree, or raxml (assuming they are installed)
length of the sequence, used to calculate expected variation in branch length. Not required if alignment is provided.
alignment file (fasta)
only for vcf input: fasta file of the sequence the VCF was mapped to.
csv file with dates for nodes with 'node_name, date' where date is float (as in 2012.15)
ignore tips that don't follow a loose clock, 'clockfilter=number of interquartile ranges from regression'
reroot the tree. Valid choices are 'ML', 'ML-rough', 'least-squares', 'min_dev', 'midpoint' or a node name to be used as outgroup. Use --keep-root to keep the current root.
don't reroot the tree. Otherwise, reroot to minimize the the residual of the regression of root-to-tip distance and sampling time
GTR model to use. '--gtr infer' will infer a model from the data. Alternatively, specify the model type. If the specified model requires additional options, use '--gtr-params' to specify those.
GTR parameters for the model specified by the --gtr argument. The parameters should be feed as 'key=value' list of parameters. Example: '--gtr K80 --gtr-params kappa=0.2 pis=0.25,0.25,0.25,0.25'. See the exact definitions of the parameters in the GTR creation methods in treetime/nuc_models.py or treetime/aa_models.py
if specified, the rate of the molecular clock won't be optimized.
If set to 'input', the provided branch length will be used without modification. Note that branch lengths optimized by treetime are only accurate at short evolutionary distances.
estimate confidence intervals of divergence times.
Don't resolve polytomies using temporal information.
use an autocorrelated molecular clock. Prior strength and coupling of parent and offspring rates can be specified e.g. as --relax 1.0 0.5
maximal number of iterations the inference cycle is run. Note that for polytomy resolution and coalescence models max_iter should be at least 2
coalescent time scale -- sensible values are on the order of the average hamming distance of contemporaneous sequences. In addition, 'opt' 'skyline' are valid options and estimate a constant coalescent rate or a piecewise linear coalescent rate history
filename to save the plot to. Suffix will determine format (choices pdf, png, svg, default=pdf)
filename to save the plot to. Suffix will determine format (choices pdf, png, svg, default=pdf)
do not fill terminal gaps
zero based mutation indexing
include transitions involving ambiguous states
verbosity of output 0-6
directory to write the output to

SEE ALSO

https://github.com/neherlab/treetime

EXAMPLES

https://github.com/neherlab/treetime_examples

AUTHOR

This manpage was written by Andreas Tille for the Debian distribution and can be used for any other usage of the program.

September 2018 treetime 0.5.0