## An Algorithm for Calculating the Probability of Classes of Data Patterns on a Genealogy

##### View/Open

##### Issue Date

2012-12-14##### Author

Koch, Jordan M.

Holder, Mark T.

##### Publisher

Public Library of Science

##### Type

Article

##### Article Version

Scholarly/refereed, publisher version

##### Metadata

Show full item record##### Abstract

Felsenstein’s pruning algorithm allows one to calculate the probability of any particular data pattern arising on a phylogeny given a model of character evolution. Here we present a similar dynamic programming algorithm. Our algorithm treats the tree and model as known. The algorithm makes it feasible to calculate the probability that a randomly selected character will be a member of a particular class of character patterns. Specifically, we are interested in binning patterns by the number of parsimony steps and the set of states observed at the tips of the tree. This algorithm was developed to expand the range of data set sizes that can be used with Waddell et al.’s marginal testing approach for assessing the adequacy of a model. The algorithms introduced can also be used in likelihood calculations which correct for ascertainment biases. For example, Lewis introduced an Mkv model which corrects for the lack of constant sites. The probability of a constant pattern arising can be calculated using the algorithm that we present, or by enumerating all possible constant patterns and calculating the probability of each one. Because the number of constant data patterns is small, both methods are efficient. However, elaborations of the Mkv model (such as those in Nylander et al) require calculating the probability of parsimony-uninformative patterns arising. For large trees and characters with many possible character states, the number of possible parismony-uninformative patterns is immense. In these cases, the algorithms introduced here will be more efficient. The algorithm has been implemented in open source software written in C++.

##### Collections

##### Citation

Koch JM, Holder MT. An Algorithm for Calculating the Probability of Classes of Data Patterns on a Genealogy. PLOS Currents Tree of Life. 2012 Dec 14. Edition 1. http://dx.doi.org/10.1371/4fd1286980c08.

Items in KU ScholarWorks are protected by copyright, with all rights reserved, unless otherwise indicated.

We want to hear from you! Please share your stories about how Open Access to this item benefits YOU.