RenameGO: Convert GO/Reactome Pathway IDs to Full Names

View source: R/GeneSetAnalysisGO.R

RenameGOR Documentation

Convert GO/Reactome Pathway IDs to Full Names

Description

Converts GO or Reactome IDs to their respective full geneset or pathway names.

Usage

RenameGO(term, add_id = T, add_n_gene = T, spe = getOption("spe"))

RenameReactome(term, add_id = T, add_n_gene = T, spe = getOption("spe"))

Arguments

term

GO/Reactome IDs, which can be either a character vector or a matrix (with IDs in rownames).

add_id

Logical: Should the IDs be displayed? Default: TRUE.

add_n_gene

Logical: Should the number of genes in each geneset be displayed? Default: TRUE.

spe

Species, either 'human' or 'mouse'. Default: getOption("spe").

Details

For more examples, see GeneSetAnalysis().

Value

Returns either a character vector or a matrix, depending on the input.

Examples

library(SeuratExtend)

RenameGO(c("GO:0002376","GO:0050896"), spe = "human")

RenameReactome(c("R-HSA-109582","R-HSA-112316"), spe = "human")

huayc09/SeuratExtend documentation built on July 15, 2024, 6:22 p.m.