Map gene names to Ensembl identifiers
Arguments
- genes
Gene names (e.g.
"TUT4").- organism
character(1). Full Latin organism name (e.g."Homo sapiens").- ignoreCase
logical(1). Enable case-insensitive matching.- hgnc
Hgncobject. Supported for Homo sapiens genome only. Snapshot of HGNC annotations. Passes tomapGeneNamesToHgncinternally.- ncbi
NcbiGeneInfoobject. Snapshot of NCBI annotations. Passes tomapGeneNamesToNcbiinternally.
Details
Internally matches using mapGeneNamesToHgnc (Homo sapiens only)
or mapGeneNamesToNcbi (all other organisms), so we can support gene synonym
matching.
Examples
## Homo sapiens.
x <- mapGeneNamesToEnsembl(
genes = c("TUT4", "ZCCHC11", "TENT3A"),
organism = "Homo sapiens"
)
#> → 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
## Mus musculus
x <- mapGeneNamesToEnsembl(
genes = c("Nfe2l2", "Nrf2"),
organism = "Mus musculus"
)
#> → Downloading Mus musculus gene info from NCBI at <https://ftp.ncbi.nlm.nih.gov/gene/DATA/GENE_INFO/Mammalia/Mus_musculus.gene_info.gz>.
#> Error in h(simpleError(msg, call)): error in evaluating the argument 'con' in selecting a method for function 'import': formal argument "USE.NAMES" matched by multiple actual arguments
print(x)
#> Error: object 'x' not found