Skip to content

Commit

Permalink
error message for paga_path regarding dpt
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Nov 5, 2018
1 parent 3b86d5f commit d7d39c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scanpy/plotting/tools/paga.py
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,11 @@ def paga_path(
groups_key = adata.uns['paga']['groups']
groups_names = adata.obs[groups_key].cat.categories

if 'dpt_pseudotime' is not adata.obs.keys():
raise ValueError(
'`pl.paga_path` requires computation of a pseudotime `tl.dpt` '
'for ordering at single-cell resolution')

if palette_groups is None:
utils.add_colors_for_categorical_sample_annotation(adata, groups_key)
palette_groups = adata.uns[groups_key + '_colors']
Expand Down

0 comments on commit d7d39c8

Please sign in to comment.