Description Usage Arguments Value See Also Examples
Either return data.frame with all results, or output a list, then call the charicteristic by id (parameter = "id") or name (parameter = "characteristic").
1 2 3 4 5 | annotations(
snp = NA,
output = c("all", "plos", "mendeley", "snpedia", "metadata"),
...
)
|
snp |
SNP name. |
output |
Name the source or sources you want annotations from (options are: 'plos', 'mendeley', 'snpedia', 'metadata'). 'metadata' gives the metadata for the response. |
... |
Curl options passed on to crul::HttpClient |
data.frame of results
Other opensnp-fxns:
allgensnp()
,
allphenotypes()
,
download_users()
,
fetch_genotypes()
,
genotypes()
,
phenotypes_byid()
,
phenotypes()
,
users()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
# Get all data
## get just the metadata
annotations(snp = 'rs7903146', output = 'metadata')
## just from plos
annotations(snp = 'rs7903146', output = 'plos')
## just from snpedia
annotations(snp = 'rs7903146', output = 'snpedia')
## get all annotations
annotations(snp = 'rs7903146', output = 'all')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.