Skip to contents

Pure.

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.

References

Chen et al. (2024). A genomic mutational constraint map using variation in 76,156 human genomes. Nature 625(7993), 92-100. doi:10.1038/s41586-023-06045-0

Service documentation: https://gnomad.broadinstitute.org/

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"