Skip to contents

Returns a named character vector (or list when multiple OMIM IDs exist per gene) mapping Ensembl gene IDs or HGNC gene names to OMIM identifiers, using HGNC curated data.

Usage

mapGenesToOmim(genes, hgnc = NULL)

Arguments

genes

character. Human gene names (symbols) or Ensembl gene IDs.

hgnc

Hgnc or NULL. If NULL, HGNC annotations will be downloaded automatically.

Value

Named list of character vectors. Each element contains OMIM identifiers for the corresponding gene. Genes with no OMIM mapping return NA_character_.

Note

Updated 2026-05-31.

Examples

x <- mapGenesToOmim(genes = c("NFE2L2", "BRCA1", "TP53"))
#> → Importing HGNC complete set.
#> Error in vapply(X = X, FUN = FUN, FUN.VALUE = logical(1L), ..., USE.NAMES = useNames): formal argument "USE.NAMES" matched by multiple actual arguments
print(x)
#> Error: object 'x' not found