Recapitate the tree sequence

ts_recapitate(ts, recomb_rate, Ne, spatial = TRUE, random_seed = NULL)

Arguments

ts

pyslim.SlimTreeSequence object loaded by ts_load

recomb_rate

A constant value of the recombination rate

Ne

Effective population size during the recapitation process

spatial

Should spatial information encoded in the tree sequence data be converted to spatial R data structures? If FALSE, pixel-based raster-dimensions will not be converted to the coordinate reference system implied by the model. If TRUE (default), reprojection of coordinates will be performed. If the model was non-spatial, the value of this parameter is disregarded.

random_seed

Random seed passed to pyslim's recapitate method

Value

pyslim.SlimTreeSequence object of the class slendr_ts

See also

ts_data for extracting useful information about individuals, nodes, coalescent times and geospatial locations of nodes on a map