plot_log2FC | R Documentation |
This method plots the log2 fold change for each metabolite.
plot_log2FC(
metalyzer_se,
signif_colors = c(`#5F5F5F` = 1, `#FEBF6E` = 0.1, `#EE5C42` = 0.05, `#8B1A1A` = 0.01),
hide_labels_for = c(),
class_colors = "MetAlyzer",
polarity_file = "MxPQuant500",
vulcano = FALSE
)
metalyzer_se |
A Metalyzer object |
signif_colors |
signif_colors |
hide_labels_for |
vector of Metabolites or Classes for which no labels are printed |
class_colors |
class_colors |
polarity_file |
polarity_file |
vulcano |
boolean value to plot a vulcano plot |
ggplot object
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 = TRUE
)
# p_vulcano <- plot_log2FC(metalyzer_se, vulcano=TRUE)
# p_fc <- plot_log2FC(metalyzer_se, vulcano=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.