Skip to contents

get_snps_within_region()

Usage

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

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)

Value

the variants within the requested region

Examples

if (FALSE) { # \dontrun{
get_snps_within_region(CD_UKBB, "chr16:50593587-50834041")
} # }