# \donttest{
if (requireNamespace("DESeq2", quietly = TRUE) &&
requireNamespace("S4Vectors", quietly = TRUE) &&
requireNamespace("tibble", quietly = TRUE)) {
### Data preparation ###
data("Two_group")
### Deseq analysis ###
deseq_results <- Deseq_analysis(
taxobj = Two_group,
taxlevel = "Genus",
cutoff = 1,
control_name = "Control"
)
# Visualization of volcano plot ##
volcano_plot <- volcano_plot(
inputframe = deseq_results,
cutoff = 1,
aes_col = Two_group$configuration$treat_col
)
volcano_plot$FC_FDR
volcano_plot$Mean_FC
# Visualization of Manhattan plot ##
manhattan_object <- manhattan(
inputframe = deseq_results,
taxlevel = "Phylum",
control_name = "Control",
mode = "most",
top_n = 10,
rmprefix = "p__"
)
manhattan_object$manhattan # Tradition manhattan plot
manhattan_object$manhattan_circle # Circular manhattan plot
# For object with more than two groups
### Data preparation ###
data("Three_group")
# Specific comparison
deseq_results_BFCF <- Deseq_analysis(
taxobj = Three_group,
taxlevel = "Genus",
comparison = c("BF", "CF"),
cutoff = 1,
control_name = "CF"
)
volcano_plot <- volcano_plot(
inputframe = deseq_results_BFCF,
cutoff = 1,
aes_col = Three_group$configuration$treat_col
)
volcano_plot$FC_FDR
} else {
message(
"The 'DESeq2', 'S4Vectors', and/or 'tibble' package(s) are not installed. ",
"Please install them to use all features of Deseq_analysis."
)
}
# }
Run the code above in your browser using DataLab