Background: In Bayesian phylogenetic inference we are interested in distributions over a space of trees. The number of trees in a tree space is an important characteristic of the space and is useful for specifying prior distributions. When all samples come from the same time point and no prior information available on divergence times, the tree counting problem is easy. However, when fossil evidence is used in the inference to constrain the tree or data are sampled serially, new tree spaces arise and counting the number of trees is more difficult. Results: We describe an algorithm that is polynomial in the number of sampled individuals for counting of resolutions of a constraint tree assuming that the number of constraints is fixed. We generalise this algorithm to counting resolutions of a fully ranked constraint tree. We describe a quadratic algorithm for counting the number of possible fully ranked trees on n sampled individuals. We introduce a new type of tree, called a fully ranked tree with sampled ancestors, and describe a cubic time algorithm for counting the number of such trees on n sampled individuals. Conclusions: These algorithms should be employed for Bayesian Markov chain Monte Carlo inference when fossil data are included or data are serially sampled.
[1]
T. Stadler.
Sampling-through-time in birth-death trees.
,
2010,
Journal of theoretical biology.
[2]
A. D. Gordon.
A Review of Hierarchical Classification
,
1987
.
[3]
A. Rodrigo,et al.
Measurably evolving populations
,
2003
.
[4]
Fionn Murtagh,et al.
Counting dendrograms: A survey
,
1984,
Discret. Appl. Math..
[5]
K. Crandall.
The evolution of HIV
,
1999
.
[6]
R. Griffiths,et al.
Counting genealogical trees
,
1987,
Journal of mathematical biology.
[7]
Ziheng Yang,et al.
Bayesian estimation of species divergence times under a molecular clock using multiple fossil calibrations with soft bounds.
,
2006,
Molecular biology and evolution.
[8]
B. Rannala,et al.
Bayesian phylogenetic inference using DNA sequences: a Markov Chain Monte Carlo Method.
,
1997,
Molecular biology and evolution.
[9]
Joseph Felsenstein,et al.
The number of evolutionary trees
,
1978
.
[10]
Beda Joos,et al.
Estimating the basic reproductive number from viral sequence data.
,
2012,
Molecular biology and evolution.
[11]
Alexei J. Drummond,et al.
Calibrated Tree Priors for Relaxed Phylogenetics and Divergence Time Estimation
,
2011,
Systematic biology.