queryVariant: Return the query result.

Description Usage Arguments Value References See Also Examples

Description

This is a wrapper for GET query of "/query?q=<query>" service.

Usage

1
2
queryVariant(q, ..., return.as=c("DataFrame", "records", "text"), 
                     myvariant)

Arguments

q

query term(s).

...

Commonly queried fields include fields, size as well as several other fields. View available fields by calling ?metadata.

return.as

"DataFrame" (default), "records" (list), or "text" (JSON).

myvariant

A MyVariant object that describes how to connect to data resources. See MyVariant-class. If missing, default object will be used that accesses the main MyVariant.info portal. Default is recommended.

Value

returns a variant object (DataFrame, list, or JSON text) containing the queried annotations

References

http://docs.myvariant.info/en/latest/doc/variant_query_service.html#get-request http://docs.myvariant.info/en/latest/doc/variant_query_service.html#query-syntax

See Also

queryVariants getVariant getVariants

Examples

1
2
3
4
## return the query result
queryVariant("dbnsfp.variantname:BRCA2")

queryVariant("chr1:1-1000000")

myvariant documentation built on Nov. 8, 2020, 5:32 p.m.