Skip to content

Commit

Permalink
fixes #242
Browse files Browse the repository at this point in the history
  • Loading branch information
VolkerBergen committed Nov 30, 2020
1 parent f7498c1 commit 95d90de
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scvelo/plotting/paga.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,8 @@ def paga(
categories = list(adata.obs[paga_groups].cat.categories)
pos = np.zeros((len(categories), 2))
for ilabel, label in enumerate(categories):
X_emb = adata.obsm[f"X_{basis}"][
adata.obs[paga_groups] == label, :2
]
X_emb = adata.obsm[f"X_{basis}"][adata.obs[paga_groups] == label]
X_emb = np.array(X_emb[:, get_components(components, basis)])
x_pos, y_pos = np.median(X_emb, axis=0)
pos[ilabel] = [x_pos, y_pos]
else:
Expand Down

0 comments on commit 95d90de

Please sign in to comment.