getSnp-CellBaseR-method: getSnp

Description Usage Arguments Details Value See Also Examples

Description

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

Usage

1
2
## 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

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

cellbaseR documentation built on Nov. 8, 2020, 5:38 p.m.