Description Usage Arguments Value References See Also Examples
This is a wrapper for GET query of "/variant/<hgvsid>" service.
1 2 | 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
1 2 3 4 5 6 7 | ## 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.