Usage
gnomad_parse_frequency(body, dataset = GNOMAD_DATASET)
Arguments
- body
A parsed gnomAD GraphQL response body.
- dataset
The dataset that was queried, carried through to the result.
Value
A list of variant_id, dataset, exome, genome, and
populations, or NULL when the body carries no variant.
Examples
body <- list(data = list(variant = list(
variant_id = "7-140753336-A-T",
exome = list(af = 0.001, ac = 2, an = 2000)
)))
gnomad_parse_frequency(body)$variant_id
#> [1] "7-140753336-A-T"