Package: cladoRcpp 0.15.1

cladoRcpp: C++ Implementations of Phylogenetic Cladogenesis Calculations

Various cladogenesis-related calculations that are slow in pure R are implemented in C++ with Rcpp. These include the calculation of the probability of various scenarios for the inheritance of geographic range at the divergence events on a phylogenetic tree, and other calculations necessary for models which are not continuous-time markov chains (CTMC), but where change instead occurs instantaneously at speciation events. Typically these models must assess the probability of every possible combination of (ancestor state, left descendent state, right descendent state). This means that there are up to (# of states)^3 combinations to investigate, and in biogeographical models, there can easily be hundreds of states, so calculation time becomes an issue. C++ implementation plus clever tricks (many combinations can be eliminated a priori) can greatly speed the computation time over naive R implementations. CITATION INFO: This package is the result of my Ph.D. research, please cite the package if you use it! Type: citation(package="cladoRcpp") to get the citation information.

Authors:Nicholas J. Matzke [aut, cre, cph]

cladoRcpp_0.15.1.tar.gz
cladoRcpp_0.15.1.zip(r-4.7-x86_64)cladoRcpp_0.15.1.zip(r-4.7-arm64)cladoRcpp_0.15.1.zip(r-4.6-x86_64)cladoRcpp_0.15.1.zip(r-4.6-arm64)cladoRcpp_0.15.1.zip(r-4.5-x86_64)
cladoRcpp_0.15.1.tgz(r-4.6-x86_64)cladoRcpp_0.15.1.tgz(r-4.6-arm64)cladoRcpp_0.15.1.tgz(r-4.5-x86_64)cladoRcpp_0.15.1.tgz(r-4.5-arm64)
cladoRcpp_0.15.1.tar.gz(r-4.7-arm64)cladoRcpp_0.15.1.tar.gz(r-4.7-x86_64)cladoRcpp_0.15.1.tar.gz(r-4.6-arm64)cladoRcpp_0.15.1.tar.gz(r-4.6-x86_64)
cladoRcpp_0.15.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
cladoRcpp/json (API)

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

Bug tracker:https://github.com/nmatzke/cladorcpp/issues

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

On CRAN:

Conda:

cpp

4.78 score 1 packages 402 scripts 914 downloads 16 exports 2 dependencies

Last updated from:bc5198f075. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK125
linux-devel-x86_64OK119
source / vignettesOK198
linux-release-arm64OK111
linux-release-x86_64OK115
macos-release-arm64OK174
macos-release-x86_64OK374
macos-oldrel-arm64OK161
macos-oldrel-x86_64OK466
windows-devel-arm64OK340
windows-devel-x86_64OK138
windows-release-arm64OK332
windows-release-x86_64OK96
windows-oldrel-x86_64OK92
wasm-releaseOK117

Exports:areas_list_to_states_list_oldnumstates_from_numareasrcpp_areas_list_to_states_listrcpp_calc_anclikes_sprcpp_calc_anclikes_sp_COOprobsrcpp_calc_anclikes_sp_COOweights_fasterrcpp_calc_anclikes_sp_prebytercpp_calc_anclikes_sp_rowsumsrcpp_calc_anclikes_sp_using_COOprobsrcpp_calc_rowsums_for_COOweights_columnarrcpp_calc_splitlikes_using_COOweights_columnarRcpp_combn_zerostartrcpp_convolvercpp_mult2probvectrcpp_states_list_to_DEmatstrsplit3

Dependencies:RcppRcppArmadillo

Readme and manuals

Help Manual

Help pageTopics
Phylogenetic probability calculations using RcppcladoRcpp-package cladorcpp-package cladoRcpp cladorcpp
Convert a list of areas to a list of geographic ranges (states); original R versionareas_list_to_states_list_old
Calculate the number of states, given a certain number of areasnumstates_from_numareas
Make a list of 0-based indices of possible combinations of input areasrcpp_areas_list_to_states_list
Calculate probability of ancestral states below a speciation event, given probabilities of the states on each descendant branchrcpp_calc_anclikes_sp
Faster version of rcpp_calc_anclikes_sprcpp_calc_anclikes_sp_COOprobs
Even faster version of rcpp_calc_anclikes_sprcpp_calc_anclikes_sp_COOweights_faster
Calculate probability of ancestral states below a speciation event, given probabilities of the states on each descendant branchrcpp_calc_anclikes_sp_prebyte
Calculate the number of cladogenesis events of nonzero probability for each ancestral statercpp_calc_anclikes_sp_rowsums
Calculate ancestral likelihoods given a COO-like probability matrixrcpp_calc_anclikes_sp_using_COOprobs
Calculate sum of weights for each ancestral statercpp_calc_rowsums_for_COOweights_columnar
Calculate the split likelihoods using 'COO_weights_columnar'rcpp_calc_splitlikes_using_COOweights_columnar
Get all the combinations of descendent state pairs, in 0-based index formRcpp_combn_zerostart
Run C++ version of convolve(x,y, conj=TRUE, type="open")rcpp_convolve
Get the product of multiplying each pair of values in a vector (cross-product)rcpp_mult2probvect
C++ conversion of a states list to a dispersal-extinction matrix (DEmat)rcpp_states_list_to_DEmat
String splitting shortcutstrsplit3