Recapitate the tree sequence

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

## Arguments

ts pyslim.SlimTreeSequence object loaded by ts_load A constant value of the recombination rate Effective population size during the recapitation process 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 passed to pyslim's recapitate method

## Value

pyslim.SlimTreeSequence object of the class slendr_ts

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