Skip to contents

The second aggregation step: takes the per-sample table of summarise_pepchem() and reports, for each Condition and descriptor, the mean +/- sd across samples of the chosen per-sample statistic. This is the replicate-respecting summary plot_property_sample_summary() draws — its spread is between-sample variability, not between-peptide spread.

Usage

aggregate_pepchem(sample_summary, stat = c("Median", "Mean"))

Arguments

sample_summary

Output of summarise_pepchem() with by = "Sample".

stat

Per-sample statistic to aggregate: "Median" (default) or "Mean".

Value

A data frame with Condition, Property, n_Samples, Mean, SD and SEM.

Examples

if (FALSE) { # \dontrun{
aggregate_pepchem(summarise_pepchem(pepchem_by_sample(pep_short)))
} # }