R/tidyMS_aggregation.R
medpolish_estimate.Rd
Compute Tukey's median polish estimate of a protein from peptide or precursor intensities
medpolish_estimate(x, name = FALSE, sampleName = "sampleName")
a matrix
if TRUE returns the name of the summary column
data.frame with number of rows equal to number of columns of input matrix.
Other aggregation:
INTERNAL_FUNCTIONS_BY_FAMILY
,
aggregate_intensity_topN()
,
estimate_intensity()
,
intensity_summary_by_hkeys()
,
medpolish_estimate_df()
,
medpolish_estimate_dfconfig()
,
medpolish_protein_estimates()
,
plot_estimate()
,
plot_hierarchies_add_quantline()
,
plot_hierarchies_line()
,
plot_hierarchies_line_df()
,
rlm_estimate()
,
rlm_estimate_dfconfig()
medpolish_estimate(name = TRUE)
#> [1] "medpolish"
gg <- matrix(runif(20),4,5)
rownames(gg) <- paste0("A",1:4)
colnames(gg) <- make.names(1:5)
gg
#> X1 X2 X3 X4 X5
#> A1 0.65767434 0.1729643 0.2074822 0.2092584 0.5467840
#> A2 0.48037155 0.4603666 0.1351013 0.7143354 0.7838502
#> A3 0.01651635 0.5609443 0.2820738 0.5724989 0.7168003
#> A4 0.96492654 0.7814906 0.4122952 0.3613100 0.7561737
mx <- medpolish_estimate(gg)