Skip to contents

Map gene names (symbols) to HGNC identifiers

Usage

mapGeneNamesToHgnc(genes, ignoreCase = FALSE, hgnc = NULL)

Arguments

genes

character. Human gene names (e.g. "TUT4").

ignoreCase

logical(1). Perform case-insensitive matching.

hgnc

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

Note

Updated 2025-04-14.

Examples

## Homo sapiens (only).
x <- mapGeneNamesToHgnc(genes = c("TUT4", "ZCCHC11", "TENT3A"))
#> → 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