Build GSEA Report
build_create_gsea_report.Rd
Generates an HTML report for Gene Set Enrichment Analysis (GSEA) based on provided plot data, header information, and other content. The report includes sections for each level of clustered hits, along with a table of contents and various plots.
Usage
build_create_gsea_report(
header_section,
plots,
plots_sizes,
level_headers_info,
report_info,
output_file_path
)
Arguments
- header_section
A string containing the HTML content for the header section of the report.
- plots
A list of plots to be included in the report.
- plots_sizes
A list of sizes for the plots.
- level_headers_info
A list containing header information for each level of clustered hits.
- report_info
A named list containg the report info fields. Here used for the email hotkey functionality.
- output_file_path
A string specifying the file path where the report will be saved.
Details
The function first initializes the HTML content with the provided header section and a placeholder for the table of contents (TOC). It then iterates through the plots, generating sections for each level of clustered hits and processing individual plots. The TOC is inserted into the HTML content, which is then finalized and written to the specified output file.