Calculate Log Fold Change (LFC) from Single-Cell Metabolomics Matrix
calc_LFC_scmat.Rd
This method calculates the Log Fold Change (LFC) between two conditions in a single-cell metabolomics matrix. It compares the mean metabolite expression levels between the specified conditions and returns the LFC values for each metabolite.
Value
A numeric vector of Log Fold Change (LFC) values for each metabolite. The length of the vector matches the number of metabolites in the matrix.
Details
This method computes the mean expression levels of metabolites for two conditions specified in the S2IsoMEr
object. The LFC is calculated as the difference in log2-transformed mean expression levels between the two conditions.
Examples
if (FALSE) { # \dontrun{
data("example_ORA_obj")
lfc_values <- calc_LFC_scmat(example_ORA_obj)
} # }