Learn R Programming

⚠️There's a newer version (1.8.2) of this package.Take me there.

castor (version 1.7.11)

Efficient Phylogenetics on Large Trees

Description

Efficient phylogenetic analyses on massive phylogenies comprising up to millions of tips. Functions include pruning, rerooting, calculation of most-recent common ancestors, calculating distances from the tree root and calculating pairwise distances. Calculation of phylogenetic signal and mean trait depth (trait conservatism), ancestral state reconstruction and hidden character prediction of discrete characters, simulating and fitting models of trait evolution, fitting and simulating diversification models, dating trees, comparing trees, and reading/writing trees in Newick format. Citation: Louca, Stilianos and Doebeli, Michael (2017) .

Copy Link

Version

Install

install.packages('castor')

Monthly Downloads

1,671

Version

1.7.11

License

GPL (>= 2)

Maintainer

Stilianos Louca

Last Published

August 17th, 2023

Functions in castor (1.7.11)

count_transitions_between_clades

Count the number of state transitions between tips or nodes.
count_tips_per_node

Count descending tips.
consensus_taxonomies

Compute consensus taxonomies across a tree.
consentrait_depth

Calculate phylogenetic depth of a binary trait using the consenTRAIT metric.
count_lineages_through_time

Count number of lineages through time (LTT).
evaluate_spline

Evaluate a scalar spline at arbitrary locations.
extract_fasttree_constraints

Extract tree constraints in FastTree alignment format.
date_tree_red

Date a tree based on relative evolutionary divergences.
find_farthest_tips

Find farthest tip to each tip & node of a tree.
find_farthest_tip_pair

Find the two most distant tips in a tree.
find_nearest_tips

Find nearest tip to each tip & node of a tree.
expected_distances_sbm

Expected distances traversed by a Spherical Brownian Motion.
extend_tree_to_height

Extend a rooted tree up to a specific height.
extract_deep_frame

Extract tips representing a tree's deep splits.
discrete_trait_depth

Calculate phylogenetic depth of a discrete trait.
congruent_divergence_times

Extract dating anchors for a target tree, using a dated reference tree
extract_tip_neighborhood

Extract a subtree spanning tips within a certain neighborhood.
exponentiate_matrix

Exponentiate a matrix.
congruent_hbds_model

Generate a congruent homogenous-birth-death-sampling model.
extract_tip_radius

Extract a subtree spanning tips within a certain radius.
fit_and_compare_bm_models

Fit and compare Brownian Motion models for multivariate trait evolution between two data sets.
fit_and_compare_sbm_const

Fit and compare Spherical Brownian Motion models for diffusive geographic dispersal between two data sets.
fit_hbd_pdr_on_grid

Fit pulled diversification rates of birth-death models on a time grid.
fit_hbd_model_parametric

Fit a parametric homogenous birth-death model to a timetree.
fit_hbd_pdr_parametric

Fit parameterized pulled diversification rates of birth-death models.
fit_hbd_pdr_on_best_grid_size

Fit pulled diversification rates of birth-death models on a time grid with optimal size.
find_root_of_monophyletic_tips

Find the node or tip that, as root, would make a set of target tips monophyletic.
find_root

Find the root of a tree.
fit_hbd_model_on_grid

Fit a homogenous birth-death model on a discrete time grid.
fit_bm_model

Fit a Brownian Motion model for multivariate trait evolution.
castor-package

Efficient computations on large phylogenetic trees.
asr_independent_contrasts

Ancestral state reconstruction via phylogenetic independent contrasts.
clade_densities

Estimate the density of tips & nodes in a timetree.
asr_subtree_averaging

Ancestral state reconstruction via subtree averaging.
collapse_tree_at_resolution

Collapse nodes of a tree at a phylogenetic resolution.
asr_empirical_probabilities

Empirical ancestral state probabilities.
asr_squared_change_parsimony

Squared-change parsimony ancestral state reconstruction.
asr_max_parsimony

Maximum-parsimony ancestral state reconstruction.
asr_mk_model

Ancestral state reconstruction with Mk models and rerooting
collapse_monofurcations

Remove monofurcations from a tree.