AggregateLimpa
AggregateLimpa
Details
Aggregates peptide/precursor intensities to protein level using limpa's
probabilistic DPC-based quantification (limpa::dpcQuant).
With impute_only = TRUE, performs same-level imputation without
aggregation using limpa::dpcQuantByRow.
The output LFQData contains three value columns:
intensity (
"limpa") — protein-level log-expression (complete, no NAs)standard error (in
config$opt_se) — per-protein, per-sample posterior SEsobservation count (in
config$nr_children) — number of observed precursors
Public fields
lfqLFQData (deep cloned input)
lfq_aggaggregation result
prefixto use for aggregation results e.g. protein
dpc_resultestimated DPC object from limpa::dpc
dpc_slopeDPC slope parameter (default 0.8)
impute_onlyif TRUE use dpcQuantByRow (no aggregation)
Methods
Method new()
initialize
Usage
AggregateLimpa$new(
lfq,
prefix = "protein",
dpc_slope = 0.8,
impute_only = FALSE
)Method aggregate()
run limpa DPC-based aggregation (or imputation)
Method plot()
creates aggregation plots (only for aggregation mode, not impute_only)
Method write_plots()
writes plots to folder
Usage
AggregateLimpa$write_plots(
qcpath,
subset = NULL,
show.legend = FALSE,
width = 6,
height = 6
)Examples
if (FALSE) { # \dontrun{
istar <- prolfqua::sim_lfq_data_peptide_config()
lfqdata <- LFQData$new(istar$data, istar$config)
lfqdata <- lfqdata$get_Transformer()$log2()$lfq
agg <- AggregateLimpa$new(lfqdata, "protein")
agg$aggregate()
agg$lfq_agg$to_wide()
} # }