cut_GO: Prune the GO Graph Beginning from the Roots

View source: R/ontology_analysis.R

cut_GOR Documentation

Prune the GO Graph Beginning from the Roots

Description

The cut_GO() function takes a character vector of GOIDS as input and removes the terms to a specified level in the DAG.

Usage

cut_GO(GOids, level = 2, startingnodes = c("GO:0008150", "GO:0003674",
  "GO:0005575"))

Arguments

GOids

character vector of GOIDs

level

up to which level the terms should be deleted ? Defaults to 2.

startingnodes

set the starting nodes. The specified level is relative to the starting nodes. The default is set to the ID representing the terms: 'BP', 'MF', 'CC'.

Value

The output is a truncated character vector of the entered GOIDs. The more general terms are removed.


zellerivo/boat documentation built on Jan. 31, 2023, 1:51 a.m.