theislab / scCODA

A Bayesian model for compositional single-cell data analysis
BSD 3-Clause "New" or "Revised" License
141 stars 23 forks source link

Stacked barplot not working #50

Closed learning-MD closed 2 years ago

learning-MD commented 2 years ago

Hi, I'm able to get an appropriate/accurate boxplot with viz.boxplots(). However, when I try viz.stacked.barplot() with the same input, I get the following error:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-13-7b7aa02bf827> in <module>
----> 1 viz.stacked.barplot(data_scanpy, feature_name = "Condition")
      2 plt.show()

AttributeError: module 'sccoda.util.data_visualization' has no attribute 'stacked'

Any help would be appreciated. Thanks.

johannesostner commented 2 years ago

Hi! There is no function called stacked.barplot in 'sccoda.util.data_visualization'. I think you are looking for stacked_barplot

learning-MD commented 2 years ago

Shoot, sorry about that! Switching from R to python here and was banging my head against the wall. Thanks a lot!