Learn R Programming

rsnps (version 0.0.5)

annotations: Get all 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 charicteristic by id (paramater = "id") or name (paramater = "characteristic").

Usage

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

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.

Value

  • Data.frame of results.

Examples

Run this code
# Get all data
annotations(snp = 'rs7903146', output = 'metadata') # get just the metadata
annotations(snp = 'rs7903146', output = 'plos') # just from plos
annotations(snp = 'rs7903146', output = 'snpedia') # just from snpedia
annotations(snp = 'rs7903146', output = 'all') # get all annotations

Run the code above in your browser using DataLab