Description Usage Arguments Details Value Author(s) References See Also Examples
Uses gene count data to estimates rates of gene duplication and gene loss along a phylogeny with zero, one or more whole genome duplication (WGD) or triplication (WGT) events. Also estimates the gene retention rate after each WGD/WGT event.
1 2 3 4 5 6 |
tr |
a species tree in SIMMAP format (see Details). |
geneCountData |
data frame with one column for each species and one row for each family, containing the number of gene copies in each species for each gene family. The column names must match the species names in the tree. |
mMax |
maximum number of surviving lineages at the root, at which the likelihood will be computed. |
geomMean |
the mean of the prior geometric distribution for the number of genes at the root. |
dirac |
value for the number of genes at the root, when this is assumed to have a fixed value (according to a dirac prior distribution). |
useRootStateMLE |
if |
conditioning |
type of conditioning for the likelihood calculation. The default is to calculate conditional probabilities on observing families with at least 1 gene copy (see Details). |
equalBDrates |
if |
fixedRetentionRates |
if |
startingBDrates |
Vector of size 2, for the starting values of
the duplication and loss rates. When |
startingQ |
Vector of starting values for the retention rates at the WGD and WGT events. |
The tree needs to be in simmap format (version 1.1). This format is similar to the newick parenthetical format, except that branch lengths are given inside brackets where states are indicated at specific times along each branch. Along a given branch, the token "0,18" indicates state 0 for a duration of 18 time units. Tokens are separated with ":". State 0 is used to indicate branch segments where only the birth/death process applies for gene duplications and losses. Labels "wgd" or "WGT" are used for branch segments at WGD events, and "wgt" or "WGT" for segments at WGT events. Such segments need to have a length of 0.
For WGT events, the 2 extra copies are assumed to be retained independently. With retention rate q, the probability to retain all 3 gene copies is then q^2, the probability to retain 2 gene copies is 2*q*(1-q), and the probability to retain the original gene only is (1-q)^2.
Four types of conditional likelihoods are implemented. The option
conditioning
should match the data filtering process: use
conditioning="oneOrMore"
if all families with one or more gene
copies are included in the data, use "twoOrMore"
to condition on
families having two of more genes, "oneInBothClades"
if the data
set was filtered to include only families with at least one gene copy in
each of the two main clades stemming from the root. Unconditional
likelihoods are used with conditioning="none"
.
The geomMean
, dirac
and useRootStateMLE
options are incompatible.
By default, mMax
is set to the maximum family size for an exact
likelihood calculation. For data sets with one or more very large
families, this can cause mMax
to be very large and calculation to
be very slow. In such cases, the user can set mMax
to a lower
value to speed up calculations, at the cost of an approximation to the
likelihood of families with a larger family size.
birthrate |
birth or duplication rate |
deathrate |
death or loss rate |
loglikelihood |
log of the likelihood |
WGDtable |
a WGD table with 5 columns: node before WGD/WGT, event type, and probabilities that 1, 2 or 3 gene copies are retained. The number of rows is the number of WGD/WGT events. |
phyloMat |
data frame with 5 columns to describe the phylogeny: parent (ancestor node), child (descendant node), time (branch length), species names and edge type (e.g. BD or WGD). The number of rows is the number of nodes in the tree. |
call |
initial call to the function |
convergence |
optimization convergence flag from the |
mMax |
mMax value used for the likelihood calculations |
Tram Ta, Charles-Elie Rabier
Bailey, N. (1964) The Elements of Stochastic Processes. New York: John Wiley \& Sons
Bollback J. P. (2006) SIMMAP: Stochastic character mapping of discrete traits on phylogenies. Bioinformatics. 7:88
De Bie, T. and Cristianini, N. and Demuth, J.P. and Hahn, M.W. (2006) CAFE: a computational tool for the study of gene family evolution. Bioinformatics. 22:1269–1271
Hahn, M.W. and De Bie, T. and Stajich, J.E. and Nguyen, C. and Cristianini, N. (2005) Estimating the tempo and mode of gene family evolution from comparative genomic data. Genome Res.. 15:1153–1160
Crawford, F., Suchard, M. (2012) Transition probabilities for general birth-death processes with applications in ecology, genetics, and evolution. J Math Biol. 65:553-580
Rabier, C., Ta, T. and Ané, C. (2013) Detecting and Locating Whole Genome Duplications on a phylogeny: a probabilistic approach. Molecular Biology and Evolution. 31(3):750-762.
sampleData1, sampleData2
for more examples.
1 2 3 4 5 6 7 8 9 10 | tre.string = "(D:{0,18.03},(C:{0,12.06},(B:{0,7.06},
A:{0,7.06}):{0,2.49:wgd,0:0,2.50}):{0, 5.97});"
# tree with a single hypothesized WGD event, along the
# internal edge leading to the MRCA of species A and B
tre.phylo4d = read.simmap(text=tre.string)
tre.phylo = as(tre.phylo4d, "phylo")
## Not run: plot(collapse.singles(tre.phylo))
dat = data.frame(A=c(2,2,3,1), B=c(3,0,2,1), C=c(1,0,2,2), D=c(2,1,1,1))
MLEGeneCount(tre.phylo4d, dat, geomMean=1.5,
conditioning="oneOrMore", fixedRetentionRates=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.