Learn R Programming

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

castor (version 1.6.4)

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.6.4

License

GPL (>= 2)

Maintainer

Stilianos Louca

Last Published

October 26th, 2020

Functions in castor (1.6.4)

asr_independent_contrasts

Ancestral state reconstruction via phylogenetic independent contrasts.
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.
castor-package

Efficient computations on large phylogenetic trees.
congruent_divergence_times

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

Remove monofurcations from a tree.
asr_mk_model

Ancestral state reconstruction with Mk models and rerooting
evaluate_spline

Evaluate a scalar spline at arbitrary locations.
asr_max_parsimony

Maximum-parsimony ancestral state reconstruction.
exponentiate_matrix

Exponentiate a matrix.
count_tips_per_node

Count descending tips.
count_lineages_through_time

Count number of lineages through time (LTT).
count_transitions_between_clades

Count the number of state transitions between tips or nodes.
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.
extend_tree_to_height

Extend a rooted tree up to a specific height.
find_nearest_tips

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

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

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

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

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

Fit pulled speciation rates of birth-death models on a time grid.
fit_hbd_pdr_parametric

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

Find the root of a tree.
find_root_of_monophyletic_tips

Find the node or tip that, as root, would make a set of target tips monophyletic.
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.