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.
Value
Named list of character vectors.
Each element contains OMIM identifiers for the corresponding gene.
Genes with no OMIM mapping return NA_character_.
Examples
x <- mapGenesToOmim(genes = c("NFE2L2", "BRCA1", "TP53"))
#> → Importing HGNC complete set.
#> → Importing /private/var/folders/pt/1g5629f1699dfjwdfh32q50m0000gn/T/koopa-r-docs-build-l3dklp41/home/.cache/R/AcidGenomes/BiocFileCache/a36529a1d43e_hgnc_complete_set.txt using base::`read.table()`.
#> Error in stop(simpleError(message = msg, call = if (p) { sys.call(p)})): Assert failure.
#> [1] areSetEqual(names(expected), names(object)) is not TRUE.
#> Cause: `character` and `character` have different numbers of elements (52
#> versus 51).
print(x)
#> Error: object 'x' not found