LFQDataAggregator | R Documentation |
Decorates LFQData with methods to aggregate protein intensities aggregates intensities
Decorates LFQData with methods to aggregate protein intensities aggregates intensities
lfq
LFQData
lfq_agg
aggregation result
prefix
to use for aggregation results e.g. protein
new()
initialize
LFQDataAggregator$new(lfq, prefix = "protein")
lfq
LFQData
prefix
default protein
medpolish()
aggregate using median polish
LFQDataAggregator$medpolish()
N
top N by intensity
LFQData
lmrob()
aggregate using robust regression
LFQDataAggregator$lmrob()
N
top N by intensity
LFQData
mean_topN()
aggregate topN using mean
LFQDataAggregator$mean_topN(N = 3)
N
top N by intensity
LFQData
sum_topN()
aggregate topN using sum
LFQDataAggregator$sum_topN(N = 3)
N
top N by intensity
LFQData
plot()
creates aggregation plots
LFQDataAggregator$plot(subset = NULL, show.legend = FALSE)
subset
create plots for a subset of the data only, e.g. proteins with more then 2 peptides.
show.legend
default FALSE
data.frame
write_plots()
writes plots to folder
LFQDataAggregator$write_plots( qcpath, subset = NULL, show.legend = FALSE, width = 6, height = 6 )
qcpath
qcpath
subset
write plots only for some
show.legend
legend
width
figure width
height
figure height
file path
clone()
The objects of this class are cloneable with this method.
LFQDataAggregator$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other LFQData:
LFQData
,
LFQDataPlotter
,
LFQDataStats
,
LFQDataSummariser
,
LFQDataToSummarizedExperiment()
,
LFQDataWriter
istar <- prolfqua::sim_lfq_data_peptide_config()
istar$config <- istar$config
data <- istar$data |> dplyr::filter(protein_Id %in% sample(protein_Id, 100))
lfqdata <- LFQData$new(data, istar$config)
lfqTrans <- lfqdata$clone()$get_Transformer()
lfqTrans$log2()
lfqTrans <- lfqTrans$robscale()$lfq
lfqAggregator <- LFQDataAggregator$new(lfqTrans, "protein")
lfqAggregator$medpolish()
pmed <- lfqAggregator$plot()
pmed$plots[[1]]
lfqAggregator$lmrob()
prob <- lfqAggregator$plot()
prob$plots[[1]]
lfqCopy <- lfqdata$clone()
lfqCopy$is_transformed()
lfqAggregator <- LFQDataAggregator$new(lfqCopy, "protein")
lfqAggregator$sum_topN()
pSum <- lfqAggregator$plot()
pSum$plots[[1]]
lfqAggregator$mean_topN()
pMean <- lfqAggregator$plot()
pMean$plots[[1]]
protPlotter <- lfqAggregator$lfq_agg$get_Plotter()
protPlotter$heatmap()
## Not run:
lfqAggregator$write_plots(tempdir())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.