Learn R Programming

XYomics (version 0.1.2)

convertdf2enr: Convert Data Frame to enrichResult

Description

Converts a data frame containing enrichment results into a clusterProfiler enrichResult object. Assumes the data frame has columns: ID, geneID, pvalue, and optionally p.adjust.

Usage

convertdf2enr(df, pvalueCutoff = 0.1, pAdjustMethod = "BH")

Value

An enrichResult object compatible with clusterProfiler plotting functions.

Arguments

df

Data frame containing enrichment results.

pvalueCutoff

Numeric. P-value cutoff for the enrichment object (default: 0.1).

pAdjustMethod

Character string specifying the p-value adjustment method (default: "BH").