Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
redst4r committed Feb 12, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent d270c1a commit 1936d9c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sccoda/util/data_visualization.py
Original file line number Diff line number Diff line change
@@ -131,8 +131,9 @@ def stacked_barplot(

# option to plot one stacked barplot per sample
if feature_name == "samples":
assert set(level_order) == set(data.obs.index), "level order is inconsistent with levels"
data = data[level_order]
if level_order:
assert set(level_order) == set(data.obs.index), "level order is inconsistent with levels"
data = data[level_order]
g = stackbar(
data.X,
type_names=data.var.index,

0 comments on commit 1936d9c

Please sign in to comment.