removeRootTerm: Remove root term if present in the list of selected terms

View source: R/methodsInternal.R

removeRootTermR Documentation

Remove root term if present in the list of selected terms

Description

Remove root term if present in the list of selected terms

Usage

removeRootTerm(gostResult)

Arguments

gostResult

a data.frame containing the terms retained for the creation of the network.

Value

a data.frame of selected terms without the root term.

Author(s)

Astrid DeschĂȘnes

Examples


## Loading dataset containing result from an enrichment analysis done with
## gprofiler2
data(demoGOST)

## Only retained the WikiPathways results
results <- demoGOST$result[demoGOST$result$source == "WP", ]

## Remove WIKIPATHWAYS root term
enrichViewNet:::removeRootTerm(gostResult=results)



adeschen/gprofiler2cytoscape documentation built on Nov. 4, 2024, 3:16 p.m.