Annotate many variants in one request
Arguments
- ids
MyVariant ids. Build them with
myvariant_id().- assembly
The genome assembly. Changing this from
"hg38"only makes sense for genuinely GRCh37 coordinates.- fields
The MyVariant fields to request.
- ...
Passed to
biohttp::post_json(), for examplethrottle.
Value
A biohttp envelope whose data is a tibble with one row per entry in
ids, in the same order. See myvariant_parse_batch().
assembly is not optional
assembly = "hg38" is always sent. Without it MyVariant answers 200 with
notfound for every GRCh38 variant, so a whole cohort disappears with no
error anywhere. There is no way to omit it through this function, and that is
deliberate.
Examples
if (FALSE) { # \dontrun{
ids <- myvariant_id("17", 7676154, "G", "C")
biohttp::body_or_null(myvariant_variants(ids))
} # }