This function merges pathway enrichment results from multiple databases (GO, KEGG, and Reactome) into a single object. The function takes an object of class "functional_module" and various parameters to filter and compute similarity measures.

merge_pathways(
  object,
  p.adjust.cutoff.go = 0.05,
  p.adjust.cutoff.kegg = 0.05,
  p.adjust.cutoff.reactome = 0.05,
  count.cutoff.go = 5,
  count.cutoff.kegg = 5,
  count.cutoff.reactome = 5,
  sim.cutoff.go = 0.5,
  sim.cutoff.kegg = 0.5,
  sim.cutoff.reactome = 0.5,
  measure.method.go = c("Wang", "Resnik", "Rel", "Jiang", "Lin", "TCSS", "jaccard"),
  measure.method.kegg = c("jaccard"),
  measure.method.reactome = c("jaccard"),
  path = "result",
  save_to_local = FALSE
)

Arguments

object

An object of class "functional_module", typically a result from enrich_pathway function.

p.adjust.cutoff.go

Adjusted p-value cutoff for GO database. Default is 0.05.

p.adjust.cutoff.kegg

Adjusted p-value cutoff for KEGG database. Default is 0.05.

p.adjust.cutoff.reactome

Adjusted p-value cutoff for Reactome database. Default is 0.05.

count.cutoff.go

Count cutoff for GO database. Default is 5.

count.cutoff.kegg

Count cutoff for KEGG database. Default is 5.

count.cutoff.reactome

Count cutoff for Reactome database. Default is 5.

sim.cutoff.go

Similarity cutoff for GO database. Default is 0.5.

sim.cutoff.kegg

Similarity cutoff for KEGG database. Default is 0.5.

sim.cutoff.reactome

Similarity cutoff for Reactome database. Default is 0.5.

measure.method.go

A character vector specifying the similarity measure method for GO. Choices are "Wang", "Resnik", "Rel", "Jiang", "Lin", "TCSS", "jaccard". Default is "Wang".

measure.method.kegg

A character vector specifying the similarity measure method for KEGG. Default is "jaccard".

measure.method.reactome

A character vector specifying the similarity measure method for Reactome. Default is "jaccard".

path

Directory path to save the results. Default is "result".

save_to_local

Logical, if TRUE the results will be saved to local disk.

Value

An object of class "functional_module" with slots for merged pathways from each database.

Author

Xiaotao Shen shenxt1990@outlook.com