Package: rtrees 2.0.3

rtrees: Deriving Phylogenies from Synthesis Trees

Provides tools to derive species-level phylogenies from large synthesis mega-trees for a wide range of taxonomic groups, including plants, birds, mammals, amphibians, reptiles, fish, bees, butterflies, and sharks. When a queried species is absent from the mega-tree, it is grafted onto the tree using one of two placement strategies: attachment at the basal node of the most closely related genus or family ('at_basal_node'), or random attachment below that basal node with probability proportional to branch length ('random_below_basal'). See Li (2023) <doi:10.1111/ecog.06643> for details. Multiple species from a genus not represented in the mega-tree are placed as a polytomy to preserve clade coherence. The package interfaces with the 'megatrees' data package, which bundles or downloads on demand curated mega-trees. Users can also provide their own mega-trees.

Authors:Daijiang Li [aut, cre]

rtrees_2.0.3.tar.gz
rtrees_2.0.3.zip(r-4.7-x86_64)rtrees_2.0.3.zip(r-4.7-arm64)rtrees_2.0.3.zip(r-4.6-x86_64)rtrees_2.0.3.zip(r-4.6-arm64)rtrees_2.0.3.zip(r-4.5-x86_64)
rtrees_2.0.3.tgz(r-4.6-x86_64)rtrees_2.0.3.tgz(r-4.6-arm64)rtrees_2.0.3.tgz(r-4.5-x86_64)rtrees_2.0.3.tgz(r-4.5-arm64)
rtrees_2.0.3.tar.gz(r-4.7-arm64)rtrees_2.0.3.tar.gz(r-4.7-x86_64)rtrees_2.0.3.tar.gz(r-4.6-arm64)rtrees_2.0.3.tar.gz(r-4.6-x86_64)
rtrees_2.0.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
rtrees/json (API)

# Install 'rtrees' in R:
install.packages('rtrees', repos = c('https://daijiang.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/daijiang/rtrees/issues

Pkgdown/docs site:https://daijiang.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

phylogenetic-treescpp

7.78 score 35 stars 107 scripts 303 downloads 8 exports 45 dependencies

Last updated from:3a3081da1d. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK184
linux-devel-x86_64OK217
source / vignettesOK235
linux-release-arm64OK190
linux-release-x86_64OK198
macos-release-arm64OK211
macos-release-x86_64OK503
macos-oldrel-arm64OK141
macos-oldrel-x86_64OK433
windows-devel-arm64OK435
windows-devel-x86_64OK297
windows-release-arm64OK453
windows-release-x86_64OK216
windows-oldrel-x86_64OK243
wasm-releaseOK134

Exports:add_root_infobind_tipbind_tip_dfget_graft_statusget_one_treeget_treerm_starssp_list_df

Dependencies:apecastorclicodetoolscpp11data.tabledigestdplyrfastmatchfsfurrrfuturegenericsglobalsgluejsonlitelatticelazyevallifecyclelistenvmagrittrMatrixmegatreesnaturalsortnlmeparallellypillarpkgconfigpurrrR6rappdirsRcppRcppEigenrlangRSpectrastringistringrtibbletidyrtidyselecttidytreeutf8vctrswithryulab.utils

grafting_scenarios
Grafting Scenarios

Last update: 2026-05-25
Started: 2026-05-25

Non-monophyletic-groups
Non-monophyletic genera

Last update: 2026-05-25
Started: 2026-05-25

Speed comparisons

Last update: 2026-05-18
Started: 2023-01-03

Simple_example
Simple example

Last update: 2026-05-18
Started: 2026-05-18