get_snps_within_region: Get SNPs/variants within region

Description Usage Arguments Value Examples

View source: R/setters_and_getters.R

Description

get_snps_within_region()

Usage

1
get_snps_within_region(df, region, chr = NULL, xmin = NULL, xmax = NULL)

Arguments

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

Value

the variants within the requested region

Examples

1
2
3
4
## Not run: 
get_snps_within_region(dat, "chr16:50593587-50834041")

## End(Not run)

wuxi-nextcode/topR documentation built on Dec. 23, 2021, 6:13 p.m.