[Mattice-commits] r212 - in pkg: inst/doc man misc
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Fri Aug 28 03:22:09 CEST 2009
Author: andrew_hipp
Date: 2009-08-28 03:22:08 +0200 (Fri, 28 Aug 2009)
New Revision: 212
Modified:
pkg/inst/doc/maticce.Rnw
pkg/man/multiModel.Rd
pkg/misc/applicationsNote_bioinformatics-formatted-working.doc
Log:
edits to vignette, multiModel.Rd, and applicationsNote_bioinformatics-formatted-working.doc
Modified: pkg/inst/doc/maticce.Rnw
===================================================================
--- pkg/inst/doc/maticce.Rnw 2009-08-27 20:02:13 UTC (rev 211)
+++ pkg/inst/doc/maticce.Rnw 2009-08-28 01:22:08 UTC (rev 212)
@@ -42,8 +42,10 @@
library(maticce) # load maticce and required packages
data(carex) # load dataset
attach(carex) # attach dataset to search path
-ovales.tree <- ape2ouch(ovales.tree) # convert the Bayes consensus to an ouchtree object
-trees <- lapply(ovales.bayesTrees[1:10], ape2ouch) # convert the first 10 trees visited in the MCMC analysis to ouchtree objects
+# convert the Bayes consensus to an ouchtree object...
+ovales.tree <- ape2ouch(ovales.tree)
+# ... then convert the first 10 trees visited in the MCMC analysis to ouchtree objects
+trees <- lapply(ovales.bayesTrees[1:10], ape2ouch)
@
Note that although the sample trees provided (\code{carex[['ovales.tree']]} and \code{carex[['ovales.bayesTrees']]}) are ultrametric, ultrametricity is not strictly required for most analyses in \pkg{maticce}. The simulations implemented in \code{ouSim} do, however, assume ultrametricity. Trees in the \code{carex} dataset comprise a partial phylogeny of sedges; for information about the tree, you can use \code{help(carex)} or \code{?carex} to call the help file for the dataset, which includes the reference. The data associated with this tree (\code{carex[['ovales.data']]}) are log-transformed mean chromosome data. Because the model underlying \pkg{maticce} is a generalized least squares regression model, standard assumptions about data normality apply and should be considered at the outset of any analysis.
@@ -62,15 +64,17 @@
\begin{verbatim}
> nodes <- list(8) # assuming you want 8 nodes
- > for(i in 1:length(nodes)) nodes[[i]] <- select.list(otree at nodelabels, multiple = T)
+ > for(i in 1:length(nodes))
+ > nodes[[i]] <- select.list(ovales.tree at nodelabels, multiple = T)
\end{verbatim}
Alternatively, if you want to designate the node more quickly by just selecting the most recent common ancestor of a set of taxa:
\begin{verbatim}
> for(i in 1:length(nodes)) {
- > ancestor <- mrcaOUCH(select.list(otree at nodelabels, multiple = T), otree)
- > nodes[[i]] <- nodeDescendents(otree, ancestor)
+ > ancestor <-
+ > mrcaOUCH(select.list(ovales.tree at nodelabels, multiple = T), ovales.tree)
+ > nodes[[i]] <- nodeDescendents(ovales.tree, ancestor)
> }
\end{verbatim}
@@ -122,7 +126,8 @@
ha.4.4 <- runBatchHansen(ovales.tree, ovales.data,
ovales.nodes[1:4], maxNodes = 4, brown = T)
print(summary(ha.4.4))
-# Then, assess the effects of phylogenetic uncertainty by analyzing over a set of trees
+# Then, assess the effects of phylogenetic uncertainty by
+# analyzing over a set of trees
ha.4.2.multi <- runBatchHansen(trees, ovales.data,
ovales.nodes[1:4], maxNodes = 2, brown = T)
print(summary(ha.4.2.multi))
@@ -168,6 +173,6 @@
}
@
-The benefit of doing the global test first using \code{runBatchHansen} and related functions is that you first test, globally, whether the node you are looking at shows significantly stronger support for a transition in character state than any other selected node on the tree. Then, you can investigate alternative models using the \code{multiModel} function.
+In this figure, the yellow portion of each pie-chart is the BIC weight for the OU model with no transition in stationary distribution. This no-change model receives > 5 percent support only at nodes 5, 6, and 8. The benefit of doing the global test first using \code{runBatchHansen} and related functions is that you first test, globally, whether the node you are looking at shows significantly stronger support for a transition in character state than any other selected node on the tree. Then, you can investigate alternative models using the \code{multiModel} function.
\end{document}
Modified: pkg/man/multiModel.Rd
===================================================================
--- pkg/man/multiModel.Rd 2009-08-27 20:02:13 UTC (rev 211)
+++ pkg/man/multiModel.Rd 2009-08-28 01:22:08 UTC (rev 212)
@@ -27,7 +27,7 @@
\value{
A list with two items:
\item{IC}{A matrix of information criterion statistics, generated by \code{informationCriterion}}
- \item{modelMatrix}{A matrix of model parameters for each of the whole tree, partial tree, and summed-partial-tree models}
+ \item{modelMatrix}{A matrix of model parameters for the whole-tree models, the partial-trees models, and summed-partial-trees models}
}
\references{
Hipp, A.L. (2007)
Modified: pkg/misc/applicationsNote_bioinformatics-formatted-working.doc
===================================================================
(Binary files differ)
More information about the Mattice-commits
mailing list