o as.hclust.phylo() failed with trees with node labels (thanks to
Jinlong Zhang for pointing this bug out).
+ o read.dna(, "fasta") failed if sequences were not all of the same
+ length.
+
+
+OTHER CHANGES
+
+ o In drop.fossil() the default tol = 0 has been raised to 1e-8.
+
CHANGES IN APE VERSION 2.6-2
Package: ape
Version: 2.6-3
-Date: 2010-12-24
+Date: 2011-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, Christoph Heibl, Daniel Lawson, Vincent Lefort, Pierre Legendre, Jim Lemon, Yvonnick Noel, Johan Nylander, Rainer Opgen-Rhein, Klaus Schliep, Korbinian Strimmer, Damien de Vienne
Maintainer: Emmanuel Paradis <Emmanuel.Paradis@ird.fr>
.makePhylo(edge[1:j, ], edge.length[1:j], i)
}
-drop.fossil <- function(phy, tol = 0)
+drop.fossil <- function(phy, tol = 1e-8)
{
n <- Ntip(phy)
x <- dist.nodes(phy)[n + 1, ][1:n]
-## read.dna.R (2010-05-17)
+## read.dna.R (2011-02-01)
## Read DNA Sequences in a File
-## Copyright 2003-2010 Emmanuel Paradis
+## Copyright 2003-2011 Emmanuel Paradis
## This file is part of the R-package `ape'.
## See the file ../COPYING for licensing issues.
obj <- lapply(obj, tolower)
LENGTHS <- unique(unlist(lapply(obj, length)))
allSameLength <- length(LENGTHS) == 1
- if (is.logical(as.matrix) && as.matrix && !allSameLength)
- stop("sequences in FASTA file not of the same length")
- if (is.null(as.matrix) && allSameLength)
- as.matrix <- TRUE
+ if (is.logical(as.matrix)) {
+ if (as.matrix && !allSameLength)
+ stop("sequences in FASTA file not of the same length")
+ } else {
+ as.matrix <- allSameLength
+ }
if (as.matrix) {
obj <- matrix(unlist(obj), ncol = LENGTHS, byrow = TRUE)
rownames(obj) <- seq.names
DEATH = NULL, eps = 1e-6)
rbdtree(birth, death, Tmax = 50, BIRTH = NULL,
DEATH = NULL, eps = 1e-6)
-drop.fossil(phy, tol = 0)
+drop.fossil(phy, tol = 1e-8)
}
\arguments{
\item{birth, death}{a numeric value or a (vectorized) function