get_snps_within_region()
get_snps_within_region(df, region, chr = NULL, xmin = NULL, xmax = NULL)
df | data frame of association results with the columns CHR and POS |
---|---|
region | string representing the genetic region (e.g chr16:50693587-50734041) |
chr | chromosome (e.g. chr16) |
xmin | include variants with POS larger than xmin |
xmax | include variants with POS smaller than xmax |
the variants within the requested region
if (FALSE) { get_snps_within_region(dat, "chr16:50593587-50834041") }