| queryHaploreg | R Documentation | 
This function queries HaploReg web-based tool and returns results.
queryHaploreg(
  query = NULL,
  file = NULL,
  study = NULL,
  ldThresh = 0.8,
  ldPop = "EUR",
  epi = "vanilla",
  cons = "siphy",
  genetypes = "gencode",
  url = Haploreg.settings[["base.url"]],
  timeout = 100,
  encoding = "UTF-8",
  querySNP = FALSE,
  fields = NULL,
  verbose = FALSE
)
| query | Query (a vector of rsIDs). | 
| file | A text file (one refSNP ID per line). | 
| study | A particular study. See function  | 
| ldThresh | LD threshold, r2 (select NA to only show query variants). Default: 0.8. | 
| ldPop | 1000G Phase 1 population for LD calculation. Can be: "AFR", "AMR", "ASN". Default: "EUR". | 
| epi | Source for epigenomes. 
Possible values:  | 
| cons | Mammalian conservation algorithm. 
Possible values:  | 
| genetypes | Show position relative to.
Possible values:  | 
| url | HaploReg url address. Default: <https://pubs.broadinstitute.org/mammals/haploreg/haploreg.php> | 
| timeout | A  | 
| encoding | sets the  | 
| querySNP | A flag indicating to return query SNPs only. 
Default:  | 
| fields | A set of fields to extract. Refer to the package vignette 
for available fields. Default:  | 
| verbose | Verbosing output. Default: FALSE. | 
A data frame (table) with results similar to HaploReg uses.
library(haploR)
data <- queryHaploreg(c("rs10048158","rs4791078"))
head(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.