volcano_plot | R Documentation |
This function allows you to plot DE analysis results as a volcano plot
volcano_plot(DE_results, pslider = 0.05, fcslider)
DE_results |
a dataframe with the results of one of the DE Analysis; must include "log2FoldChange" and "pvalue" columns |
pslider |
Magnitude of significance value threshold, default is 0.05 |
fcslider |
Magnitude of expression change value threshold |
A volcano plot of expression change and significance value data
library(scran)
se <- mockSCE()
differential_expression <- BatchQC::DE_analyze(se = se,
method = "DESeq2",
batch = "Treatment",
conditions = c(
"Mutation_Status",
"Cell_Cycle"),
assay_to_analyze = "counts")
value <- round((max(abs(
differential_expression[[length(differential_expression)]][, 1]))
+ min(abs(
differential_expression[[length(differential_expression)]][, 1]))) / 2)
volcano_plot(differential_expression[[1]], pslider = 0.05, fcslider = value)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.