Build a Log2Area matrix for clustering/heatmaps/correlation
Source: R/counting.R
get_mat_log2area.RdPivots input to a wide row × col matrix of (mean, if needed)
Log2Area values, dropping rows that are entirely NA ("phantom IDs") and
ordering columns by the factor levels of col.
Arguments
- input
A
pep_all-shaped data frame withLog2Areaand the columns named byrow/col.- row
Column to use for matrix rows (tidy-evaluated; usually
PeptideIDorProteinFirst).- col
Column to use for matrix columns (tidy-evaluated; must be a factor — its levels set the column order, e.g.
SampleorCondition). When several rows share the samecolvalue, theirLog2Areavalues are averaged (na.rm = TRUE).