Calculate mean of replicates for each feature at each time point for each group.
When a Subject column is present, merging is done in two stages:
Average replicates within each Group-Subject-Time combination.
Average across subjects within each Group-Time combination. This gives equal weight to each subject regardless of replicate count.
Without a Subject column, all samples at the same Group-Time are averaged together in a single step.
Arguments
- se_obj_list
A list of SummarizedExperiment objects created by
split_groups(), each corresponds to one group of samples.
Value
A list of SummarizedExperiment objects containing the mean of replicates for each feature at each time point for each group. Each object in the list corresponds to one group of samples.
Examples
data(example_obj)
example_obj <- normalise_to_start(example_obj)
#> Normalising to group baseline at each feature's first non-NA time point.
example_obj_list <- split_groups(example_obj)
example_obj_merged_list <- merge_replicates(example_obj_list)
