Description
Rebuilds the standard prolfqua structures from a DEA result artifact written by [DEAReportGenerator]: the raw, transformed and (for lm_impute) imputed prolfqua::LFQData, the feature and sample annotation, the per-feature imputation summary, the contrast table with the column names the modelling backend produced, and a prolfqua::ContrastsTable carrying the backend’s prolfqua::ContrastConfiguration. Every table is keyed by the artifact’s feature_keys. Accepts a SummarizedExperiment, an anndataR AnnData, or a path to an .rds or .h5ad file.
Because the column roles travel with the artifact, consumers filter, rank and plot through the configuration instead of hard-coding column names.
Methods
Public methods
DEAResultReader$new()
Read a DEA result artifact.
Usage
DEAResultReader\$new(source)
Arguments
-
source
-
a
SummarizedExperiment, an AnnData, or a path to an .rds, .h5ad or .h5mu file; an .h5mu file is read through its dea modality
DEAResultReader$has_roles()
Does the contrast table carry these columns?
Usage
DEAResultReader\$has_roles(...)
Arguments
-
…
-
column names, or vectors of column names
DEAResultReader$significant()
Contrast rows passing both thresholds. One-sided on the effect column for backends whose negative effects are not interpretable (SAINT).
Usage
DEAResultReader\$significant(FDR_threshold = 0.05, diff_threshold = 1)
Arguments
-
FDR_threshold
-
false discovery rate threshold
-
diff_threshold
-
effect-size threshold
DEAResultReader$get_Plotter()
prolfqua::ContrastsPlotter over the contrast table, with every score panel resolved through the column roles. Returns NULL when the artifact holds no usable contrast results.
Usage
DEAResultReader\$get_Plotter(fc_threshold = 1, fdr_threshold = 0.1)
Arguments
-
fc_threshold
-
fold-change threshold
-
fdr_threshold
-
false discovery rate threshold
DEAResultReader$clone()
The objects of this class are cloneable with this method.
Usage
DEAResultReader\$clone(deep = FALSE)
Arguments
-
deep
-
Whether to make a deep clone.