Skip to contents

This function processes the GSEA result for a specific level. It handles cases where the result contains `NA` values by adding a section break. Otherwise, it extracts the plot, plot size, and header information from the result.

Usage

process_result(level_result, level_name)

Arguments

level_result

A list containing the GSEA result for a specific level.

level_name

A character string representing the name of the level.

Value

A list with the following components:

plot

A plot object or "section_break" if the result contains `NA`.

plot_size

An integer indicating the size of the plot.

header_info

A list with header information, including the level name, full enrichment results, and raw enrichment results if available.