Skip to contents

Generates an HTML report with the provided plots, spline parameters, and report information.

Usage

generate_report_html(
  plots,
  plots_sizes,
  report_info,
  limma_result_2_and_3_plots = NULL,
  data = NULL,
  meta = NA,
  topTables = NA,
  enrichr_format = NA,
  level_headers_info = NA,
  spline_params = NA,
  adj_pthresholds = NA,
  adj_pthresh_avrg_diff_conditions = NA,
  adj_pthresh_interaction_condition_time = NA,
  report_type = "explore_data",
  feature_name_columns = NA,
  mode = NA,
  filename = "report",
  timestamp = format(Sys.time(), "%d_%m_%Y-%H_%M_%S"),
  report_dir = here::here()
)

Arguments

plots

A list of ggplot2 plot objects.

plots_sizes

A list of integers specifying the size of each plot.

report_info

A named list containing report information.

limma_result_2_and_3_plots

List containing the list of lists with all the plots for all the pairwise comparisons of the condition in terms of average spline diff and interaction condition time, and another list of lists where the respective names of each plot are stored.

data

A dataframe or a list of dataframes, containing data that should be directly embedded in the HTML report for downloading.

meta

A dataframe, containing metadata that should be directly embedded in the HTML report for downloading.

topTables

List of limma topTables

enrichr_format

List, containing two lists: The gene list and the list of background genes.

level_headers_info

A list of header information for each level.

spline_params

A list of spline parameters, such as dof and type.

adj_pthresholds

Numeric vector with the values for the adj.p.tresholds for each level.

adj_pthresh_avrg_diff_conditions

Float, only for cluster_hits()

adj_pthresh_interaction_condition_time

Float, only for cluster_hits()

report_type

A character string specifying the report type ('screen_limma_hyperparams' or 'cluster_hits').

feature_name_columns

Character vector with the column names of the annotation information, such as the columns containing the gene names. These column names are used to put the info in the HTML reports on how the descriptions above the individual spline plots where created. This is because those descriptions can be made up of several column values, and the specific columns are then stated in the HTML report on top (e.g gene_uniprotID).

mode

A character string specifying the mode ('isolated' or 'integrated').

filename

A character string specifying the filename for the report.

timestamp

A timestamp to include in the report filename.

report_dir

A character string specifying the report directory.

Value

No return value, called for side effects.