This function performs KO enrichment analysis using the `clusterProfiler` package.
KO_enrich(
ko_stat,
padj_threshold = 0.05,
logFC_threshold = NULL,
add_mini = NULL,
p.adjust.method = "BH",
type = c("pathway", "module")[1],
feature = "ko",
modulelist = NULL,
verbose = TRUE
)
as.enrich_res(gsea_res)
ko_stat dataframe from ko.test
.
p.adjust threshold to determine whether a feature significant or not. p.adjust < padj_threshold, default: 0.05
logFC threshold to determine whether a feature significant or not. abs(logFC)>logFC_threshold, default: NULL
add_mini when calculate the logFC. e.g (10+0.1)/(0+0.1), default 0.05*min(avg_abundance)
The method used for p-value adjustment (default: "BH").
"pathway" or "module" for default KOlist_file.
one of "ko", "gene", "compound"
NULL or customized modulelist dataframe, must contain "id","K_num","KOs","Description" columns. Take the `KOlist` as example, use custom_modulelist
.
logical
gsea_res from KO_gsea
A data frame containing the enrichment results.
enrich_res object