getSnp,CellBaseR-method {cellbaseR} | R Documentation |
A method to query genomic variation data from Cellbase web services.
## S4 method for signature 'CellBaseR' getSnp(object, ids, resource, param = NULL)
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 |
.
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
a dataframe with the results of the query
https://github.com/opencb/cellbase/wiki and the RESTful API documentation http://bioinfo.hpc.cam.ac.uk/cellbase/webservices/
cb <- CellBaseR() res <- getSnp(object=cb, ids="rs6025", resource="info")