Looked up by rsID, which is what gnomAD's variant query takes.
Arguments
- rsid
A dbSNP rsID.
- dataset
The gnomAD dataset.
- ...
Passed to
biohttp::post_json().
Value
A biohttp envelope whose data is the list described in
gnomad_parse_frequency().
An rsID does not identify an allele
7:g.140753336A>T and 7:g.140753336A>C both map to rs113488022. Any
lookup routed through an rsID is therefore lossy, and it fails silently
while looking entirely plausible. The canonical key is
(assembly, chromosome, position, ref, alt).
This function is faithful to what gnomAD's variant query accepts, so the limitation is gnomAD's rather than this package's. Know about it before you rely on the answer for a multi-allelic site.
Examples
if (FALSE) { # \dontrun{
biohttp::body_or_null(gnomad_frequency("rs113488022"))
} # }