This function exports the results of functional module analysis to an Excel file. The function takes an object of class functional_module and writes multiple sheets corresponding to various types of enrichment results.

export_functional_module(object, path = "result")

Arguments

object

An object of class functional_module. This object should contain enrichment results and other relevant data.

path

The directory path where the resulting Excel file will be saved. Defaults to "result".

Value

Saves an Excel file to the specified path. The Excel file contains sheets for GO, KEGG, and Reactome enrichment results for pathways and modules, as well as enriched functional modules.

Author

Xiaotao Shen, shenxt1990@outloo.com