Package: ape
Version: 2.1-1
-Date: 2008-01-14
+Date: 2008-02-01
Title: Analyses of Phylogenetics and Evolution
Author: Emmanuel Paradis, Ben Bolker, Julien Claude, Hoa Sien Cuong,
Richard Desper, Benoit Durand, Julien Dutheil, Olivier Gascuel,
-## DNA.R (2008-01-19)
+## DNA.R (2008-02-01)
## Manipulations and Comparisons of DNA Sequences
ans <- sum(dist.dna(x, "raw", pairwise.deletion = pairwise.deletion))/
(n*(n - 1)/2)
if (variance) {
- var <- (n + 1)*ans/(3*(n + 1)*s) + 2*(n^2 + n + 3)*ans/(9*n*(n - 1))
+ var <- (n + 1)*ans/(3*(n + 1)*dim(x)[2]) + 2*(n^2 + n + 3)*ans/(9*n*(n - 1))
ans <- c(ans, var)
}
ans
## unless there's only one tip specified of course
ROOT <- nb.tip + 1
if (length(outgroup) > 1) {
- msg <- "the specified outgroup is not monophyletic!"
+ msg <- "the specified outgroup is not monophyletic"
## If all tips in `tip' are not contiguous, then
## no need to go further:
if (!all(diff(outgroup) == 1)) stop(msg)
-## unique.multiPhylo.R (2007-11-16)
+## unique.multiPhylo.R (2008-02-06)
## Revomes Duplicate Trees from a List
-## Copyright 2007 Emmanuel Paradis
+## Copyright 2007-2008 Emmanuel Paradis
## This file is part of the R-package `ape'.
## See the file ../COPYING for licensing issues.
j <- j + 1
}
}
- structure(x[keep], class = "multiPhylo")
+ x[keep]
}
\code{cbind}, and \code{[}.
}
\references{
- Paradis ,E. (2007) A Bit-Level Coding Scheme for Nucleotides.
+ Paradis, E. (2007) A Bit-Level Coding Scheme for Nucleotides.
\url{http://pbil.univ-lyon1.fr/R/ape/misc/BitLevelCodingScheme_20April2007.pdf}
}
\author{Emmanuel Paradis \email{Emmanuel.Paradis@mpl.ird.fr}}
\alias{rotate}
\title{Swopping sister clades}
\description{
-For a given node, rotate exchanges the position of two clades descending from this node. It can handle dichotomies as well as polytomies. In the latter case, two clades from the polytomy are selected for swopping.}
+For a given node, rotate exchanges the position of two clades descending from this node. It can handle dichotomies as well as polytomies. In the latter case, two clades from the polytomy are selected for swapping.}
\usage{
rotate(phy, node, polytom = c(1, 2))
}
function, \code{read.tree}, \code{read.nexus}
}
\examples{
-TR <- replicate(50, rtree(4), simplify = FALSE)
-class(TR) <- "multiPhylo" # set the class!
+TR <- rmtree(50, 4)
length(unique(TR)) # not always 15...
howmanytrees(4)
}