View source: R/tree-sequences.R
ts_recapitate | R Documentation |
Recapitate the tree sequence
ts_recapitate(
ts,
recombination_rate,
Ne = NULL,
demography = NULL,
random_seed = NULL
)
ts |
Tree sequence object loaded by |
recombination_rate |
A constant value of the recombination rate |
Ne |
Effective population size during the recapitation process |
demography |
Ancestral demography to be passed internally to
|
random_seed |
Random seed passed to pyslim's |
Tree-sequence object of the class slendr_ts
, which serves as
an interface point for the Python module tskit using slendr functions with
the ts_
prefix.
ts_nodes
for extracting useful information about
individuals, nodes, coalescent times and geospatial locations of nodes on a
map
init_env()
# load an example model with an already simulated tree sequence
slendr_ts <- system.file("extdata/models/introgression_slim.trees", package = "slendr")
model <- read_model(path = system.file("extdata/models/introgression", package = "slendr"))
ts <- ts_load(slendr_ts, model) %>%
ts_recapitate(recombination_rate = 1e-8, Ne = 10000, random_seed = 42)
ts
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.