Skip to contents

Computes fold change between each group for each feature.

Usage

fold_change(object, group, assay.type = NULL)

Arguments

object

a SummarizedExperiment or MetaboSet object

group

character, name of the group column

assay.type

character, assay to be used in case of multiple assays

Value

A data frame with fold changes for each feature.

Examples

data(example_set)
# Between groups
fc <- fold_change(example_set, group = "Group")
#> INFO [2025-06-23 22:36:35] Starting to compute fold changes.
#> INFO [2025-06-23 22:36:35] Fold changes computed.
# Between time points
fc <- fold_change(example_set, group = "Time")
#> INFO [2025-06-23 22:36:35] Starting to compute fold changes.
#> INFO [2025-06-23 22:36:35] Fold changes computed.