SAINTexpress contrast analysis facade
SAINTexpress contrast analysis facade
Details
Encapsulates the SAINTexpress pipeline so that it can be reached
through the same facade-registry dispatch as the prolfqua built-in
methods (lm, limma, firth, ...). Wraps
protein_2localSaint -> runSaint ->
ContrastsSAINTexpress, with bait / control / gene /
protein-length columns resolved from the annotation data attached to
the input LFQData.
Differs from LM-style facades in three ways:
The contrast set is derived from the bait column (one bait vs. controls), so the
contrastsargument is ignored.The output schema uses
Bait/log2_EFCs/SaintScore/BFDR;p.valueisNA.The facade carries SAINT input tables and the raw SAINTexpress result via
extra_artifacts()for downstream report rendering.
See also
Other modelling:
ContrastsSAINTexpress
Super class
prolfqua::ContrastsInterface -> ContrastsSAINTFacade
Public fields
contrastwrapped
ContrastsSAINTexpressobjectsaint_inputSAINTexpress input tables (
inter/prey/bait)saint_resultraw SAINTexpress result list
protein_idhierarchy key the SAINT
Preycolumn is mapped back to.lfqdatastored reference to input LFQData
.row_annotstored reference to row annotation
Methods
Method new()
initialize
Usage
ContrastsSAINTFacade$new(
lfqdata,
modelstr = NULL,
contrasts = NULL,
row_annot = NULL,
spc = FALSE,
engine = "r"
)Arguments
lfqdataaggregated
LFQDataobject with bait / control columns in the annotationmodelstrignored — SAINT derives contrasts from the bait column; accepted for facade uniformity
contrastsignored for the same reason
row_annotdata.frame with protein-level annotation (must contain the hierarchy key column). When
NULL, falls back tolfqdata$hierarchy_keys()content from the long table.spcif
TRUErun SAINTexpress-spc; defaultFALSE(intensity model).engineSAINTexpress engine; one of
"r"(default) or whateverrunSaintaccepts.
Method get_contrasts()
get contrast results from the wrapped
ContrastsSAINTexpress; adds a facade
column matching the lm/limma facade convention.
Method get_rank()
rank table for enrichment tools (delegates; default
score is log2_EFCs because SAINTexpress has no p-value)
Method extra_artifacts()
SAINT-specific artifacts to surface in
downstream reports. Returns a named list with the SAINT input
tables and the raw result list.
Examples
ContrastsSAINTFacade
#> <ContrastsSAINTFacade> object generator
#> Inherits from: <prolfqua::ContrastsInterface>
#> Public:
#> contrast: NULL
#> saint_input: NULL
#> saint_result: NULL
#> protein_id:
#> .lfqdata: NULL
#> .row_annot: NULL
#> initialize: function (lfqdata, modelstr = NULL, contrasts = NULL, row_annot = NULL,
#> get_contrasts: function (...)
#> get_Plotter: function (...)
#> to_wide: function (...)
#> get_missing: function ()
#> get_ora: function (up = TRUE, FDR_threshold = 0.05, diff_threshold = 1)
#> get_rank: function (score = "log2_EFCs")
#> extra_artifacts: function ()
#> clone: function (deep = FALSE)
#> Parent env: <environment: namespace:prolfquasaint>
#> Locked objects: TRUE
#> Locked class: FALSE
#> Portable: TRUE