microbiome / miaViz

Microbiome Analysis Plotting and Visualization
https://microbiome.github.io/miaViz
Artistic License 2.0
9 stars 10 forks source link

Boxplots significance #104

Open antagomir opened 8 months ago

antagomir commented 8 months ago

For examples with boxplots representing significance, the ggsnignif pkg is now supporting multiple testing correction: https://github.com/const-ae/ggsignif/issues/28#issuecomment-1704469175

-> Would be good to integrate to miaViz so that users can easily draw some standard comparisons that are readily corrected. Like alpha diversity or taxon abundance comparisons between groups for instance.

muhamanz commented 1 month ago

Thank you for your outstanding work on miaVIZ. The current plots from plotExpression can be cluttered and less informative. It would be immensely helpful to have more general plotting functions, such as those incorporating boxplots or violin plots. These additional plot types could better highlight significant species or taxa differences between study groups, especially in DAA analysis. For instance, a grouped boxplot could effectively highlight the significance of differences between study groups, offering a clearer and more informative representation of the data.

Thank you for considering this enhancement.

antagomir commented 1 month ago

Related to #114 ?

antagomir commented 1 month ago

I agree in general. The plots on this could be improved. I am also not a fan of violin plots.

TuomasBorman commented 1 month ago

@muhamanz Now there is support for boxplots https://github.com/alanocallaghan/scater/pull/208

devtools::install_github("alanocallaghan/scater")

library(mia)
library(scater)

data("GlobalPatterns")
tse <- GlobalPatterns

tse <- agglomerateByRank(tse, rank = "Phylum")
tse <- transformAssay(tse, method = "log10", pseudocount = 1)

# As a demonstration, take 5 first taxa
significant <- rownames(tse)[1:5]
plotExpression(tse, features = significant, assay.type = "log10", show_violin = FALSE, show_boxplot = TRUE)