Learn R Programming

IDConverter (version 0.3.4)

convert_hm_genes: Convert Human/Mouse Gene IDs between Ensembl and Hugo Symbol System

Description

Convert Human/Mouse Gene IDs between Ensembl and Hugo Symbol System

Usage

convert_hm_genes(
  IDs,
  type = c("ensembl", "symbol"),
  genome_build = c("hg38", "hg19", "mm10", "mm9"),
  multiple = FALSE
)

Value

a vector or a data.table.

Arguments

IDs

a character vector to convert.

type

type of input IDs, could be 'ensembl' or 'symbol'.

genome_build

reference genome build.

multiple

if TRUE, return a data.table instead of a string vector, so multiple identifier mappings can be kept.

Examples

Run this code
# \donttest{
convert_hm_genes("ENSG00000243485")
convert_hm_genes("ENSG00000243485", multiple = TRUE)
convert_hm_genes(c("TP53", "KRAS", "EGFR", "MYC"), type = "symbol")
# }

Run the code above in your browser using DataLab