R/10-merge_pathways.R
merge_pathways_internal.Rd
This function merges pathway enrichment results obtained through various databases (GO, KEGG, Reactome). It applies similarity measures to find closely related pathways and categorizes them into modules.
A required object containing results from the enrich_pathway
function.
Numeric, p-adjusted value cutoff for filtering enriched pathways.
Numeric, count cutoff for filtering enriched pathways.
Character vector, the database from which the enrichment results were obtained ('go', 'kegg', 'reactome').
Numeric, similarity cutoff for clustering pathways.
Character, method for calculating term similarity.
Character, directory to save intermediate and final results.
Logical, if TRUE the results will be saved to local disk.
A list containing graph_data
, module_result
, and result_with_module
.
if (FALSE) {
# Load pathway results obtained through `enrich_pathway` function
pathway_results <- load_pathway_results("path/to/results")
# Merge pathways and find modules
merged_results <- merge_pathways_internal(pathway_result = pathway_results)
}