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

View source: R/common_human_and_mouse_ids.R

convert_hm_genesR Documentation

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
)

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.

Value

a vector or a data.table.

Examples


convert_hm_genes("ENSG00000243485")
convert_hm_genes("ENSG00000243485", multiple = TRUE)
convert_hm_genes(c("TP53", "KRAS", "EGFR", "MYC"), type = "symbol")


IDConverter documentation built on March 31, 2023, 10:25 p.m.