Learn R Programming

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

castor (version 1.7.1)

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,460

Version

1.7.1

License

GPL (>= 2)

Maintainer

Stilianos Louca

Last Published

January 5th, 2022

Functions in castor (1.7.1)

asr_squared_change_parsimony

Squared-change parsimony ancestral state reconstruction.
castor-package

Efficient computations on large phylogenetic trees.
collapse_monofurcations

Remove monofurcations from a tree.
collapse_tree_at_resolution

Collapse nodes of a tree at a phylogenetic resolution.
asr_independent_contrasts

Ancestral state reconstruction via phylogenetic independent contrasts.
congruent_divergence_times

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

Empirical ancestral state probabilities.
asr_subtree_averaging

Ancestral state reconstruction via subtree averaging.
asr_mk_model

Ancestral state reconstruction with Mk models and rerooting
asr_max_parsimony

Maximum-parsimony ancestral state reconstruction.
count_transitions_between_clades

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

Calculate phylogenetic depth of a binary trait using the consenTRAIT metric.
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.
extend_tree_to_height

Extend a rooted tree up to a specific height.
fit_and_compare_bm_models

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

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

Count descending tips.
exponentiate_matrix

Exponentiate a matrix.
find_farthest_tips

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

Calculate phylogenetic depth of a discrete trait.
count_lineages_through_time

Count number of lineages through time (LTT).
date_tree_red

Date a tree based on relative evolutionary divergences.
extract_fasttree_constraints

Extract tree constraints in FastTree alignment format.
fit_and_compare_sbm_const

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

Fit a Brownian Motion model for multivariate trait evolution.
evaluate_spline

Evaluate a scalar spline at arbitrary locations.
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.
fit_hbd_model_on_grid

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