Skip to contents

This function reorders the samples in the mmo object based on a specified group order. The function updates the order of samples in the feature data, log-normalized data, z-score data, and mean-centered data. Use this function before plotting heatmaps or other visualizations to ensure consistent group ordering.

Usage

ReorderGroups(mmo, group_order)

Arguments

mmo

The mmo object

group_order

A vector specifying the desired order of groups

Value

The mmo object with reordered samples

Examples

if (FALSE) {
mmo <- ReorderGroups(mmo, group_order = c("Control", "Treatment1", "Treatment2"))
}