Add mutations to the given tree sequence

ts_mutate(ts, mutation_rate, random_seed = NULL, keep_existing = TRUE)

Arguments

ts

Object of the type pyslim.SlimTreeSequence

mutation_rate

Mutation rate used by msprime to simulate mutations

random_seed

Random seed passed to msprime's mutate method

keep_existing

Keep existing mutations?

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