Skip to contents

Pure. gnomAD's variant query takes chrom-pos-ref-alt, with no chr prefix and the alleles in upper case. Vectorised over its arguments.

Usage

gnomad_variant_id(chrom, pos, ref, alt)

Arguments

chrom

A chromosome, with or without a chr prefix.

pos

A 1-based position.

ref, alt

Reference and alternate alleles.

Value

A character vector of ids such as "1-55516888-G-GA".

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

gnomad_variant_id("chr1", 55516888, "g", "ga")
#> [1] "1-55516888-G-GA"