xQTLanalyze_getSentinelSnp | R Documentation |
Return sentinel snps whose pValue < 5e-8(default) and SNP-to-SNP distance > 1e6 bp.
xQTLanalyze_getSentinelSnp(
gwasDF,
pValueThreshold = 5e-08,
centerRange = 1e+06,
mafThreshold = 0.01,
genomeVersion = "grch38",
grch37To38 = FALSE
)
gwasDF |
A data.frame or a data.table object. Five columns are required (arbitrary column names is supported):
|
pValueThreshold |
Cutoff of gwas p-value. Default: 5e-8 |
centerRange |
SNP-to-SNP distance. Default:1e6 |
mafThreshold |
Cutoff of maf to remove rare variants. |
genomeVersion |
Genome version of input file. "grch37" or "grch38" (default). |
grch37To38 |
TRUE or FALSE, we recommend converting grch37 to grch38, or using a input file of grch38 directly. Package |
A data.table object.
url<-"http://bioinfo.szbl.ac.cn/xQTL_biolinks/xqtl_data/GLGC.txt"
gwasDF <- data.table::fread(url)
gwasDF <- gwasDF[, .(rsid, chr, position, P, maf, beta, se)]
sentinelSnpDF <- xQTLanalyze_getSentinelSnp(gwasDF)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.