Aggregates peptide intensities to protein level using median polish. Works best with variance-stabilized (log-transformed) intensities.
Super class
AggregatorBase -> AggregateMedpolish
Public fields
controlconvergence controls of
stats::medpolish:maxiter(default 10) andeps(default 0.01; the polish stops when the sum of absolute residuals changes by less thanepstimes that sum)
Methods
Inherited methods
AggregateMedpolish$new()
initialize
Usage
AggregateMedpolish$new(lfq, prefix = "protein", control = list())Arguments
lfqLFQData
prefixdefault protein
controlnamed list merged over the defaults; convergence controls of
stats::medpolish:maxiter(default 10) andeps(default 0.01; the polish stops when the sum of absolute residuals changes by less thanepstimes that sum)
Examples
istar <- prolfqua::sim_lfq_data_peptide_config()
#> `protein_Id`: columns `proteinID`, `idtype2` united with separator '~'.
#> creating sampleName from file_name column
#> setup_analysis: dropped 6 unconfigured columns: average_prot_abundance, sd, mean, N, avg_peptide_abd, Replicate.
#> setup_analysis: added 36 rows with NA response for feature and sample combinations absent from the input.
data <- istar$data |> dplyr::filter(protein_Id %in% sample(protein_Id, 100))
lfqdata <- LFQData$new(data, istar$config)
lfqTrans <- lfqdata$clone()$get_Transformer()$log2()$robscale()$lfq
#> Transformed response column added: log2_abundance
agg <- AggregateMedpolish$new(lfqTrans, "protein")
agg$aggregate()
p <- agg$plot()
p$plots[[1]]