Skip to content

Commit

Permalink
v1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jsxlei committed Jun 2, 2024
1 parent 003504e commit b73d915
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scalex/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ def embedding(

for ax, b in zip(axes.flatten(), groups):
adata.obs['tmp'] = adata.obs[color].astype(str)
adata.obs['tmp'][adata.obs[groupby]!=b] = ''
adata.obs.loc[adata.obs[groupby]!=b, 'tmp'] = ''
if cond2 is not None:
adata.obs['tmp'][adata.obs[cond2]!=v2] = ''
adata.obs.loc[adata.obs[cond2]!=v2, 'tmp'] = ''
groups = list(adata[(adata.obs[groupby]==b) &
(adata.obs[cond2]==v2)].obs[color].astype('category').cat.categories.values)
size = min(size, 120000/len(adata[(adata.obs[groupby]==b) & (adata.obs[cond2]==v2)]))
Expand Down

0 comments on commit b73d915

Please sign in to comment.