View source: R/tree-sequences.R
ts_metadata | R Documentation |
Extract list with tree sequence metadata saved by SLiM
ts_metadata(ts)
ts |
Tree sequence object of the class |
List of metadata fields extracted from the tree-sequence object
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.