getVariant {myvariant} | R Documentation |
This is a wrapper for GET query of "/variant/<hgvsid>" service.
getVariant(hgvsid, fields=NULL, ..., return.as=c("records", "text"), myvariant)
hgvsid |
HGVS id |
fields |
Fields to return, a list of a comma-sep string. If fields=="all", all available fields are returned. |
... |
|
return.as |
"records"" (list), "text" (JSON). |
myvariant |
A MyVariant object that describes how to connect to data resources. See |
returns a variant object containing the queried annotations
http://docs.myvariant.info/en/latest/doc/variant_annotation_service.html#get-request http://docs.myvariant.info/en/latest/doc/variant_annotation_service.html#query-parameters
getVariants
queryVariant
queryVariants
## return the variant object for the given HGVS id getVariant("chr7:g.55241707G>T") ## customize fields getVariant("chr7:g.55241707G>T", fields=c("dbnsfp.cadd.phred", "dbnsfp.polyphen2"), return.as="text")