View source: R/calculate_log2FC.R
calculate_log2FC | R Documentation |
This function calculates log2(FC), p-values, and adjusted p-values of the data using limma.
calculate_log2FC(
metalyzer_se,
categorical,
impute_perc_of_min = 0.2,
impute_NA = FALSE
)
metalyzer_se |
A Metalyzer object |
categorical |
A column specifying the two groups |
impute_perc_of_min |
A numeric value below 1 |
impute_NA |
Logical value whether to impute NA values |
A data frame containing the log2 fold change for each metabolite
metalyzer_se <- MetAlyzer_dataset(file_path = example_mutation_data_xl())
metalyzer_se <- filterMetabolites(
metalyzer_se,
drop_metabolites = "Metabolism Indicators"
)
metalyzer_se <- renameMetaData(
metalyzer_se,
Mutant_Control = "Sample Description"
)
metalyzer_se <- calculate_log2FC(
metalyzer_se,
categorical = "Mutant_Control",
impute_perc_of_min = 0.2,
impute_NA = FALSE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.