Learn R Programming

castor (version 1.8.2)

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

Version

1.8.2

License

GPL (>= 2)

Maintainer

Stilianos Louca

Last Published

June 29th, 2024

Functions in castor (1.8.2)

castor-package

Efficient computations on large phylogenetic trees.
asr_subtree_averaging

Ancestral state reconstruction via subtree averaging.
clade_densities

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

Remove monofurcations from a tree.
asr_independent_contrasts

Ancestral state reconstruction via phylogenetic independent contrasts.
asr_max_parsimony

Maximum-parsimony ancestral state reconstruction.
collapse_tree_at_resolution

Collapse nodes of a tree at a phylogenetic resolution.
asr_empirical_probabilities

Empirical ancestral state probabilities.
asr_mk_model

Ancestral state reconstruction with Mk models and rerooting
asr_squared_change_parsimony

Squared-change parsimony ancestral state reconstruction.
consentrait_depth

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

Compute consensus taxonomies across a tree.
count_lineages_through_time

Count number of lineages through time (LTT).
correlate_phylo_geodistances

Correlations between phylogenetic & geographic distances.
date_tree_red

Date a tree based on relative evolutionary divergences.
congruent_divergence_times

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

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

Evaluate a scalar spline at arbitrary locations.
count_tips_per_node

Count descending tips.
expanded_tree_from_jplace

Place queries on a tree from a jplace file.
discrete_trait_depth

Calculate phylogenetic depth of a discrete trait.
count_transitions_between_clades

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

Expected distances traversed by a Spherical Brownian Motion.
find_farthest_tip_pair

Find the two most distant tips in a tree.
extract_tip_radius

Extract a subtree spanning tips within a certain radius.
exponentiate_matrix

Exponentiate a matrix.
extract_fasttree_constraints

Extract tree constraints in FastTree alignment format.
extract_tip_neighborhood

Extract a subtree spanning tips within a certain neighborhood.
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.
extend_tree_to_height

Extend a rooted tree up to a specific height.
find_root_of_monophyletic_tips

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

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

Find the root of a tree.
find_farthest_tips

Find farthest tip to each tip & node 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.
extract_deep_frame

Extract tips representing a tree's deep splits.
fit_hbd_model_parametric

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

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