]> git.donarmstrong.com Git - ape.git/blob - man/fastme.Rd
cd7af9e6cb72dd5c5a3e3a04fea68ec16f15590c
[ape.git] / man / fastme.Rd
1 \name{FastME}
2 \alias{FastME}
3 \alias{fastme}
4 \alias{fastme.bal}
5 \alias{fastme.ols}
6 \title{
7   Tree Estimation Based on the Minimum Evolution Algorithm
8 }
9 \description{
10   The two FastME functions (balanced and OLS) perform the
11   Minimum Evolution algorithm of Desper and Gascuel (2002).
12 }
13 \usage{
14   fastme.bal(X, nni = TRUE, spr = TRUE, tbr = TRUE)
15   fastme.ols(X, nni = TRUE)
16 }
17 \arguments{
18   \item{X}{a distance matrix; may be an object of class \code{"dist"}.}
19   \item{nni}{a boolean value; TRUE to do NNIs (default).}
20   \item{spr}{ditto for SPRs.}
21   \item{tbr}{ditto for TBRs.}
22 }
23 \value{
24   an object of class \code{"phylo"}.
25 }
26 \references{
27   Desper, R. and Gascuel, O. (2002) Fast and accurate phylogeny
28   reconstruction algorithms based on the minimum-evolution principle.
29   \emph{Journal of Computational Biology}, \bold{9(5)}, 687--705.
30 }
31 \author{
32   original C code by Richard Desper; adapted and ported to R
33   by Vincent Lefort \email{vincent.lefort@lirmm.fr}
34 }
35 \seealso{
36   \code{\link{nj}}, \code{\link{bionj}},
37   \code{\link{write.tree}}, \code{\link{read.tree}},
38   \code{\link{dist.dna}}
39 }
40 \examples{
41 ### From Saitou and Nei (1987, Table 1):
42 x <- c(7, 8, 11, 13, 16, 13, 17, 5, 8, 10, 13,
43        10, 14, 5, 7, 10, 7, 11, 8, 11, 8, 12,
44        5, 6, 10, 9, 13, 8)
45 M <- matrix(0, 8, 8)
46 M[lower.tri(M)] <- x
47 M <- t(M)
48 M[lower.tri(M)] <- x
49 dimnames(M) <- list(1:8, 1:8)
50 tr <- fastme.bal(M)
51 plot(tr, "u")
52 ### a less theoretical example
53 data(woodmouse)
54 trw <- fastme.bal(dist.dna(woodmouse))
55 plot(trw)
56 }
57 \keyword{models}
58