-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plotAbundanceDensity: added boxplot and violin #143
Conversation
Signed-off-by: Daena Rys <[email protected]>
DId you add (at least a short) description of the plotting options in the roxygen documentation? I did not find this. |
Signed-off-by: Daena Rys <[email protected]>
Thanks. I have added to the options. |
It is good to update documentation by default always. |
Some checks fail? |
The checks are unrelated to this PR. I could prepare another PR with a fix. |
I think, this is good to go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's rethink this. It seems that the desired plot types are already available in SE ecosystem. We should avoid overlapping work. Check it these plots fulfill the need
library(miaViz)
data("peerj13075", package = "mia")
tse <- peerj13075
tse <- transformAssay(tse, method = "relabundance")
plotAbundanceDensity(tse, assay.type = "relabundance", n = 5, layout = "violin")
plotAbundanceDensity(tse, assay.type = "relabundance", n = 5, layout = "box")
library(scater)
top <- getTop(tse)
plotExpression(tse, features = top, assay.type = "relabundance") + ggplot2::coord_flip()
plotExpression(tse, features = top, assay.type = "relabundance", show_violin = FALSE, show_box = TRUE) + ggplot2::coord_flip()
Thanks. |
Closing issue now. |
Can you summarize what was done regarding the point on plotExpression vs. plotAbundanceDensity, @Daenarys8 ? |
plotExpression provides the desired layouts |
Can you summarize briefly how this was implemented? Does plotAbundanceDensity internally call plotExpression? |
Signed-off-by: Daena Rys <[email protected]>
I had a misunderstanding of the intention. I have added the changes. |
Does it have to call it internally? It causes more maintaining work comparing to if we just rely on plotExpression? |
Signed-off-by: Daena Rys <[email protected]>
Yes it might be so. I did not mean to suggest how it should be done, just asked for a summary on what was done as I could not immediately figure it out from the sources. Good to discuss first how to proceed, then proceed. If plotExpression already solves the issue, then the following actions could be useful:
Did I miss something? |
Signed-off-by: Daena Rys <[email protected]>
Signed-off-by: Daena Rys <[email protected]>
Good place for plotExpression is also differential abundance chapter as it does not have abundance visualization yet. It is very common to visualize the significant taxa. https://microbiome.github.io/OMA/docs/devel/pages/differential_abundance.html There could be a link in QC chapter. "Abundances can be visualized also with plotExpression(). See example from here" |
ping: #142