View source: R/get_window_limits.R
get_window_limits | R Documentation |
Get genomic window size limits for a locus plot.
get_window_limits(
dat,
index_as_center = TRUE,
zoom = NULL,
genomic_units = "Mb",
verbose = TRUE
)
dat |
Data. |
index_as_center |
Use the index/lead SNP (the SNP with the smallest P-value) as the center point for the window. |
zoom |
Zoom into the center of the locus when plotting (without editing the fine-mapping results file). You can provide either:
You can pass a list of window sizes (e.g. |
genomic_units |
Which genomic units to return window limits in. |
verbose |
Print messages. |
Other plot:
name_filter_convert()
dat <- echodata::BST1
xlims <- get_window_limits(dat = dat, zoom = 50000)
xlims <- get_window_limits(dat = dat, zoom = "all")
xlims <- get_window_limits(dat = dat, zoom = "5x")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.