MyNixOS website logo
Description

Subsets of Randomly Selected Phylogenies from Existing Mega-Phylogenies.

There are an increasing number of mega-phylogenies available nowadays, with many of them being sets of thousands of posterior distribution phylogenies. For ecological studies, we may need to randomly select many such posterior phylogenies to conduct analyses. This data package serves this purpose by providing a small number (100 or 50) of randomly selected posterior phylogenies (if available) so that we can readily use them for our downstream analyses without repeating the downloading and selecting processes.

megatrees

The goal of megatrees is to provide a collection of subset of existing mega-phylogenies (mega-trees, hence the package name) for ecological studies. For common community ecology analyses, results derived from such phylogenies are robust (Li et al. 2019). This package will save us time to repeat the effort to download and randomly select a small subset of posterior phylogenies (for some taxonomic groups). Previous studies suggested that sampling 50-100 trees is sufficient to capture the uncertainty of phylogenetic spaces (Baiser et al. 2018; Li et al. 2019; Nakagawa et al. 2019). Therefore, for taxonomic groups with multiple posterior distribution of phylogenies, a randomly selected subset of 100 phylogenies were provided here, which can be relatively large in size (e.g., 45 Mb for the 100 phylogenies of 32k fishes). The larger than normal size made it hard to host this package on CRAN.

Installation

You can install the development version of megatrees from GitHub:

if(!require("remotes")) install.packages("remotes")
remotes::install_github("daijiang/megatrees")

List of phylogenies available

Datasets with a single tree are bundled with the package and accessed directly as R objects. Datasets with 50 or 100 posterior trees are large and must be downloaded via their accessor function (marked with get_*()).

Taxon# of species# of treesHow to accessReference
Amphibian7238100get_tree_amphibian_n100()Jetz and Pyron 2018
Bee46511tree_beeHenríquez-Piskulich et al. 2023
4651100get_tree_bee_n100()Henríquez-Piskulich et al. 2023
Butterfly22441tree_butterflyKawahara et al. 2023
Bird9993100get_tree_bird_n100()Jetz et al. 2012
110171tree_bird_McTavishMcTavish et al. 2025
Fish116381tree_fish_12kRabosky et al. 2018
3151650get_tree_fish_32k_n50()Rabosky et al. 2018
Mammal5831100get_tree_mammal_n100_phylacine()Faurby et al. 2018
5911100get_tree_mammal_n100_vertlife()Upham et al. 2019
Plant745311tree_plant_otlSmith and Brown 2018
1231821tree_plant_CarruthersCarruthers et al. 2026
123182100get_tree_plant_n100_Carruthers()Carruthers et al. 2026
Reptile (Squamate)9755100get_tree_reptile_n100()Tonini et al. 2016
Shark, Ray, and Chimaera1192100get_tree_shark_ray_n100()Stein et al. 2018

⚠️ Important update — breaking change:

Large multi-tree datasets (those with 50 or 100 posterior phylogenies) are no longer bundled with the package. They are stored as GitHub release assets and downloaded to a local cache on first use via accessor functions (e.g. get_tree_bird_n100()). This also means that we need to have internet access if we need to use those multiPhylo objects. The piggyback package is required for downloading:

install.packages("piggyback")

⚠️ Warning: this change breaks existing code. If you previously used a multiPhylo object directly (e.g. tree_bird_n100), that object no longer exists in the package. You must update your code to call the corresponding accessor function and assign the result to a variable:

# old (broken)
phy <- tree_bird_n100[[1]]

# new
tree_bird_n100 <- get_tree_bird_n100()
phy <- tree_bird_n100[[1]]

The full list of renamed accessors: get_tree_amphibian_n100(), get_tree_bee_n100(), get_tree_bird_n100(), get_tree_fish_32k_n50(), get_tree_mammal_n100_phylacine(), get_tree_mammal_n100_vertlife(), get_tree_plant_n100_Carruthers(), get_tree_reptile_n100(), get_tree_shark_ray_n100().

Contribution

Everyone is welcome to add new existing mega-trees here by sending a pull request. Or just open an issue to add links to the new mega-trees and I will add them here.

References

Baiser, B., Valle, D., Zelazny, Z., & Burleigh, J. G. (2018). Non‐random patterns of invasion and extinction reduce phylogenetic diversity in island bird assemblages. Ecography, 41(2), 361-374.

Faurby, S., Davis, M., Pedersen, R. Ø., Schowanek, S. D., Antonelli, A., & Svenning, J. C. (2018). PHYLACINE 1.2: The phylogenetic atlas of mammal macroecology. Ecology, 99(11), 2626-2626.

Henríquez-Piskulich, P.; Hugall, A.F.; Stuart-Fox; D. (2023). A supermatrix phylogeny of the world’s bees (Hymenoptera: Anthophila). bioRxiv 2023.06.16.545281. doi.org/10.1101/2023.06.16.545281.

Jetz, W., & Pyron, R. A. (2018). The interplay of past diversification and evolutionary isolation with present imperilment across the amphibian tree of life. Nature ecology & evolution, 2(5), 850-858.

Jetz, W., Thomas, G. H., Joy, J. B., Hartmann, K., & Mooers, A. O. (2012). The global diversity of birds in space and time. Nature, 491(7424), 444.

Li, D., Monahan, W. B., & Baiser, B. (2018). Species richness and phylogenetic diversity of native and non‐native species respond differently to area and environmental factors. Diversity and Distributions, 24(6), 853-864.

Li, D., Trotta, L., Marx, H. E., Allen, J. M., Sun, M., Soltis, D. E., ... & Baiser, B. (2019). For common community phylogenetic analyses, go ahead and use synthesis phylogenies. Ecology, 100(9), e02788.

Nakagawa, S., & De Villemereuil, P. (2019). A general method for simultaneously accounting for phylogenetic and species sampling uncertainty via Rubin’s rules in comparative analysis. Systematic Biology, 68(4), 632-641.

Rabosky, D. L., Chang, J., Title, P. O., Cowman, P. F., Sallan, L., Friedman, M., ... & Alfaro, M. E. (2018). An inverse latitudinal gradient in speciation rate for marine fishes. Nature, 559(7714), 392.

Smith, S. A., & Brown, J. W. (2018). Constructing a broadly inclusive seed plant phylogeny. American Journal of Botany, 105(3), 302-314.

Stein, R. W., Mull, C. G., Kuhn, T. S., Aschliman, N. C., Davidson, L. N., Joy, J. B., ... & Mooers, A. O. (2018). Global priorities for conserving the evolutionary history of sharks, rays and chimaeras. Nature ecology & evolution, 2(2), 288-298.

Tonini, J. F. R., Beard, K. H., Ferreira, R. B., Jetz, W., & Pyron, R. A. (2016). Fully-sampled phylogenies of squamates reveal evolutionary patterns in threat status. Biological Conservation, 204, 23-31.

Upham, N. S., Esselstyn, J. A., & Jetz, W. (2019). Inferring the mammal tree: species-level sets of phylogenies for questions in ecology, evolution, and conservation. PLoS biology, 17(12), e3000494.

Metadata

Version

1.0.0

License

Unknown

Platforms (80)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    uefi
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-uefi
  • aarch64-windows
  • aarch64_be-none
  • arc-linux
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • 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-linux
  • 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
  • sh4-linux
  • 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-uefi
  • x86_64-windows