Skip to content
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

plotAbundance problem #100

Closed
antagomir opened this issue Feb 28, 2022 · 3 comments
Closed

plotAbundance problem #100

antagomir opened this issue Feb 28, 2022 · 3 comments
Assignees

Comments

@antagomir
Copy link
Member

antagomir commented Feb 28, 2022

The function plotAbundance is used for handy visualization of community composition.

library(mia)
data(GlobalPatterns)
tse <- GlobalPatterns[1:1000,]
plotAbundance(tse, abund_values="counts", rank = "Phylum")

It only works with the defined ranks, however. This leads to error:

rowData(tse)$Strain <- sample(letters[1:5], nrow(tse), replace=TRUE)
plotAbundance(tse, abund_values="counts", rank = "Strain")

-> Error: 'rank' must be a value from 'taxonomyRanks()'

This is restrictive because it is often useful to visualize also other types of groupings.

Just not providing the rank argument (relying on the default) did not seem to help either.

Is this intended, or is there a way to circumvent this issue?

Related to microbiome/mia#219

@antagomir
Copy link
Member Author

Related to microbiome/mia#325 also

@antagomir antagomir assigned TuomasBorman and unassigned FelixErnst Jul 18, 2023
@TuomasBorman TuomasBorman transferred this issue from microbiome/mia Oct 6, 2023
@TuomasBorman
Copy link
Contributor

Yes, the grouping could be more general (just a column from rowData)

@antagomir
Copy link
Member Author

Related to #132

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

4 participants