Skip to main content

DEAReportGenerator

Description

Generates all output files for a differential expression analysis from a DEAnalyse object.

Public fields

deanalyse
DEAnalyse object containing all analysis results
GRP2
ProlfquAppConfig object containing analysis configuration
fname
filename prefix for DEA results
qcname
filename prefix for QC results
resultdir
directory for storing results
ZIPDIR
zip directory path

Methods

Public methods


DEAReportGenerator$new()

Initialize DEAReportGenerator

Usage
DEAReportGenerator\$new(deanalyse, GRP2, name = "")
Arguments
deanalyse
DEAnalyse R6 object with completed analysis
GRP2
ProlfquAppConfig R6 object
name
optional name prefix for output files

DEAReportGenerator$prep_result_list()

Prepare result list with all analysis outputs for XLSX

Usage
DEAReportGenerator\$prep_result_list()
Returns

list containing all analysis results (14 sheets)


DEAReportGenerator$write_DEA()

Write DEA results (XLSX, ORA, GSEA files)

Usage
DEAReportGenerator\$write_DEA(ORA = TRUE, GSEA = TRUE)
Arguments
ORA
if TRUE write ORA gene lists
GSEA
if TRUE write GSEA rank files
Returns

list with xlsx_file, ora_files, gsea_files paths


DEAReportGenerator$make_boxplots()

Generate sample-level boxplots for quality control

Usage
DEAReportGenerator\$make_boxplots(boxplot = TRUE)
Arguments
boxplot
logical, if TRUE write boxplots

DEAReportGenerator$filter_data()

Get subset of transformed data for significant proteins

Usage
DEAReportGenerator\$filter_data()

DEAReportGenerator$get_protein_boxplots()

Get per-protein boxplots for significant proteins

Usage
DEAReportGenerator\$get_protein_boxplots()

DEAReportGenerator$contrasts_to_Grob()

Convert significant contrast results to table grobs with the canonical contrast/effect/score/fdr columns, selected through the contrast object’s ContrastConfiguration.

Usage
DEAReportGenerator\$contrasts_to_Grob()

DEAReportGenerator$get_protein_boxplots_contrasts()

Get per-protein boxplots combined with contrast summary tables

Usage
DEAReportGenerator\$get_protein_boxplots_contrasts()

DEAReportGenerator$write_protein_boxplots()

Write per-protein boxplots with contrast tables to PDF

Usage
DEAReportGenerator\$write_protein_boxplots(filename = "boxplots")
Arguments
filename
base filename (without extension)

DEAReportGenerator$write_DEA_all()

Write DEA data outputs: XLSX, ORA gene lists, GSEA rank files, and boxplots. HTML reports are rendered by ‘render_dea_reports()’.

Usage
DEAReportGenerator\$write_DEA_all(boxplot = TRUE, ORA = TRUE, GSEA = TRUE)
Arguments
boxplot
if TRUE generate boxplots
ORA
if TRUE write ORA gene lists
GSEA
if TRUE write GSEA rank files
Returns

list with ‘data_files’ paths; ‘dea_file’ / ‘qc_file’ are NULL as the Quarto reports are produced by ‘render_dea_reports()’


DEAReportGenerator$make_SummarizedExperiment()

Create SummarizedExperiment object from analysis results

For the lm_impute default model the object also carries the assay imputedData, transformedData with every missing cell filled by prolfqua::impute_from_model(), and the rowData block imputation with n_observed, n_imputed and route per feature. Decoys are not modelled and stay NA in both.

Given ibaq, the object also carries the assay ibaq; features without an IBAQ value are NA.

Usage
DEAReportGenerator\$make_SummarizedExperiment(
  .url_builder = prolfquapp::bfabric_url_builder,
  ibaq = NULL
)
Arguments
.url_builder
function to build URLs for bfabric
ibaq
optional protein-level LFQData with IBAQ values, as returned by compute_IBAQ_values()
Returns

SummarizedExperiment object


DEAReportGenerator$clone()

The objects of this class are cloneable with this method.

Usage
DEAReportGenerator\$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.