getVariants: Return the list of variant objects for the given list of HGVS...

Description Usage Arguments Value References See Also Examples

Description

This is a wrapper for POST query of "/variant" service.

Usage

1
2
getVariants(hgvsids, fields=NULL, verbose=NULL, ..., 
          return.as=c("DataFrame", "records", "text"), myvariant)

Arguments

hgvsids

A vector, list, or comm-sep string HGVS ids

fields

A vector of fields to return. If fields=="all", all available fields are returned.

verbose

A logical turning on or off process status messages. Default = TRUE.

...
return.as

"DataFrame" (default), "records" (list), "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_annotation_service.html#batch-queries-via-post http://docs.myvariant.info/en/latest/doc/variant_annotation_service.html#id2

See Also

getVariants queryVariant queryVariants

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## given a list of HGVS ids
vars <- c('chr1:g.866422C>T',
'chr1:g.876664G>A',
'chr1:g.69635G>C',
'chr1:g.69869T>A',
'chr1:g.881918G>A',
'chr1:g.865625G>A',
'chr1:g.879368C>A',
'chr1:g.889226C>T',
'chr1:g.879492C>G',
'chr1:g.879423T>G',
'chr1:g.881602C>T',
'chr1:g.879115C>G',
'chr1:g.69892T>C',
'chr1:g.879381C>T',
'chr1:g.878330C>G')

## Return the list of variant object for the given list of HGVS ids.
df <- getVariants(vars, fields="dbsnp, wellderly")

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