MyNixOS website logo
Description

Statistical Exploration of Landscapes of Phylogenetic Trees.

Tools for the exploration of distributions of phylogenetic trees. This package includes a 'shiny' interface which can be started from R using treespaceServer(). For further details see Jombart et al. (2017) <DOI:10.1111/1755-0998.12676>.

Buildstatus CRAN StatusBadge CRANDownloads

treespace: exploration of landscapes of phylogenetic trees

treespace implements new methods for the exploration and analysis of distributions of phylogenetic trees for a given set of taxa.

Installing treespace

To install the development version from github:

library(devtools)
install_github("thibautjombart/treespace")

The stable version can be installed from CRAN using:

install.packages("treespace")

Then, to load the package, use:

library("treespace")

## Loading required package: ape

## Loading required package: ade4

## Registered S3 methods overwritten by 'adegraphics':
##   method         from
##   biplot.dudi    ade4
##   kplot.foucart  ade4
##   kplot.mcoa     ade4
##   kplot.mfa      ade4
##   kplot.pta      ade4
##   kplot.sepan    ade4
##   kplot.statis   ade4
##   scatter.coa    ade4
##   scatter.dudi   ade4
##   scatter.nipals ade4
##   scatter.pco    ade4
##   score.acm      ade4
##   score.mix      ade4
##   score.pca      ade4
##   screeplot.dudi ade4

Content overview

The main functions implemented in treespace are:

  • treespace: explore landscapes of phylogenetic trees

  • treespaceServer: open up an application in a web browser for an interactive exploration of the diversity in a set of trees

  • findGroves: identify clusters of similar trees

  • plotGroves: scatterplot of groups of trees, and plotGrovesD3 which enables interactive plotting based on d3.js

  • medTree: find geometric median tree(s) to summarise a group of trees

  • wiwTreeDist: find the distance between transmission trees by comparing their MRCI depth matrices

  • wiwMedTree: find the median of a list of transmission scenarios

  • relatedTreeDist: calculate the distances between trees whose tips belong to the same categories but are not necessarily identically labelled

  • treeConcordance: calculate the concordance between a category tree and an individuals tree

Other functions are central to the computations of distances between trees:

  • treeVec: characterise a tree by a vector

  • treeDist: find the distance between two tree vectors

  • multiDist: find the pairwise distances of a list of trees

  • refTreeDist: find the distances of a list of trees from a reference tree

  • tipDiff: for a pair of trees, list the tips with differing ancestry

  • plotTreeDiff: plot a pair of trees, highlighting the tips with differing ancestry

  • findMRCIs: find the most recent common infector (MRCI) matrix from “who infected whom” information

  • tipsMRCAdepths: similar to treeVec but the output is a matrix where columns 1 and 2 correspond to tip labels and column 3 gives the depth of the MRCA of that pair of tips

Distributed datasets include:

  • woodmiceTrees: illustrative set of 201 trees built using the neighbour-joining and bootstrapping example from the woodmice dataset in the ape documentation.

  • DengueTrees: 500 trees sampled from a BEAST posterior set of trees from (Drummond and Rambaut, 2007)

  • DengueSeqs: 17 dengue virus serotype 4 sequences from (Lanciotti et al., 1997), from which the DengueTrees were inferred.

  • DengueBEASTMCC: the maximum clade credibility (MCC) tree from the DengueTrees.

Documentation

treespace comes with the following vignettes:

  • introduction: general introduction using a worked example.

  • Dengue example: worked example using a Dengue dataset, used in the treespace publication.

  • transmission trees: worked example using transmission trees.

  • tip categories: introduction to the measures for comparing trees with shared tip label “categories”

Contributing / asking a question

Contributions are welcome via pull requests.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Questions, feature requests and bugs can be reported using the package’s issue system.

Authors

Authors:

Contributors:

Maintainer of the CRAN version:

See details of contributions on:
https://github.com/thibautjombart/treespace/graphs/contributors.

Metadata

Version

1.1.4.3

License

Unknown

Platforms (77)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows