get_all_mappings: Get all mappings for GO terms

View source: R/go.R

get_all_mappingsR Documentation

Get all mappings for GO terms

Description

For a vector of GO terms, obtain all of the ancestor or offspring terms.

Usage

get_all_mappings(go_ids, ontologies, verbose = TRUE, direction = "ancestor")

Arguments

go_ids

⁠character vector⁠. GO terms to use in the format GO:1234567.

ontologies

⁠named character vector⁠. Names = go_ids and values = ontologies e.g. BP, CC, or MF.

verbose

logical.

direction

string Either "ancestor" or "offspring".

Value

Returns a ⁠named list⁠ of ⁠character vectors⁠. Names == GO terms and values == vectors containing all ancestor GO terms for the particular input GO term.


CambridgeCentreForProteomics/camprotR documentation built on July 7, 2024, 2:13 a.m.