Skip to contents

Ensembl-to-NCBI gene identifier mappings

Usage

EnsemblToNcbi(object, ...)

NcbiToEnsembl(object, ...)

# S4 method for RangedSummarizedExperiment
EnsemblToNcbi(object, ...)

Arguments

object

Object.

...

Additional arguments.

Value

EnsemblToNcbi.

Note

Updated 2023-04-27.

Examples

suppressPackageStartupMessages(library(SummarizedExperiment))
data(RangedSummarizedExperiment, package = "AcidTest")

## SummarizedExperiment ====
object <- RangedSummarizedExperiment
rowRanges(object) <- as(rowRanges(object), "EnsemblGenes")
x <- EnsemblToNcbi(object)
#> → Checking mappings against curated HGNC metadata.
#> → Importing HGNC complete set.
#> → Importing /Users/mike/.cache/R/AcidGenomes/BiocFileCache/886a796ea9b4_hgnc_complete_set.txt using base::`readLines()`.
#> → Importing text connection with base::`read.table()`.
#> → Correcting 1 mapping with curated metadata.
print(x)
#> EnsemblToNcbi with 496 rows and 2 columns
#>              ensemblGeneId ncbiGeneId
#>                <character>  <integer>
#> gene001 ENSG00000000003.15       7105
#> gene002  ENSG00000000005.6      64102
#> gene003 ENSG00000000419.12       8813
#> gene004 ENSG00000000457.14      57147
#> gene005 ENSG00000000460.17      55732
#> ...                    ...        ...
#> gene496 ENSG00000032742.17       8100
#> gene497 ENSG00000033011.13      56052
#> gene498 ENSG00000033030.15      55596
#> gene499  ENSG00000033050.9      10061
#> gene500 ENSG00000033100.16      54480