getSnp,CellBaseR-method {cellbaseR}R Documentation

getSnp

Description

A method to query genomic variation data from Cellbase web services.

Usage

## S4 method for signature 'CellBaseR'
getSnp(object, ids, resource, param = NULL)

Arguments

object

an object of class CellBaseR

ids

a character vector of the ids to be queried, must be a valid rsid, for example 'rs6025'

resource

a character vector to specify the resource to be queried

param

a object of class CellBaseParam specifying additional param for the query

Details

.

This method retrieves known genomic variants (snps) and their annotations including population frequncies from 1k genomes and Exac projects as well as clinical data and various other annotations

Value

a dataframe with the results of the query

See Also

https://github.com/opencb/cellbase/wiki and the RESTful API documentation http://bioinfo.hpc.cam.ac.uk/cellbase/webservices/

Examples

cb <- CellBaseR()
res <- getSnp(object=cb, ids="rs6025", resource="info")

[Package cellbaseR version 1.8.1 Index]