TreeTime: time-tree and ancestral sequence inference

https://travis-ci.org/neherlab/treetime.svg?branch=master https://anaconda.org/bioconda/treetime/badges/installer/conda.svg

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 optimizes branch lengths of the tree given the sequence data and date constraints, and then optimizes coalescent tree priors, relaxed clock parameters, or resolves polytomies. This cycle is repeated a few times. 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 code is hosted on github.com/neherlab/treetime.

https://raw.githubusercontent.com/neherlab/treetime_examples/master/figures/tree_and_clock.png

Features

  • ancestral sequence reconstruction (marginal and joint maximum likelihood)
  • molecular clock tree inference (marginal and joint maximum likelihood)
  • inference of GTR models
  • rerooting to maximize temporal signal and optimize the root-to-tip distance vs time relationship
  • simple phylodynamic analysis such as coalescent model fits

Developer info

Indices and tables