Skip to contents

Batched through GraphQL aliases, so a gene list costs a handful of requests rather than one per gene. Chunked at chunk_size to stay under gnomAD's query cost cap of 25. See GNOMAD_CHUNK.

Usage

gnomad_constraints(
  symbols,
  reference_genome = "GRCh38",
  chunk_size = GNOMAD_CHUNK,
  ...
)

Arguments

symbols

Gene symbols.

reference_genome

"GRCh38" or "GRCh37".

chunk_size

Genes per request.

...

Passed to biohttp::post_json(), for example throttle.

Value

A biohttp envelope whose data is a tibble with one row per entry in symbols, in the same order.

Examples

if (FALSE) { # \dontrun{
biohttp::body_or_null(gnomad_constraints(c("BRAF", "TP53", "EGFR")))
} # }