filterGoEnrichment: Filter GO Enrichment Results

View source: R/Seurat.Utils.Visualization.R

filterGoEnrichmentR Documentation

Filter GO Enrichment Results

Description

This function filters GO enrichment results based on adjusted p-value and q-value cutoffs, and retrieves the descriptions of the filtered results.

Usage

filterGoEnrichment(
  df.enrichments,
  pvalueCutoff = NULL,
  qvalueCutoff = NULL,
  colname = "Description"
)

Arguments

df.enrichments

An object of class enrichResult containing the GO enrichment results.

pvalueCutoff

Numeric. The p-value cutoff for filtering the results. Default: NULL, meaning that the default cutoff of the input object is used. It is stored in df.enrichments@pvalueCutoff.

qvalueCutoff

Numeric. The q-value cutoff for filtering the results. Default: NULL, meaning that the default cutoff of the input object is used. It is stored in df.enrichments@qvalueCutoff.

colname

Character. The name of the column containing the GO-term names, or else.

Value

A character vector of descriptions of the filtered GO enrichment results.

Examples

# Assuming GO.Enriched.DL.Ctrl is an object of class `enrichResult` created by clusterprofiler or equivalent
descriptions <- filterGoEnrichment(GO.Enriched.DL.Ctrl)
print(descriptions)


vertesy/Seurat.utils documentation built on Dec. 4, 2024, 5:20 p.m.