This function calculates two-way ANOVA for all lipid characteristics.

char_2wayAnova(
  processed_se,
  ratio_transform = c("none", "log2"),
  char_transform = c("none", "log10", "square", "cube")
)

Arguments

processed_se

A SummarizedExperiment object constructed by as_summarized_experiment and processed by data_process.

ratio_transform

Character. Method for transform the ratio-based abundance. Allowed methods include "none" and "log2". Select 'none' to skip data transformation. Default is 'log2'.

char_transform

Character. Method for transform the lipid characteristics-based abundance. Allowed methods include "none", "log10", "square", and "cube". Select 'none' to skip data transformation. Default is 'log10'.

Value

Return 1 table with two-way ANOVA results.

Examples

data("de_data_twoGroup")
processed_se_twoGroup <- data_process(
    se=de_data_twoGroup, exclude_missing=TRUE, exclude_missing_pct=70,
    replace_na_method='min', replace_na_method_ref=0.5,
    normalization='Percentage')
twoWayAnova_twoGroup <- char_2wayAnova(
    processed_se_twoGroup, ratio_transform='log2', char_transform='log10')
#> There are 4 ratio characteristics that can be converted in your dataset.

data("se_multiGroup")
processed_se_multiGroup <- data_process(
    se=se_multiGroup, exclude_missing=TRUE, exclude_missing_pct=70,
    replace_na_method='min', replace_na_method_ref=0.5,
    normalization='Percentage')
twoWayAnova_multiGroup <- char_2wayAnova(
    processed_se_multiGroup, ratio_transform='log2', char_transform='log10')
#> There are 4 ratio characteristics that can be converted in your dataset.