'R' Access to the 'tskit C' API

'Tskit' enables efficient storage, manipulation, and analysis of ancestral recombination graphs (ARGs) using succinct tree sequence encoding. The tree sequence encoding of an ARG is described in Wong et al. (2024) , while `tskit` project is described in Jeffrey et al. (2026) . See also < https://tskit.dev> for project news, documentation, and tutorials. 'Tskit' provides 'Python', 'C', and 'Rust' application programming interfaces (APIs). The 'Python' API can be called from 'R' via the 'reticulate' package to load and analyse tree sequences as described at < https://tskit.dev/tutorials/tskitr.html>. 'RcppTskit' provides 'R' access to the 'tskit C' API for cases where the 'reticulate' option is not optimal; for example, high-performance or low-level work with tree sequences. Currently, 'RcppTskit' provides a limited set of 'R' functions because the 'Python' API and 'reticulate' already covers most needs.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("RcppTskit")

0.2.0 by Gregor Gorjanc, 8 months ago


https://github.com/HighlanderLab/RcppTskit


Report a bug at https://github.com/HighlanderLab/RcppTskit/issues


Browse source code at https://github.com/cran/RcppTskit


Authors: Gregor Gorjanc [aut, cre, cph] (ORCID: , Tskit Developers [cph] (Authors of included tskit C library)


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports methods, R6, Rcpp, reticulate

Suggests covr, knitr, quarto, spelling, testthat

Linking to Rcpp


See at CRAN