Learn R Programming

LDlinkR (version 1.1.2)

SNPclip: Prune a list of variants by linkage disequilibrium.

Description

Prune a list of variants by linkage disequilibrium.

Usage

SNPclip(
  snps,
  pop = "CEU",
  r2_threshold = "0.1",
  maf_threshold = "0.01",
  token = NULL,
  file = FALSE
)

Arguments

snps

a list of between 1 - 5,000 variants, using an rsID or chromosome coordinate (e.g. "chr7:24966446")

pop

a 1000 Genomes Project population, (e.g. YRI or CEU), multiple allowed, default = "CEU"

r2_threshold

LD R2 threshold between 0-1, default = 0.1

maf_threshold

minor allele frequency threshold between 0-1, default = 0.01

token

LDlink provided user token, default = NULL, register for token at https://ldlink.nci.nih.gov/?tab=apiaccess

file

Optional character string naming a path and file for saving results. If file = FALSE, no file will be generated, default = FALSE.

Value

a data frame

Examples

Run this code
# NOT RUN {
SNPclip(c("rs3", "rs4", "rs148890987"), "YRI", "0.1", "0.01",
                    token = Sys.getenv("LDLINK_TOKEN"))
                 
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab