ts_metadata {slendr} | R Documentation |
Extract list with tree sequence metadata saved by SLiM
Description
Extract list with tree sequence metadata saved by SLiM
Usage
ts_metadata(ts)
Arguments
ts |
Tree sequence object of the class |
Value
List of metadata fields extracted from the tree-sequence object
Examples
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"))
# load the tree-sequence object from disk
ts <- ts_load(slendr_ts, model)
# extract the list of metadata information from the tree sequence
ts_metadata(ts)
[Package slendr version 0.9.1 Index]