View source: R/setters_and_getters.R
get_snps_within_region | R Documentation |
get_snps_within_region()
get_snps_within_region(
df,
region,
chr = NULL,
xmin = NULL,
xmax = NULL,
keep_chr = NULL
)
df |
data frame of association results with the columns CHR and POS |
region |
A string representing the genetic region (e.g chr16:50693587-50734041) |
chr |
A string, chromosome (e.g. chr16) |
xmin |
An integer, include variants with POS larger than xmin |
xmax |
An integer, include variants with POS smaller than xmax |
keep_chr |
Deprecated: Logical, set to FALSE to remove the "chr" prefix before each chromosome if present (TRUE by default) |
the variants within the requested region
## Not run:
get_snps_within_region(CD_UKBB, "chr16:50593587-50834041")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.