Compute differentially expressed analysis of two groups (independent) to find significant lipid species.

deSp_twoGroup(
  processed_se,
  ref_group,
  test = c("t-test", "Wilcoxon test"),
  significant = c("pval", "padj"),
  p_cutoff = 0.05,
  FC_cutoff = 1,
  transform = c("none", "log10", "square", "cube")
)

Arguments

processed_se

A SummarizedExperiment object constructed by as_summarized_experiment and processed by data_process.

ref_group

Character. Group name of the reference group. It must be one of the group names in the group information table's group column.

test

Character. The method to use for comparing means. Allowed method include "t-test" and "Wilcoxon test". Default is 't-test'.

significant

Character. The p-value to be used for the statistically significant. Must be one of "pval" or "padj". Default is 'pval'.

p_cutoff

Numeric. Significant level. Default is 0.05.

FC_cutoff

Numeric. Significance of the fold-change. Default is 1.

transform

Character. Method for data transformation. Allowed methods include "none", "log10", "square", "cube". Select 'none' to skip data transformation. Default is 'log10'.

Value

Return a SummarizedExperiment object containing analysis results.

Examples

data("de_data_twoGroup")
processed_se <- data_process(
    de_data_twoGroup, exclude_missing=TRUE, exclude_missing_pct=70,
    replace_na_method='min', replace_na_method_ref=0.5,
    normalization='Percentage')
deSp_se <- deSp_twoGroup(processed_se, ref_group='ctrl', test='t-test',
    significant='pval', p_cutoff=0.05, FC_cutoff=1, transform='log10')