]> git.donarmstrong.com Git - ape.git/blob - ChangeLog
new mixedFontLabel() + bug fix in rTraitCont.c
[ape.git] / ChangeLog
1                 CHANGES IN APE VERSION 2.5-3
2
3
4 NEW FEATURES
5
6     o The new function mixedFontLabel helps to make labels with bits of
7       text to be plotted in different fonts.
8
9     o There are now replacement operators for [, [[, and $ for the class
10       "multiPhylo" (i.e., TREES[11:20] <- rmtree(10, 100)). They check
11       that the tip labels are the same in all trees.
12
13     o Objects of class "multiPhylo" can be built with c(): there are
14       methods for the classes "phylo" and "multiPhylo".
15
16     o The internal functions .compressTipLabel and .uncompressTipLabel are
17       now documented.
18
19
20 BUG FIXES
21
22     o bind.tree(x, y, where, position = 0) did not work correctly if 'y'
23       was a single-edge tree and 'where' was a tip.
24
25     o rTraitCont() did not use the square-root of branch lengths when
26       simulating a Brownian motion model.
27
28
29
30                 CHANGES IN APE VERSION 2.5-2
31
32
33 NEW FEATURES
34
35     o There is now a print method for results from ace().
36
37     o There is a labels() method for objects of class "DNAbin".
38
39     o read.dna() has a new option 'as.matrix' to possibly force sequences
40       in a FASTA file to be stored in a matrix (see ?read.dna for details).
41
42
43 BUG FIXES
44
45     o as.phylo.hclust() used to multiply edge lengths by 2.
46
47     o A minor bug was fixed in rTraitDisc().
48
49     o ace() sometimes failed (parameter value was NaN and the optimisation
50       failed).
51
52
53 DEPRECATED & DEFUNCT
54
55     o evolve.phylo() and plot.ancestral() have been removed.
56
57     o chronogram(), ratogram(), and NPRS.criterion() have been removed.
58
59
60 OTHER CHANGES
61
62     o nj() has been improved and is now about 30% faster.
63
64     o The default option 'drop' of [.DNAbin has been changed to FALSE to
65       avoid dropping rownames when selecting a single sequence.
66
67     o print.DNAbin() has been changed to summary.DNAbin() which has been
68       removed.
69
70
71
72                 CHANGES IN APE VERSION 2.5-1
73
74
75 NEW FEATURES
76
77     o The new function stree generates trees with regular shapes.
78
79     o It is now possible to bind two trees with x + y (see ?bind.tree for
80       details).
81
82     o drop.tip(), extract.clade(), root(), and bind.tree() now have an
83       'interactive' option to make the operation on a plotted tree.
84
85     o cophyloplot() gains two new arguments 'lwd' and 'lty' for the
86       association links; they are recycled like 'col' (which wasn't before).
87
88
89 BUG FIXES
90
91     o rTraitDisc() did not use its 'freq' argument correctly (it was
92       multiplied with the rate matrix column-wise instead of row-wise).
93
94     o [node|tip|edge]labels(thermo = ) used to draw empty thermometers
95       with NA values. Nothing is drawn now like with 'text' or 'pch'.
96       The same bug occurred with the 'pie' option.
97
98     o A bug was fixed in compar.ou() and the help page was clarified.
99
100     o bind.tree() has been rewritten fixing several bugs and making it
101       more efficient.
102
103     o plot.phylo(type = "p") sometimes failed to colour correctly the
104       vertical lines representing the nodes.
105
106     o plot.phylo(direction = "l", x.lim = 30) failed to plot the branches
107       in the correct direction though the tip labels were displayed
108       correctly.
109
110
111 OTHER CHANGES
112
113     o The c, cbind, and rbind methods for "DNAbin" objetcs now check that
114       the sequences are correctly stored (in a list for c, in a matrix
115       for the two other functions).
116
117
118
119                 CHANGES IN APE VERSION 2.5
120
121
122 NEW FEATURES
123
124     o The new function parafit by Pierre Legendre tests for the
125       coevolution between hosts and parasites. It has a companion
126       function, pcoa, that does principal coordinate decomposition.
127       The latter has a biplot method.
128
129     o The new function lmorigin by Pierre Legendre performs multiple
130       regression through the origin with testing by permutation.
131
132     o The new functions rTraitCont and rTraitDisc simulate continuous and
133       discrete traits under a wide range of evolutionary models.
134
135     o The new function delta.plot does a delta plot following Holland et
136       al. (2002, Mol. Biol. Evol. 12:2051).
137
138     o The new function edges draws additional branches between any nodes
139       and/or tips on a plotted tree.
140
141     o The new function fancyarrows enhances arrows from graphics with
142       triangle and harpoon heads; it can be called from edges().
143
144     o add.scale.bar() has a new option 'ask' to draw interactively.
145
146     o The branch length score replaces the geodesic distance in dist.topo.
147
148     o Three new data sets are included: the gopher-lice data (gopher.D),
149       SO2 air pollution in 41 US cities (lmorigin.ex1, from Sokal &
150       Rohlf 1995), and some host-parasite specificity data
151       (lmorigin.ex2, from Legendre & Desdevises 2009).
152
153
154 BUG FIXES
155
156     o add.scale.bar() drew the bar outside the plotting region with the
157       default options with unrooted or radial trees.
158
159     o dist.topo() made R stuck when the trees had different sizes (thanks
160       to Otto Cordero for the fix).
161
162
163 OTHER CHANGES
164
165     o The geodesic distance has been replaced by the branch length score
166       in dist.topo().
167
168
169
170                 CHANGES IN APE VERSION 2.4-1
171
172
173 NEW FEATURES
174
175     o rtree() and rcoal() now accept a numeric vector for the 'br'
176       argument.
177
178     o vcv() is a new generic function with methods for the classes "phylo"
179       and "corPhyl" so that it is possible to calculate the var-cov matrix
180       for "transformation models". vcv.phylo() can still be used for trees
181       of class "phylo"; its argument 'cor' has been renamed 'corr'.
182
183
184 BUG FIXES
185
186     o bind.tree() failed when 'y' had no root edge.
187
188     o read.nexus() shuffled tip labels when the trees have no branch
189       lengths and there is a TRANSLATE block.
190
191     o read.nexus() does not try to translate node labels if there is a
192       translation table in the NEXUS file. See ?read.nexus for a
193       clarification on this behaviour.
194
195     o plot.multiPhylo() crashed R when plotting a list of trees with
196       compressed tip labels.
197
198     o write.nexus() did not translate the taxa names when asked for.
199
200     o plot.phylo(type = "fan") did not rotate the tip labels correctly
201       when the tree has branch lengths.
202
203     o ace(type = "continuous", method = "ML") now avoids sigma² being
204       negative (which resulted in an error).
205
206     o nj() crashed with NA/NaN in the distance matrix: an error in now
207       returned.
208
209
210
211                 CHANGES IN APE VERSION 2.4
212
213
214 NEW FEATURES
215
216     o base.freq() has a new option 'freq' to return the counts; the
217       default is still to return the proportions.
218
219
220 BUG FIXES
221
222     o seg.sites() did not handle ambiguous nucleotides correctly: they
223       are now ignored.
224
225     o plot(phy, root.edge = TRUE) failed if there was no $root.edge in
226       the tree: the argument is now ignored.
227
228     o add.scale.bar() failed when 'x' and 'y' were given (thanks to Janet
229       Young for the fix).
230
231
232 OTHER CHANGES
233
234     o Trying to plot a tree with a single tip now returns NULL with a
235       warning (it returned an error previously).
236
237     o The way lines representing nodes are coloured in phylograms has
238       been modified (as well as their widths and types) following some
239       users' request; this is only for dichotomous nodes.
240
241     o The argument 'adj' in [node][tip][edge]labels() now works when
242       using 'pie' or 'thermo'.
243
244     o A more informative message error is now returned by dist.dna() when
245       'model' is badly specified (partial matching of this argument is
246       done now).
247
248     o Deprecated functions are now listed in a help page: see
249       help("ape-defunct") with the quotes.
250
251
252 DEPRECATED & DEFUNCT
253
254     o The functions heterozygosity, nuc.div, theta.h, theta.k and
255       theta.s have been moved from ape to pegas.
256
257     o The functions mlphylo, DNAmodel and sh.test have been removed.
258
259
260
261                 CHANGES IN APE VERSION 2.3-3
262
263
264 BUG FIXES
265
266     o add.scale.bar() always drew a horizontal bar.
267
268     o zoom() shuffled tips with unrooted trees.
269
270     o write.nexus() failed to write correctly trees with a "TipLabel"
271       attribute.
272
273     o rcoal() failed to compute branch lengths with very large n.
274
275     o A small bug was fixed in compar.cheverud() (thanks to Michael
276       Phelan for the fix).
277
278     o seg.sites() failed when passing a vector.
279
280     o drop.tip() sometimes shuffled tip labels.
281
282     o root() shuffled node labels with 'resolve.root = TRUE'.
283
284
285
286                 CHANGES IN APE VERSION 2.3-2
287
288
289 BUG FIXES
290
291     o all.equal.phylo() did not compare unrooted trees correctly.
292
293     o dist.topo(... method = "PH85") did not treat unrooted trees
294       correctly (thanks to Tim Wallstrom for the fix).
295
296     o root() sometimes failed to test for the monophyly of the
297       outgroup correctly.
298
299     o extract.clade() sometimes included too many edges.
300
301     o vcv.phylo() did not work correctly when the tree is in
302       "pruningwise" order.
303
304     o nj() did not handle correctly distance matrices with many 0's.
305       The code has also been significantly improved: 7, 70, 160 times
306       faster with n = 100, 500, 1000, respectively.
307
308
309
310                 CHANGES IN APE VERSION 2.3-1
311
312
313 NEW FEATURES
314
315     o The new function is.monophyletic tests the monophyly of a group.
316
317     o There is now a c() method for lists of class "DNAbin".
318
319     o yule.cov() now fits the null model, and its help page has been
320       corrected with respect to this change.
321
322     o drop.tip() has a new option 'rooted' to force (or not) a tree
323       to be treated as (un)rooted.
324
325
326 BUG FIXES
327
328     o dist.gene() failed on most occasions with the default
329       pairwise.deletion = FALSE.
330
331     o read.tree() failed to read correctly the tree name(s).
332
333     o boot.phylo() now treats correctly data frames.
334
335     o del.gaps() did not copy the rownames of a matrix.
336
337     o A small bug was fixed in CDAM.global().
338
339     o ace() failed with large data sets. Thanks to Rich FitzJohn for
340       the fix. With other improvements, this function is now about 6
341       times faster.
342
343     o write.tree() failed with objects of class "multiPhylo".
344
345     o drop.tip(, subtree = TRUE) sometimes shuffled tip labels.
346
347
348 OTHER CHANGES
349
350     o [.multiPhylo and [.DNAbin now respect the original class.
351
352     o Instances of the form class(phy) == "phylo" have been replaced
353       by inherits(phy, "phylo").
354
355     o rcoal() is now faster.
356
357
358 DEPRECATED & DEFUNCT
359
360     o klastorin() has been removed.
361
362
363
364                 CHANGES IN APE VERSION 2.3
365
366
367 NEW FEATURES
368
369     o The new functions CADM.global and CADM.post, contributed by
370       Pierre Legendre, test the congruence among several distance
371       matrices.
372
373     o The new function yule.time fits a user-defined time-dependent
374       Yule model by maximum likelihood.
375
376     o The new function makeNodeLabel creates and/or modifies node
377       labels in a flexible way.
378
379     o read.tree() and write.tree() have been modified so that they can
380       handle individual tree names.
381
382     o plot.phylo() has a new argument 'edge.lty' that specifies the
383       types of lines used for the edges (plain, dotted, dashed, ...)
384
385     o phymltest() has been updated to work with PhyML 3.0.1.
386
387
388 BUG FIXES
389
390     o drop.tip() shuffled tip labels in some cases.
391
392     o drop.tip() did not handle node.label correctly.
393
394     o is.ultrametric() now checks the ordering of the edge matrix.
395
396     o ace() sometimes returned negative values of likelihoods of
397       ancestral states (thanks to Dan Rabosky for solving this long
398       lasting bug).
399
400
401 OTHER CHANGES
402
403     o The data set xenarthra has been removed.
404
405
406
407                 CHANGES IN APE VERSION 2.2-4
408
409 BUG FIXES
410
411     o The bug fix in read.nexus() in version 2.2-3 was wrong: this is
412       now fixed. (Thanks to Peter Wragg for the fix!)
413
414     o A warning message occurred for no reason with ace(method="GLS").
415
416
417 OTHER CHANGES
418
419     o There is now a general help page displayed with '?ape'.
420
421
422
423                 CHANGES IN APE VERSION 2.2-3
424
425
426 NEW FEATURES
427
428     o The new function extract.clade extracts a clade from a tree by
429       specifying a node number or label.
430
431     o fastme.bal() has two new options 'spr' and 'tbr' to perform tree
432       operations of the same names.
433
434     o dist.dna() can now return the number of site differences by
435       specifying model="N".
436
437
438 BUG FIXES
439
440     o chronopl() did not work with CV = TRUE.
441
442     o read.nexus() did not work correctly in some situations (trees on
443       multiple lines with different numbers of lines and/or with
444       comments inserted within the trees).
445
446     o ltt.plot(), ltt.lines(), and mltt.plot() did not count correctly
447       the number of lineages with non-binary trees.
448
449
450 OTHER CHANGES
451
452     o ape has now a namespace.
453
454     o drop.tip() has been improved: it should be much faster and work
455       better in some cases (e.g., see the example in ?zoom).
456
457
458
459                 CHANGES IN APE VERSION 2.2-2
460
461
462 NEW FEATURES
463
464     o dist.gene() has been substantially improved and gains an option
465       'pairwise.deletion'.
466
467     o cbind.DNAbin() has a new option 'fill.with.gaps' and is now
468       more flexible.
469
470
471 BUG FIXES
472
473     o prop.part() failed with a single tree with the default option
474      'check.labels = TRUE'.
475
476    o summary.DNAbin() failed to display correctly the summary of
477      sequence lengths with lists of sequences of 10,000 bases or more
478      (because summary.default uses 4 significant digits by default).
479
480    o read.nexus() failed to read a file with a single tree with line
481      breaks in the Newick string.
482
483    o del.gaps() returned a list of empty sequences when there were no
484      gaps.
485
486
487 OTHER CHANGES
488
489     o phymltest() has been updated for PhyML 3.0 and gains an option
490       'append', whereas the option 'path2exec' has been removed.
491
492     o rbind.DNAbin() and cbind.DNAbin() now accept a single matrix
493       which is returned unchanged (instead of an error).
494
495     o The data sets bird.orders and bird.families are now stored as
496       Newick strings; i.e., the command data(bird.orders) calls
497       read.tree().
498
499
500
501                 CHANGES IN APE VERSION 2.2-1
502
503
504 NEW FEATURES
505
506     o The new function makeLabel() helps to modify labels of trees,
507       lists of trees, or DNA sequences, with several utilities to
508       truncate and/or make them unique, substituting some
509       characters, and so on.
510
511     o The new function del.gaps() removes insertion gaps ("-") in a
512       set of DNA sequences.
513
514     o read.dna() can now read Clustal files (*.aln).
515
516
517 BUG FIXES
518
519     o root() failed with 'resolve.root = TRUE' when the root was
520       already the specified root.
521
522     o Several bugs were fixed in mlphylo().
523
524     o collapsed.singles() did not propagate the 'Nnode' and
525       'node.labels' elements (thanks to Elizabeth Purdom for the fix).
526
527     o read.nexus() failed to remove correctly the comments within
528       trees.
529
530     o read.nexus() failed to read a file with a single tree and no
531       translation of tip labels.
532
533     o read.nexus() failed to place correctly tip labels when reading
534       a single tree with no edge lengths.
535
536     o A bug was fixed in sh.test().
537
538
539 OTHER CHANGES
540
541     o unique.multiPhylo() is faster thanks to a suggestion by Vladimir
542       Minin.
543
544     o The option 'check.labels' of consensus() and prop.part() is now
545       TRUE by default.
546
547     o write.dna() now does not truncate names to 10 characters with
548       the Phylip formats.
549
550
551
552                 CHANGES IN APE VERSION 2.2
553
554
555 NEW FEATURES
556
557     o Four new functions have been written by Damien de Vienne for the
558       graphical exploration of large trees (cophyloplot, subtrees,
559       subtreeplot), and to return the graphical coordinates of tree
560       (without plotting).
561
562     o The new functions corPagel and corBlomberg implement the Pagel's
563       "lambda" and Blomberg et al.'s "ACDC" correlation structures.
564
565     o chronopl() has been improved and gains several options: see its
566       help page for details.
567
568     o boot.phylo() has now an option 'trees' to possibly return the
569       bootstraped trees (the default is FALSE).
570
571     o prop.part() has been improved and should now be faster in all
572       situations.
573
574
575 BUG FIXES
576
577     o read.dna() failed if "?" occurred in the first 10 sites of the
578       first sequence.
579
580     o The x/y aspect of the plot is now respected when plotting a
581       circular tree (type = "r" or "f").
582
583     o Drawing the tip labels sometimes failed when plotting circular
584       trees.
585
586     o zoom() failed when tip labels were used instead of their numbers
587       (thanks to Yan Wong for the fix).
588
589     o drop.tip() failed with some trees (fixed by Yan Wong).
590
591     o seg.sites() failed with a list.
592
593     o consensus() failed in some cases. The function has been improved
594       as well and is faster.
595
596
597
598                 CHANGES IN APE VERSION 2.1-3
599
600
601 BUG FIXES
602
603     o A bug in read.nexus() made the Windows R-GUI crash.
604
605     o An error was fixed in the computation of ancestral character
606       states by generalized least squares in ace().
607
608     o di2multi() did not modify node labels correctly.
609
610     o multi2di() failed if the tree had its attribute "order" set to
611       "cladewise".
612
613
614
615                 CHANGES IN APE VERSION 2.1-2
616
617
618 NEW FEATURES
619
620     o There three new methods for the "multiPhylo" class: str, $,
621       and [[.
622
623     o root() gains the options 'node' and 'resolve.root'
624       (FALSE by default) as well as its code being improved.
625
626     o mltt.plot() has now an option 'log' used in the same way
627       than in plot.default().
628
629
630 BUG FIXES
631
632     o mltt.plot() failed to display the legend with an unnamed
633       list of trees.
634
635     o nodelabels() with pies now correcly uses the argument
636       'cex' to draw symbols of different sizes (which has
637       worked already for thermometers).
638
639     o read.nexus() generally failed to read very big files.
640
641
642 OTHER CHANGES
643
644     o The argument 'family' of compar.gee() can now be a function
645       as well as a character string.
646
647     o read.tree() and read.nexus() now return an unnamed list if
648       'tree.names = NULL'.
649
650     o read.nexus() now returns a modified object of class "multiPhylo"
651       when there is a TRANSLATE block in the NEXUS file: the individual
652       trees have no 'tip.label' vector, but the list has a 'TipLabel'
653       attribute. The new methods '$' and '[[' set these elements
654       correctly when extracting trees.
655
656
657
658                 CHANGES IN APE VERSION 2.1-1
659
660
661 NEW FEATURES
662
663     o The new function rmtree generates lists of random trees.
664
665     o rcoal() now generates a genuine coalescent tree by default
666       (thanks to Vladimir Minin for the code).
667
668
669 BUG FIXES
670
671     o nuc.div() returned an incorrect value with the default
672       pairwise.deletion = FALSE.
673
674
675 OTHER CHANGES
676
677     o The internal codes of bionj(), fastme.bal(), and fastme.ols()
678       have been improved so that they are stabler and faster.
679
680     o R packages used by ape are now loaded silently; lattice and gee
681       are loaded only when needed.
682
683
684
685                 CHANGES IN APE VERSION 2.1
686
687
688 NEW FEATURES
689
690     o The new function identify.phylo identifies clades on a plotted
691       tree using the mouse.
692
693     o It is now possible to subset a list of trees (object of class
694       "multiPhylo") with "[" while keeping its class correct.
695
696     o The new function as.DNAbin.alignment converts DNA sequences
697       stored in the "alignment" format of the package seqinr into
698       an object of class "DNAbin".
699
700     o The new function weight.taxo2 helps to build similarity matrices
701       given two taxonomic levels (usually called by other functions).
702
703     o write.tree() can now take a list of trees (class "multiPhylo")
704       as its main argument.
705
706     o plot.correlogram() and plot.correlogramList() have been
707       improved, and gain several options (see the help page for
708       details). A legend is now plotted by default.
709
710
711 BUG FIXES
712
713     o dist.dna() returned some incorrect values with `model = "JC69"'
714       and `pairwise.deletion = TRUE'. This affected only the
715       distances involving sequences with missing values. (Thanks
716       to Bruno Toupance for digging this bug out.)
717
718     o write.tree() failed with some trees: this is fixed by removing
719       the `multi.line' option (trees are now always printed on a
720       single line).
721
722     o read.nexus() did not correctly detect trees with multiple root
723       edges (see OTHER CHANGES).
724
725
726 OTHER CHANGES
727
728     o The code of mlphylo() has been almost entirely rewritten, and
729       should be much stabler. The options have been also greatly
730       simplified (see ?mlphylo and ?DNAmodel for details).
731
732     o The internal function nTips has been renamed klastorin_nTips.
733
734     o The code of is.ultrametric() contained redundancies and has
735       been cleaned-up.
736
737     o The code of Moran.I() and of correlogram.formula() have been
738       improved.
739
740     o read.tree() and read.nexus() now return an error when trying to
741       read a tree with multiple root edges (see BUG FIXES). The
742       correction applied in previous version did not work in all
743       situations.
744
745     o The class c("multi.tree", "phylo") has been renamed
746       "multiPhylo".
747
748
749 DOCUMENTATION
750
751     o There is now a vignette in ape: see vignette("MoranI", "ape").
752
753
754 DEPRECATED & DEFUNCT
755
756     o as.matching() and as.phylo.matching() do not support branch
757       lengths.
758
759     o correlogram.phylo() and discrete.dist() have been removed.
760
761
762
763                 CHANGES IN APE VERSION 2.0-2
764
765
766 NEW FEATURES
767
768     o The new function matexpo computes the exponential of a square
769       matrix.
770
771     o The new function unique.multi.tree removes duplicate trees from
772       a list.
773
774     o yule() has a new option `use.root.edge = FALSE' that specifies
775       to ignore, by default, the root edge of the tree if it exists.
776
777
778 BUG FIXES
779
780     o which.edge() failed when the index of a single terminal edge was
781       looked for.
782
783     o In diversi.time(), the values returned for model C were
784       incorrect.
785
786     o A bug was fixed in yule() that affected the calculation of the
787       likelihood in the presence of ties in the branching times.
788
789     o There was a bug in the C function mat_expo4x4 affecting the
790       calculations of the transition probabilities for models HKY and
791       GTR in mlphylo().
792
793     o A small bug was fixed in as.matrix.DNAbin (thanks to James
794       Bullard).
795
796     o rtree() did not `shuffle' the tip labels by default, so only a
797       limited number of labelled topologies could be generated.
798
799
800
801                 CHANGES IN APE VERSION 2.0-1
802
803
804 NEW FEATURES
805
806     o The three new functions bionj, fastme.ols, and fastme.bal
807       perform phylogeny estimation by the BIONJ and fastME methods in
808       OLS and balanced versions. This is a port to R of previous
809       previous programs done by Vincent Lefort.
810
811     o The new function chronoMPL performs molecular dating with the
812       mean path lengths method of Britton et al. (2002, Mol. Phyl.
813       Evol. 24: 58).
814
815     o The new function rotate, contributed by Christoph Heibl, swaps
816       two clades connected to the same node. It works also with
817       multichotomous nodes.
818
819     o The new `method' as.matrix.DNAbin() may be used to convert
820       easily DNA sequences stored in a list into a matrix while
821       keeping the names and the class.
822
823
824 BUG FIXES
825
826     o chronopl() failed when some branch lengths were equal to zero:
827       an error message is now returned.
828
829     o di2multi() failed when there was a series of consecutive edges
830       to remove.
831
832
833
834                 CHANGES IN APE VERSION 1.10-2
835
836
837 NEW FEATURES
838
839     o plot.phylo() can now plot circular trees: the option is type =
840       "fan" or type = "f" (to avoid the ambiguity with type = "c").
841
842     o prop.part() has a new option `check.labels = FALSE' which allows
843       to considerably speed-up the calculations of bipartitions. As a
844       consequence, calculations of bootstrap values with boot.phylo()
845       should be much faster.
846
847
848 BUG FIXES
849
850     o read.GenBank() did not return correctly the list of species as
851       from ape 1.10: this is fixed in this version
852
853     o Applying as.phylo() on a tree of class "phylo" failed: the
854       object is now returned unchanged.
855
856
857
858                 CHANGES IN APE VERSION 1.10-1
859
860
861 NEW FEATURES
862
863     o The three new functions Ntip, Nnode, and Nedge return, for a
864       given tree, the number of tips, nodes, or edges, respectively.
865
866
867 BUG FIXES
868
869     o read.nexus() did not set correctly the class of the returned
870       object when reading multiple trees.
871
872     o mllt.plot() failed with objects of class c("multi.tree",
873       "phylo").
874
875     o unroot() did not work correctly in most cases.
876
877     o reorder.phylo() made R freeze in some occasions.
878
879     o Plotting a tree in pruningwise order failed.
880
881     o When plotting an unrooted tree, the tip labels where not all
882       correctly positioned if the option `cex' was used.
883
884
885
886                 CHANGES IN APE VERSION 1.10
887
888
889 NEW FEATURES
890
891     o Five new `method' functions have been introduced to manipulate
892       DNA sequences in binary format (see below).
893
894     o Three new functions have been introduced to convert between the
895       new binary and the character formats.
896
897     o The new function as.alignment converts DNA sequences stored as
898       single characters into the class "alignment" used by the package
899       seqinr.
900
901     o read.dna() and read.GenBank() have a new argument `as.character'
902       controlling whether the sequences are returned in binary format
903       or as character.
904
905
906 BUG FIXES
907
908     o root() failed when the tree had node labels: this is fixed.
909
910     o plot.phylo() did not correctly set the limits on the y-axis with
911       the default setting: this is fixed.
912
913     o dist.dna() returned a wrong result for the LogDet, paralinear,
914       and BH87 models with `pairwise.deletion = TRUE'.
915
916
917 OTHER CHANGES
918
919     o DNA sequences are now internally stored in a binary format. See
920       the document "A Bit-Level Coding Scheme for Nucleotides" for the
921       details. Most functions analyzing DNA functions have been
922       modified accordingly and are now much faster (dist.dna is now
923       ca. 60 times faster).
924
925
926
927                 CHANGES IN APE VERSION 1.9-4
928
929
930 BUG FIXES
931
932     o A bug was fixed in edgelabels().
933
934     o as.phylo.hclust() did not work correctly when the object of
935       class "hclust" has its labels set to NULL: the returned tree has
936       now its tip labels set to "1", "2", ...
937
938     o consensus could fail if some tip labels are a subset of others
939       (e.g., "a" and "a_1"): this is now fixed.
940
941     o mlphylo() failed in most cases if some branch lengths of the
942       initial tree were greater than one: an error message is now
943       issued.
944
945     o mlphylo() failed in most cases when estimating the proportion of
946       invariants: this is fixed.
947
948
949
950                 CHANGES IN APE VERSION 1.9-3
951
952
953 NEW FEATURES
954
955     o The new function edgelabels adds labels on the edge of the tree
956       in the same way than nodelabels or tiplabels.
957
958
959 BUG FIXES
960
961     o multi2di() did not handle correctly branch lengths with the
962       default option `random = TRUE': this is now fixed.
963
964     o A bug was fixed in nuc.div() when using pairwise deletions.
965
966     o A bug occurred in the analysis of bipartitions with large
967       numbers of large trees, with consequences on prop.part,
968       prop.clades, and boot.phylo.
969
970     o The calculation of the Billera-Holmes-Vogtmann distance in
971       dist.topo was wrong: this has been fixed.
972
973
974
975                 CHANGES IN APE VERSION 1.9-2
976
977
978 NEW FEATURES
979
980     o The new function ladderize reorganizes the internal structure of
981       a tree to plot them left- or right-ladderized.
982
983     o The new function dist.nodes computes the patristic distances
984       between all nodes, internal and terminal, of a tree. It replaces
985       the option `full = TRUE' of cophenetic.phylo (see below).
986
987
988 BUG FIXES
989
990     o A bug was fixed in old2new.phylo().
991
992     o Some bugs were fixed in chronopl().
993
994     o The edge colours were not correctly displayed by plot.phylo
995       (thank you to Li-San Wang for the fix).
996
997     o cophenetic.phylo() failed with multichotomous trees: this is
998       fixed.
999
1000
1001 OTHER CHANGES
1002
1003     o read.dna() now returns the sequences in a matrix if they are
1004       aligned (interleaved or sequential format). Sequences in FASTA
1005       format are still returned in a list.
1006
1007     o The option `full' of cophenetic.phylo() has been removed because
1008       it could not be used from the generic.
1009
1010
1011 DEPRECATED & DEFUNCT
1012
1013     o rotate() has been removed; this function did not work correctly
1014       since ape 1.9.
1015
1016
1017
1018                 CHANGES IN APE VERSION 1.9-1
1019
1020
1021 BUG FIXES
1022
1023     o Trees with a single tip were not read correctly in R as the
1024       element `Nnode' was not set: this is fixed.
1025
1026     o unroot() did not set correctly the number of nodes of the
1027       unrooted tree in most cases.
1028
1029     o read.GenBank() failed when fetching very long sequences,
1030       particularly of the BX-series.
1031
1032     o A bug was introduced in read.tree() with ape 1.9: it has been
1033       fixed
1034
1035
1036
1037                 CHANGES IN APE VERSION 1.9
1038
1039
1040 NEW FEATURES
1041
1042     o There are two new print `methods' for trees of class "phylo" and
1043       lists of trees of class "multi.tree", so that they are now
1044       displayed in a compact and informative way.
1045
1046     o There are two new functions, old2new.phylo and new2old.phylo,
1047       for converting between the old and new coding of the class
1048       "phylo".
1049
1050     o dist.dna() has three new models: Barry and Hartigan ("BH87"),
1051       LogDet ("logdet"), and paralinear ("paralin").
1052
1053     o compute.brlen() has been extended: several methods are now
1054       available to compute branch lengths.
1055
1056     o write.dna() can now handle matrices as well as lists.
1057
1058
1059 BUG FIXES
1060
1061     o cophenetic.phylo() sometimes returned a wrong result with
1062       multichotomous trees: this is fixed.
1063
1064     o rotate() failed when a single tip was specified: the tree is now
1065       returned unchanged.
1066
1067     o ace() did not return the correct index matrix with custom
1068       models: this is fixed.
1069
1070     o multi2di() did not work correctly when resolving multichotomies
1071       randomly: the topology was always the same, only the arrangement
1072       of clades was randomized: this is fixed. This function now
1073       accepts trees with no branch lengths.
1074
1075     o The output of diversi.gof() was blurred by useless prints when a
1076       user distribution was specified. This has been corrected, and
1077       the help page of this function has been expanded.
1078
1079
1080 OTHER CHANGES
1081
1082     o The internal structure of the class "phylo" has been changed:
1083       see the document "Definition of Formats for Coding Phylogenetic
1084       Trees in R" for the details. In addition, the code of most
1085       functions has been improved.
1086
1087     o Several functions have been improved by replacing some R codes
1088       by C codes: pic, plot.phylo, and reorder.phylo.
1089
1090     o There is now a citation information: see citation("ape") in R.
1091
1092     o write.tree() now does not add extra 0's to branch lengths so
1093       that 1.23 is printed "1.23" by default, not "1.2300000000".
1094
1095     o The syntax of bind.tree() has been simplified. This function now
1096       accepts trees with no branch lengths, and handles correctly node
1097       labels.
1098
1099     o The option `as.numeric' of mrca() has been removed.
1100
1101     o The unused options `format' and `rooted' of read.tree() have
1102       been removed.
1103
1104     o The unused option `format' of write.tree() has been removed.
1105
1106     o The use of node.depth() has been simplified.
1107
1108
1109
1110                 CHANGES IN APE VERSION 1.8-5
1111
1112
1113 NEW FEATURES
1114
1115     o Two new functions read.nexus.data() and write.nexus.data(),
1116       contributed by Johan Nylander, allow to read and write molecular
1117       sequences in NEXUS files.
1118
1119     o The new function reorder.phylo() reorders the internal structure
1120       of a tree of class "phylo". It is used as the generic, e.g.,
1121       reorder(tr).
1122
1123     o read.tree() and read.nexus() can now read trees with a single
1124       edge.
1125
1126     o The new data set `cynipids' supplies a set of protein sequences
1127       in NEXUS format.
1128
1129
1130 BUG FIXES
1131
1132     o The code of all.equal.phylo() has been completely rewritten
1133       (thanks to Benoît Durand) which fixes several bugs.
1134
1135     o read.tree() and read.nexus() now checks the labels of the tree
1136       to remove or substitute any characters that are illegal in the
1137       Newick format (parentheses, etc.)
1138
1139     o A negative P-value could be returned by mantel.test(): this is
1140       now fixed.
1141
1142
1143
1144                 CHANGES IN APE VERSION 1.8-4
1145
1146
1147 NEW FEATURES
1148
1149     o The new function sh.test() computes the Shimodaira-
1150       Hasegawa test.
1151
1152     o The new function collapse.singles() removes the nodes with a
1153       single descendant from a tree.
1154
1155     o plot.phylo() has a new argument `tip.color' to specify the
1156       colours of the tips.
1157
1158     o mlphylo() has now an option `quiet' to control the display of
1159       the progress of the analysis (the default is FALSE).
1160
1161
1162 BUG FIXES
1163
1164     o read.dna() did not read correctly sequences in sequential format
1165       with leading alignment gaps "-": this is fixed.
1166
1167     o ace() returned a list with no class so that the generic
1168       functions (anova, logLik, ...) could not be used directly. This
1169       is fixed as ace() now returns an object of class "ace".
1170
1171     o anova.ace() had a small bug when computing the number of degrees
1172       of freedom: this is fixed.
1173
1174     o mlphylo() did not work when the sequences were in a matrix or
1175       a data frame: this is fixed.
1176
1177     o rtree() did not work correctly when trying to simulate an
1178       unrooted tree with two tips: an error message is now issued.
1179
1180
1181 OTHER CHANGES
1182
1183     o The algorithm of rtree() has been changed: it is now about 40,
1184       100, and 130 times faster for 10, 100, and 1000 tips,
1185       respectively.
1186
1187
1188
1189                 CHANGES IN APE VERSION 1.8-3
1190
1191
1192 NEW FEATURES
1193
1194     o There are four new `method' functions to be used with the
1195       results of ace(): logLik(), deviance(), AIC(), and anova().
1196
1197     o The plot method of phymltest has two new arguments: `main' to
1198       change the title, and `col' to control the colour of the
1199       segments showing the AIC values.
1200
1201     o ace() has a new argument `ip' that gives the initial values used
1202       in the ML estimation with discrete characters (see the examples
1203       in ?ace). This function now returns a matrix giving the indices
1204       of the estimated rates when analysing discrete characters.
1205
1206     o nodelabels() and tiplabels() have a new argument `pie' to
1207       represent proportions, with any number of categories, as
1208       piecharts. The use of the option `thermo' has been improved:
1209       there is now no limitation on the number of categories.
1210
1211
1212 BUG FIXES
1213
1214     o mlphylo() did not work with more than two partitions: this is
1215       fixed.
1216
1217     o root() failed if the proposed outgroup was already an outgroup
1218       in the tree: this is fixed.
1219
1220     o The `col' argument in nodelabels() and tiplabels() was not
1221       correctly passed when `text' was used: this is fixed.
1222
1223     o Two bugs were fixed in mlphylo(): parameters were not always
1224       correctly output, and the estimation failed in some cases.
1225
1226     o plot.phylo() was stuck when given a tree with a single tip: this
1227       is fixed and a message error is now returned.
1228
1229     o An error was corrected in the help page of gammaStat regarding
1230       the calculation of P-values.
1231
1232     o Using gls() could crash R when the number of species in the tree
1233       and in the variables were different: this is fixed.
1234
1235
1236
1237                 CHANGES IN APE VERSION 1.8-2
1238
1239
1240 NEW FEATURES
1241
1242     o The new function mlphylo() fits a phylogenetic tree by maximum
1243       likelihood from DNA sequences. Its companion function DNAmodel()
1244       is used to define the substitution model which may include
1245       partitioning. There are methods for logLik(), deviance(), and
1246       AIC(), and the summary() method has been extended to display in
1247       a friendly way the results of this model fitting. Currently, the
1248       functionality is limited to estimating the substitution and
1249       associated parameters and computing the likelihood.
1250
1251     o The new function drop1.compar.gee (used as, e.g., drop1(m))
1252       tests for single effects in GEE-based comparative method. A
1253       warning message is printed if there is not enough degrees of
1254       freedom.
1255
1256
1257 BUG FIXES
1258
1259     o An error message was sometimes issued by plot.multi.tree(),
1260       though with no consequence.
1261
1262
1263
1264                 CHANGES IN APE VERSION 1.8-1
1265
1266
1267 NEW FEATURES
1268
1269     o There is a new plot method for lists of trees (objects of class
1270       "multi.tree"): it calls plot.phylo() internally and is
1271       documented on the same help page.
1272
1273
1274 BUG FIXES
1275
1276     o A bug was fixed in the C code that analyzes bipartitions: this
1277       has impact on several functions like prop.part, prop.clades,
1278       boot.phylo, or consensus.
1279
1280     o root() did not work correctly when the specified outgroup had
1281       more than one element: this is fixed.
1282
1283     o dist.dna() sometimes returned a warning inappropriately: this
1284       has been corrected.
1285
1286     o If the distance object given to nj() had no rownames, nj()
1287       returned a tree with no tip labels: it now returns tips labelled
1288       "1", "2", ..., corresponding to the row numbers.
1289
1290
1291 OTHER CHANGES
1292
1293     o nj() has been slightly changed so that tips with a zero distance
1294       are first aggregated with zero-lengthed branches; the usual NJ
1295       procedure is then performed on a distance matrix without 0's.
1296
1297
1298
1299                 CHANGES IN APE VERSION 1.8
1300
1301
1302 NEW FEATURES
1303
1304     o The new function chronopl() estimates dates using the penalized
1305       likelihood method by Sanderson (2002; Mol. Biol. Evol., 19:101).
1306
1307     o The new function consensus() calculates the consensus tree of a
1308       list of trees.
1309
1310     o The new function evolve.phylo() simulates the evolution of
1311       continuous characters along a phylogeny under a Brownian model.
1312
1313     o The new plot method for objects of class "ancestral" displays a
1314       tree together with ancestral values, as returned by the above
1315       function.
1316
1317     o The new function as.phylo.formula() returns a phylogeny from a
1318       set of nested taxonomic variables given as a formula.
1319
1320     o The new function read.caic() reads trees in CAIC format.
1321
1322     o The new function tiplabels() allows to add labels to the tips
1323       of a tree using text or plotting symbols in a flexible way.
1324
1325     o The new function unroot() unroots a phylogeny.
1326
1327     o multi2di() has a new option, `random', which specifies whether
1328       to resolve the multichotomies randomly (the default) or not.
1329
1330     o prop.part() now returns an object of class "prop.part" for which
1331       there are print (to display a partition in a more friendly way)
1332       and summary (to extract the numbers) methods.
1333
1334     o plot.phylo() has a new option, `show.tip.label', specifying
1335       whether to print the labels of the tips. The default is TRUE.
1336
1337     o The code of nj() has been replaced by a faster C code: it is now
1338       about 10, 25, and 40 times faster for 50, 100, and 200 taxa,
1339       respectively.
1340
1341     o write.nexus() now writes whether a tree is rooted or not.
1342
1343
1344 BUG FIXES
1345
1346     o Two bugs have been fixed in root(): unrooted trees are now
1347       handled corretly, and node labels are now output normally.
1348
1349     o A bug was fixed in phymltest(): the executable couldn't be found
1350       in some cases.
1351
1352     o Three bug have been fixed in ace(): computing the likelihood of
1353       ancestral states of discrete characters failed, custom models
1354       did not work, and the function failed with a null gradient (a
1355       warning message is now returned; this latter bug was also
1356       present in yule.cov() as well and is now fixed).
1357
1358     o pic() hanged out when missing data were present: a message error
1359       is now returned.
1360
1361     o A small bug was fixed in dist.dna() where the gamma correction
1362       was not always correctly dispatched.
1363
1364     o plot.phylo() plotted correctly the root edge only when the tree
1365       was plotted rightwards: this works now for all directions.
1366
1367
1368 OTHER CHANGES
1369
1370     o dist.taxo() has been renamed as weight.taxo().
1371
1372     o dist.phylo() has been replaced by the method cophenetic.phylo().
1373
1374     o Various error and warning messages have been improved.
1375
1376
1377
1378                 CHANGES IN APE VERSION 1.7
1379 NEW FEATURES
1380
1381     o The new function ace() estimates ancestral character states for
1382       continuous characters (with ML, GLS, and contrasts methods), and
1383       discrete characters (with ML only) for any number of states.
1384
1385     o The new function compar.ou() fits the Ornstein-Uhlenbeck model
1386       of directional evolution for continuous characters. The user
1387       specifies the node(s) of the tree where the character optimum
1388       changes.
1389
1390     o The new function is.rooted() tests whether a tree (of class
1391       "phylo") is rooted.
1392
1393     o The new function rcoal() generates random ultrametric trees with
1394       the possibility to specify the function that generates the
1395       inter-nodes distances.
1396
1397     o The new function mrca() gives for all pairs of tips in a tree
1398       (and optionally nodes too) the most recent common ancestor.
1399
1400     o nodelabels() has a new option `thermo' to plot proportions (up
1401       to three classes) on the nodes of a tree.
1402
1403     o rtree() has been improved: it can now generate rooted or
1404       unrooted trees, and the mathematical function that generates the
1405       branch lengths may be specified by the user. The tip labels may
1406       be given directly in the call to rtree. The limit cases (n = 2,
1407       3) are now handled correctly.
1408
1409     o dist.topo() has a new argument `method' with two choices: "PH85"
1410       for Penny and Henny's method (already available before and now
1411       the default), and "BHV01" for the geometric distance by Billera
1412       et al. (2001, Adv. Appl. Math. 27:733).
1413
1414     o write.tree() has a new option, `digits', which specifies the
1415       number of digits to be printed in the Newick tree. By default
1416       digits = 10. The numbers are now always printed in decimal form
1417       (i.e., 1.0e-1 is now avoided).
1418
1419     o dist.dna() can now compute the raw distances between pairs of
1420       DNA sequences by specifying model = "raw".
1421
1422     o dist.phylo() has a new option `full' to possibly compute the
1423       distances among all tips and nodes of the tree. The default if
1424       `full = FALSE'.
1425
1426
1427 BUG FIXES
1428
1429     o Several bugs were fixed in all.equal.phylo().
1430
1431     o dist.dna() did not handle correctly gaps ("-") in alignments:
1432       they are now considered as missing data.
1433
1434     o rotate() did not work if the tips were not ordered: this is
1435       fixed.
1436
1437     o mantel.test() returned NA in some special cases: this is fixed
1438       and the function has been improved and is now faster.
1439
1440     o A bug was fixed in diversi.gof() where the calculation of A² was
1441       incorrect.
1442
1443     o cherry() did not work correctly under some OSs (mainly Linux):
1444       this is fixed.
1445
1446     o is.binary.tree() has been modified so that it works with both
1447       rooted and unrooted trees.
1448
1449     o The documentation of theta.s() was not correct: this has been
1450       fixed.
1451
1452     o plot.mst() did not work correctly: this is fixed.
1453
1454
1455
1456                 CHANGES IN APE VERSION 1.6
1457
1458
1459 NEW FEATURES
1460
1461     o The new function dist.topo() computes the topological distances
1462       between two trees.
1463
1464     o The new function boot.phylo() performs a bootstrap analysis on
1465       phylogeny estimation.
1466
1467     o The new functions prop.part() and prop.clades() analyse
1468       bipartitions from a series of trees.
1469
1470
1471 OTHER CHANGES
1472
1473     o read.GenBank() now uses the EFetch utility of NCBI instead of
1474       the usual Web interface: it is now much faster (e.g., 12 times
1475       faster to retrieve 8 sequences, 37 times for 60 sequences).
1476
1477
1478 BUG FIXES
1479
1480     o Several bugs were fixed in read.dna().
1481
1482     o Several bugs were fixed in diversi.time().
1483
1484     o is.binary.tree() did not work correctly if the tree has no edge
1485       lengths: this is fixed.
1486
1487     o drop.tip() did not correctly propagated the `node.label' of a
1488       tree: this is fixed.
1489
1490
1491
1492                 CHANGES IN APE VERSION 1.5
1493
1494
1495 NEW FEATURES
1496
1497     o Two new functions, as.matching.phylo() and as.phylo.matching(),
1498       convert objects between the classes "phylo" and "matching". The
1499       latter implements the representation of binary trees introduced by
1500       Diaconis and Holmes (1998; PNAS 95:14600). The generic function
1501       as.matching() has been introduced as well.
1502
1503     o Two new functions, multi2di() and di2multi(), allow to resolve
1504       and collapse multichotomies with branches of length zero.
1505
1506     o The new function nuc.div() computes the nucleotide diversity
1507       from a sample a DNA sequences.
1508
1509     o dist.dna() has been completely rewritten with a much faster
1510       (particularly for large data sets) C code. Eight models are
1511       available: JC69, K80, F81, K81, F84, T92, TN93, and GG95 (the
1512       option `method' has been renamed `model'). Computation of variance
1513       is available for all models. A gamma-correction is possible for
1514       JC69, K80, F81, and TN93. There is a new option, pairwise.deletion,
1515       to remove sites with missing data on a pairwise basis. The option
1516       `GCcontent' has been removed.
1517
1518     o read.GenBank() has a new option (species.names) which specifies
1519       whether to return the species names of the organisms in addition
1520       to the accession numbers of the sequences (this is the default
1521       behaviour).
1522
1523     o write.nexus() can now write several trees in the same NEXUS file.
1524
1525     o drop.tip() has a new option `root.edge' that allows to specify the
1526       new root edge if internal branches are trimmed.
1527
1528
1529 BUG FIXES
1530
1531     o as.phylo.hclust() failed if some labels had parentheses: this
1532       is fixed.
1533
1534     o Several bugs were fixed in all.equal.phylo(). This function now
1535       returns the logical TRUE if the trees are identical but with
1536       different representations (a report was printed previously).
1537
1538     o read.GenBank() did not correctly handle ambiguous base codes:
1539       this is fixed.
1540
1541
1542 OTHER CHANGES
1543
1544     o birthdeath() now returns an object of class "birthdeath" for
1545       which there is a print method.
1546
1547
1548
1549                 CHANGES IN APE VERSION 1.4
1550
1551
1552 NEW FEATURES
1553
1554     o The new function nj() performs phylogeny estimation with the
1555       neighbor-joining method of Saitou and Nei (1987; Mol. Biol.
1556       Evol., 4:406).
1557
1558     o The new function which.edge() identifies the edges of a tree
1559       that belong to a group specified as a set of tips.
1560
1561     o The new function as.phylo.phylog() converts an object of class
1562       "phylog" (from the package ade4) into an object of class
1563       "phylo".
1564
1565     o The new function axisPhylo() draws axes on the side of a
1566       phylogeny plot.
1567
1568     o The new function howmanytrees() calculates the number of trees
1569       in different cases and giving a number of tips.
1570
1571     o write.tree() has a new option `multi.line' (TRUE by default) to
1572       write a Newick tree on several lines rather than on a single
1573       line.
1574
1575     o The functionalities of zoom() have been extended. Several
1576       subtrees can be visualized at the same time, and they are marked
1577       on the main tree with colors. The context of the subtrees can be
1578       marked with the option `subtree' (see below).
1579
1580     o drop.tip() has a new option `subtree' (FALSE by default) which
1581       specifies whether to output in the tree how many tips have been
1582       deleted and where.
1583
1584     o The arguments of add.scale.bar() have been redefined and have
1585       now default values (see ?add.scale.bar for details). This
1586       function now works even if the plotted tree has no edge length.
1587
1588     o plot.phylo() can now plot radial trees, but this does not take
1589       edge lengths into account.
1590
1591     o In plot.phylo() with `type = "phylogram"', if the values of
1592       `edge.color' and `edge.width' are identical for sister-branches,
1593       they are propagated to the vertical line that link them.
1594
1595
1596 BUG FIXES
1597
1598     o Repeated calls to as.phylo.hclust() or as.hclust.phylo() made R
1599       crashing. This is fixed.
1600
1601     o In plot.phylo(), the options `edge.color' and `edge.width' are
1602       now properly recycled; their default values are now "black" and
1603       1, respectively.
1604
1605     o A bug has been fixed in write.nexus().
1606
1607
1608 OTHER CHANGES
1609
1610     o The function node.depth.edgelength() has been removed and
1611       replaced by a C code.
1612
1613
1614
1615                 CHANGES IN APE VERSION 1.3-1
1616
1617
1618 NEW FEATURES
1619
1620     o The new function nodelabels() allows to add labels to the nodes
1621       of a tree using text or plotting symbols in a flexible way.
1622
1623     o In plot.phylo() the arguments `x.lim' and `y.lim' can now be two
1624       numeric values specifying the lower and upper limits on the x-
1625       and y-axes. This allows to leave some space on any side of the
1626       tree. If a single value is given, this is taken as the upper
1627       limit (as before).
1628
1629
1630
1631                 CHANGES IN APE VERSION 1.3
1632
1633
1634 NEW FEATURES
1635
1636     o The new function phymltest() calls the software PHYML and fits
1637       28 models of DNA sequence evolution. There are a print method to
1638       display likelihood and AIC values, a summary method to compute
1639       the hierarchical likelihood ratio tests, and a plot method to
1640       display graphically the AIC values of each model.
1641
1642     o The new function yule.cov() fits the Yule model with covariates,
1643       a model where the speciation rate is affected by several species
1644       traits through a generalized linear model. The parameters are
1645       estimated by maximum likelihood.
1646
1647     o Three new functions, corBrownian(), corGrafen(), and
1648       corMartins(), compute the expected correlation structures among
1649       species given a phylogeny under different models of evolution.
1650       These can be used for GLS comparative phylogenetic methods (see
1651       the examples). There are coef() and corMatrix() methods and an
1652       Initialize.corPhyl() function associated.
1653
1654     o The new function compar.cheverud() implements Cheverud et al.'s
1655       (1985; Evolution 39:1335) phylogenetic comparative method.
1656
1657     o The new function varcomp() estimates variance components; it has
1658       a plot method.
1659
1660     o Two new functions, panel.superpose.correlogram() and
1661       plot.correlogramList(), allow to plot several phylogenetic
1662       correlograms.
1663
1664     o The new function node.leafnumber() computes the number of leaves
1665       of a subtree defined by a particular node.
1666
1667     o The new function node.sons() gets all tags of son nodes from a
1668       given parent node.
1669
1670     o The new function compute.brlen() computes the branch lengths of
1671       a tree according to a specified method.
1672
1673     o plot.phylo() has three new options: "cex" controls the size of
1674       the (tip and node) labels (thus it is no more needed to change
1675       the global graphical parameter), "direction" which allows to
1676       plot the tree rightwards, leftwards, upwards, or downwards, and
1677       "y.lim" which sets the upper limit on the y-axis.
1678
1679
1680 BUG FIXES
1681
1682     o Some functions which try to match tip labels and names of
1683       additional data (e.g. vector) are likely to fail if there are
1684       typing or syntax errors. If both series of names do not perfectly
1685       match, they are ignored and a warning message is now issued.
1686       These functions are bd.ext, compar.gee, pic. Their help pages
1687       have been clarified on this point.
1688
1689
1690
1691                 CHANGES IN APE VERSION 1.2-7
1692
1693
1694 NEW FEATURES
1695
1696     o The new function root() reroots a phylogenetic tree with respect
1697       to a specified outgroup.
1698
1699     o The new function rotate() rotates an internal branch of a tree.
1700
1701     o In plot.phylo(), the new argument "lab4ut" (labels for unrooted
1702       trees) controls the display of the tip labels in unrooted trees.
1703       This display has been greatly improved: the tip labels are now not
1704       expected to overlap with the tree (particularly if lab4ut =
1705       "axial"). In all cases, combining appropriate values of "lab4ut"
1706       and the font size (via "par(cex = )") should result in readable
1707       unrooted trees. See ?plot.phylo for some examples.
1708
1709     o In drop.tip(), the argument `tip' can now be numeric or character.
1710
1711
1712 BUG FIXES
1713
1714     o drop.tip() did not work correctly with trees with no branch
1715       lengths: this is fixed.
1716
1717     o A bug in plot.phylo(..., type = "unrooted") made some trees being
1718       plotted with some line crossings: this is now fixed.
1719
1720
1721
1722                 CHANGES IN APE VERSION 1.2-6
1723
1724
1725 NEW FEATURES
1726
1727     o Six new functions (Moran.I, correlogram.formula, discrete.dist,
1728       correlogram.phylo, dist.taxo, plot.correlogram) have been added
1729       to implement comparative methods with an autocorrelation approach.
1730
1731     o A new data set describing some life history traits of Carnivores
1732       has been included.
1733
1734
1735 BUG FIXES
1736
1737     o A fix was made on mcmc.popsize() to conform to R 2.0.0.
1738
1739
1740 OTHER CHANGES
1741
1742     o When plotting a tree with plot.phylo(), the new default of the
1743       option `label.offset' is now 0, so the labels are always visible.
1744
1745
1746
1747                 CHANGES IN APE VERSION 1.2-5
1748
1749
1750 NEW FEATURES
1751
1752     o The new function bd.ext() fits a birth-death model with combined
1753       phylogenetic and taxonomic data, and estimates the corresponding
1754       speciation and extinction rates.
1755
1756
1757 OTHER CHANGES
1758
1759     o The package gee is no more required by ape but only suggested
1760       since only the function compar.gee() calls gee.
1761
1762
1763
1764                 CHANGES IN APE VERSION 1.2-4
1765
1766
1767 NEW FEATURES
1768
1769     o Four new functions (mcmc.popsize, extract.popsize, plot.popsize,
1770       and lines.popsize) implementing a new approach for inferring the
1771       demographic history from genealogies using a reversible jump
1772       MCMC have been introduced.
1773
1774     o The unit of time in the skyline plot and in the new plots can
1775       now be chosen to be actual years, rather than substitutions.
1776
1777
1778
1779                 CHANGES IN APE VERSION 1.2-3
1780
1781
1782 NEW FEATURES
1783
1784     o The new function rtree() generates a random binary tree with or
1785       without branch lengths.
1786
1787     o Two new functions for drawing lineages-through-time (LTT) plots
1788       are provided: ltt.lines() adds a LTT curve to an existing plot,
1789       and mltt.plot() does a multiple LTT plot giving several trees as
1790       arguments (see `?ltt.plot' for details).
1791
1792
1793 BUG FIXES
1794
1795     o Some taxon names made R crashing when calling as.phylo.hclust():
1796       this is fixed.
1797
1798     o dist.dna() returned an error with two identical DNA sequences
1799       (only using the Jukes-Cantor method returned 0): this is fixed.
1800
1801
1802 OTHER CHANGES
1803
1804     o The function dist.phylo() has been re-written using a different
1805       algorithm: it is now about four times faster.
1806
1807     o The code of branching.times() has been improved: it is now about
1808       twice faster.
1809
1810
1811
1812                 CHANGES IN APE VERSION 1.2-2
1813
1814
1815 NEW FEATURES
1816
1817     o The new function seg.sites() finds the segregating sites in a
1818       sample of DNA sequences.
1819
1820
1821 BUG FIXES
1822
1823     o A bug introduced in read.tree() and in read.nexus() with version
1824       1.2-1 was fixed.
1825
1826     o A few errors were corrected and a few examples were added in the
1827       help pages.
1828
1829
1830
1831                 CHANGES IN APE VERSION 1.2-1
1832
1833
1834 NEW FEATURES
1835
1836     o plot.phylo() can now draw the edge of the root of a tree if it
1837       has one (see the new option `root.edge', its default is FALSE).
1838
1839
1840 BUG FIXES
1841
1842     o A bug was fixed in read.nexus(): files with semicolons inside
1843       comment blocks were not read correctly.
1844
1845     o The behaviour of read.tree() and read.nexus() was corrected so
1846       that tree files with badly represented root edges (e.g., with
1847       an extra pair of parentheses, see the help pages for details)
1848       are now correctly represented in the object of class "phylo";
1849       a warning message is now issued.
1850
1851
1852
1853                 CHANGES IN APE VERSION 1.2
1854
1855
1856 NEW FEATURES
1857
1858     o plot.phylo() has been completely re-written and offers several
1859       new functionalities. Three types of trees can now be drawn:
1860       phylogram (as previously), cladogram, and unrooted tree; in
1861       all three types the branch lengths can be drawn using the edge
1862       lengths of the phylogeny or not (e.g., if the latter is absent).
1863       The vertical position of the nodes can be adjusted with two
1864       choices (see option `node.pos'). The code has been re-structured,
1865       and two new functions (potentially useful for developpers) are
1866       documented separately: node.depth.edgelength() and node.depth();
1867       see the respective help pages for details.
1868
1869     o The new function zoom() allows to explore very large trees by
1870       focusing on a small portion of it.
1871
1872     o The new function yule() fits by maximum likelihood the Yule model
1873       (birth-only process) to a phylogenetic tree.
1874
1875     o Support for writing DNA sequences in FASTA format has been
1876       introduced in write.dna() (support for reading sequences in
1877       this format was introduced in read.dna() in version 1.1-2).
1878       The function has been completely re-written, fixing some bugs
1879       (see below); the default behaviour is no more to display the
1880       sequences on the standard output. Several options have been
1881       introduced to control the sequence printing in a flexible
1882       way. The help page has been extended.
1883
1884     o A new data set is included: a supertree of bats in NEXUS format.
1885
1886
1887 BUG FIXES
1888
1889     o In theta.s(), the default of the option `variance' has
1890       been changed to `FALSE' (as was indicated in the help page).
1891
1892     o Several bugs were fixed in the code of all.equal.phylo().
1893
1894     o Several bugs were fixed in write.dna(), particularly this
1895       function did not work with `format = "interleaved"'.
1896
1897     o Various errors were corrected in the help pages.
1898
1899
1900 OTHER CHANGES
1901
1902     o The argument names of as.hclust.phylo() have been changed
1903       from "(phy)" to "(x, ...)" to conform to the definition of
1904       the corresponding generic function.
1905
1906     o gamma.stat() has been renamed gammaStat() to avoid confusion
1907       since gamma() is a generic function.
1908
1909
1910
1911                 CHANGES IN APE VERSION 1.1-3
1912
1913
1914 BUG FIXES
1915
1916     o base.freq() previously did not return a value of 0 for
1917       bases absent in the data (e.g., a vector of length 3 was
1918       returned if one base was absent). This is now fixed (a
1919       vector of length 4 is always returned).
1920
1921     o Several bugs were fixed in read.nexus(), including that this
1922       function did not work in this absence of a "TRANSLATE"
1923       command in the NEXUS file, and that the commands were
1924       case-sensitive.
1925
1926
1927
1928                 CHANGES IN APE VERSION 1.1-2
1929
1930
1931 NEW FEATURES
1932
1933     o The Tamura and Nei (1993) model of DNA distance is now implemented
1934       in dist.dna(): five models are now available in this function.
1935
1936     o A new data set is included: a set of 15 sequences of the
1937       cytochrome b mitochondrial gene of the woodmouse (Apodemus
1938       sylvaticus).
1939
1940
1941 BUG FIXES
1942
1943     o A bug in read.nexus() was fixed.
1944
1945     o read.dna() previously did not work correctly in most cases.
1946       The function has been completely re-written and its help page
1947       has been considerably extended (see ?read.dna for details).
1948       Underscores (_) in taxon names are no more replaced with
1949       spaces (this behaviour was undocumented).
1950
1951     o A bug was fixed in write.dna().
1952
1953
1954
1955                 CHANGES IN APE VERSION 1.1-1
1956
1957
1958 BUG FIXES
1959
1960     o A bug in read.tree() introduced in APE 1.1 was fixed.
1961
1962     o A bug in compar.gee() resulted in an error when trying to fit
1963       a model with `family = "binomial"'. This is now fixed.
1964
1965
1966
1967                 CHANGES IN APE VERSION 1.1
1968
1969
1970 NEW FEATURES
1971
1972     o The Klastorin (1982) method as suggested by Misawa and Tajima
1973       (2000, Mol. Biol. Evol. 17:1879-1884) for classifying genes
1974       on the basis of phylogenetic trees has been implemented (see
1975       the function klastorin()).
1976
1977     o Functions have been added to convert APE's "phylo" objects in
1978       "hclust" cluster objects and vice versa (see the help page of
1979       as.phylo for details).
1980
1981     o Three new functions, ratogram(), chronogram() and NPRS.criterion(),
1982       are introduced for the estimation of absolute evolutionary rates
1983       (ratogram) and dated clock-like trees (chronogram) from
1984       phylogenetic trees using the non-parametric rate smoothing approach
1985       by MJ Sanderson (1997, Mol. Biol. Evol. 14:1218-1231).
1986
1987     o A summary method is now provided printing a summary information on a
1988       phylogenetic tree with, for instance, `summary(tree)'.
1989
1990     o The behaviour of read.tree() was changed so that all spaces and
1991       tabulations in tree files are now ignored. Consequently, spaces in tip
1992       labels are no more allowed. Another side effect is that read.nexus()
1993       now does not replace the underscores (_) in tip labels with spaces
1994       (this behaviour was undocumented).
1995
1996     o The function plot.phylo() has a new option (`underscore') which
1997       specifies whether the underscores in tip labels should be written on
1998       the plot as such or replaced with spaces (the default).
1999
2000     o The function birthdeath() now computes 95% confidence intervals of
2001       the estimated parameters using profile likelihood.
2002
2003     o Three new data sets are included: a gene tree estimated from 36
2004       landplant rbcL sequences, a gene tree estimated from 32 opsin
2005       sequences, and a gene tree for 50 BRCA1 mammalian sequences.
2006
2007
2008 BUG FIXES
2009
2010     o A bug was fixed in dist.gene() where nothing was returned.
2011
2012     o A bug in plot.mst() was fixed.
2013
2014     o A bug in vcv.phylo() resulted in false correlations when the
2015       option `cor = TRUE' was used (now fixed).
2016
2017
2018
2019                 CHANGES IN APE VERSION 1.0
2020
2021
2022 NEW FEATURES
2023
2024     o Two new functions, read.dna() and write.dna(), read/write in a file
2025       DNA sequences in interleaved or in sequential format.
2026
2027     o Two new functions, read.nexus() and write.nexus(), read/write trees
2028       in a NEXUS file.
2029
2030     o The new function bind.tree() allows to bind two trees together,
2031       possibly handling root edges to give internal branches.
2032
2033     o The new function drop.tip() removes the tips in a phylogenetic tree,
2034       and trims (or not) the corresponding internal branches.
2035
2036     o The new function is.ultrametric() tests if a tree is ultrametric.
2037
2038     o The function plot.phylo() has more functionalities such as drawing the
2039       branches with different colours and/or different widths, showing the
2040       node labels, controling the position and font of the labels, rotating
2041       the labels, and controling the space around the plot.
2042
2043     o The function read.tree() can now read trees with no branch length,
2044       such as "(a,b),c);". Consequently, the element `edge.length' in
2045       objects of class "phylo" is now optional.
2046
2047     o The function write.tree() has a new default behaviour: if the default
2048       for the option `file' is used (i.e. file = ""), then a variable of
2049       mode character containing the tree in Newick format is returned which
2050       can thus be assigned (e.g., tree <- write.tree(phy)).
2051
2052     o The function read.tree() has a new argument `text' which allows
2053       to read the tree in a variable of mode character.
2054
2055     o A new data set is included: the phylogenetic relationships among
2056       the orders of birds from Sibley and Ahlquist (1990).
2057
2058
2059
2060                 CHANGES IN APE VERSION 0.2-1
2061
2062
2063 BUG FIXES
2064
2065     o Several bugs were fixed in the help pages.
2066
2067
2068
2069                 CHANGES IN APE VERSION 0.2
2070
2071
2072 NEW FEATURES
2073
2074     o The function write.tree() writes phylogenetic trees (objects of class
2075       "phylo") in an ASCII file using the Newick parenthetic format.
2076
2077     o The function birthdeath() fits a birth-death model to branching times
2078       by maximum likelihood, and estimates the corresponding speciation and
2079       extinction rates.
2080
2081     o The function scale.bar() adds a scale bar to a plot of a phylogenetic
2082       tree.
2083
2084     o The function is.binary.tree() tests whether a phylogeny is binary.
2085
2086     o Two generic functions, coalescent.intervals() and collapsed.intervals(),
2087       as well as some methods are introduced.
2088
2089     o Several functions, including some generics and methods, for computing
2090       skyline plot estimates (classic and generalized) of effective
2091       population size through time are introduced and replace the function
2092       skyline.plot() in version 0.1.
2093
2094     o Two data sets are now included: the phylogenetic relationships among
2095       the families of birds from Sibley and Ahlquist (1990), and an
2096       estimated clock-like phylogeny of HIV sequences sampled in the
2097       Democratic Republic of Congo.
2098
2099
2100 DEPRECATED & DEFUNCT
2101
2102     o The function skyline.plot() in ape 0.1 has been deprecated and
2103       replaced by more elaborate functions (see above).
2104
2105
2106 BUG FIXES
2107
2108     o Two important bugs were fixed in plot.phylo(): phylogenies with
2109       multichotomies not at the root or not with only terminal branches,
2110       and phylogenies with a single node (i.e. only terminal branches)
2111       did not plot. These trees should be plotted correctly now.
2112
2113     o Several bugs were fixed in diversi.time() in the computation of
2114       AICs and LRTs.
2115
2116     o Various errors were corrected in the help pages.