term2id: Map Reactome/GO term to ID

View source: R/utility_functions.R

term2idR Documentation

Map Reactome/GO term to ID

Description

Map Reactome/GO term to ID

Usage

term2id(term, db = "Reactome", species = NULL)

Arguments

term

Reactome/GO term

db

Database to use for mapping. One of:

  • "Reactome" - Default

  • "GO"

species

Character specifying species. If specified, one of:

  • "Hs"

  • "Mm"

Value

Reactome/GO ID

Author(s)

Nicholas Mikolajewicz

Examples


# map GO term to GO id
id <- term2id(term, db = "GO", species = "Hs")

# get geneset for specified GO id (returns character of genes)
gene.set <- id2geneset(id, "Hs")


NMikolajewicz/scMiko documentation built on June 28, 2023, 1:41 p.m.