Skip to content

Commit

Permalink
Update ts_tracts() manpage
Browse files Browse the repository at this point in the history
  • Loading branch information
bodkan committed Dec 7, 2023
1 parent 39c55fe commit d09c18d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
9 changes: 5 additions & 4 deletions R/tspop.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,18 @@
#' @examples
#' \dontshow{check_dependencies(python = TRUE, quit = TRUE) # dependencies must be present
#' }
#' init_env()
#' init_env(quiet = TRUE)
#'
#' # load an example model with an already simulated tree sequence
#' slendr_ts <- system.file("extdata/models/introgression_msprime.trees", package = "slendr")
#' model <- read_model(path = system.file("extdata/models/introgression", package = "slendr"))
#'
#' # load the tree-sequence object from disk and add mutations to it
#' ts <- ts_load(slendr_ts, model)
#' # load the tree-sequence object from disk
#' ts <- ts_load(file = slendr_ts, model = model)
#'
#' # extract Neanderthal ancestry tracts (i.e. those corresponding to the
#' # census event at the gene-flow time at 55000 kya)
#' # census event at the gene-flow time at 55000 kya as scheduled by
#' # the simulation which produced the tree sequence)
#' nea_tracts <- ts_tracts(ts, census = 55000, source = "NEA")
#' nea_tracts
#' @export
Expand Down
10 changes: 5 additions & 5 deletions docs/reference/ts_tracts.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions man/ts_tracts.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d09c18d

Please sign in to comment.