-
Notifications
You must be signed in to change notification settings - Fork 31
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
Enable stacked barplots for feature metadata #506
Comments
Thank you for the suggestion! I think I understand your idea here -- this would involve allowing users to select multiple "quantitative" feature metadata categories, and then just directly plotting those as proportions in a stacked barplot? Yeah, EMPress currently doesn't support that -- however, I think rearranging the code to do this should be doable without a ton of effort, since we already have code to draw these kinds of barplots. To clarify a few points:
|
Yes! A way to stack features metadata variables into a made-up-on-the-fly sample metadata could certainly do the trick for the purpose of one barplot. Now for your questions, I think that:
Thanks |
Thanks for the explanation! This helps a lot.
I think this will be possible when #131 is addressed in the future -- once using config files to save/load app state is possible, it should be pretty straightforward for us to automatically generate barplot configurations (in cases where people have tons of fancy barplot configurations they'd like to set up).
I guess my UCSD email works fine. I probably won't have the free time to work on this for some time, but it would be really great to support this. |
Hi,
I believe that it is currently not possible to make a stacked bar plots for groups of feature metadata variables. EMPress only considers one feature at a time, right? (e.g. one set of taxonomic levels, one set of differential values). However, some feature metadata variables might well be more insightful is presented stacked.
For example, if there is feature metadata available on the amount of say "biomolecule A" and "biomolecule B" produced by each microbe n a tree, one may desire to plot the amount of "biomolecules A and B" on the same, stacked barplot. I believe that the only way to achive this would be to create a dummy sample metadata file for this (where features would remain the rows, while
["biomolecule A", "biomolecule B"]
would be specially-tailored columns). However, such solution could be too hacky, and, to my understanding, only one sample metadata can be passed.Could it be a solution, for such barplots, to let the user select >1 category (using a check box instead of the dropdown), and in the background, EMPress would use the code to build as many "sample metadata" that there are selections (ie. barplots) and allow plotting multiple sample metadata information.
Also, note that the nice ability to represent the bar heights as a function of the feature metadata value (when continuous) - which I believe is also currently limited to one single feature - would take advantage of being available for multiple features, if these could be "interpreted" in EMPress as a samples in a sample metadata.
Sorry I have not looked at the code to elaborate such proposition - will do if time allows!
Thanks!
The text was updated successfully, but these errors were encountered: