Learn R Programming

rsnps (version 0.6.0)

annotations: Get all openSNP phenotypes, their variations, and how many users have data available for a given phenotype.

Description

Either return data.frame with all results, or output a list, then call the characteristic by id (parameter = "id") or name (parameter = "characteristic").

Usage

annotations(
  snp = NA,
  output = c("all", "plos", "mendeley", "snpedia", "metadata"),
  ...
)

Value

data.frame of results

Arguments

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

See Also

Other opensnp-fxns: allgensnp(), allphenotypes(), download_users(), fetch_genotypes(), genotypes(), phenotypes_byid(), phenotypes(), users()

Examples

Run this code
if (FALSE) {
# 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")
}

Run the code above in your browser using DataLab