get_snps_within_region: Get SNPs/variants within region
Description
get_snps_within_region()
Usage
get_snps_within_region(
df,
region,
chr = NULL,
xmin = NULL,
xmax = NULL,
keep_chr = NULL
)
Value
the variants within the requested region
Arguments
- 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)
Examples
Run this codeif (FALSE) {
get_snps_within_region(CD_UKBB, "chr16:50593587-50834041")
}
Run the code above in your browser using DataLab