KeyError: 'dpt_order_indices' missing if branching=0
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.6k
- Forks
- 779
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 27
Description
I don't think this is fixed in the previous issue https://github.com/theislab/scanpy/issues/129.
If you run sc.tl.dpt(adata) it creates the dpt_pseudotime property in obs as expected. However using dpt in plotting functions fails like sc.pl.dpt_timeseries(adata). This is due to the dpt_order_indices property not being created if branching=0.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with sc.tl.dpt(adata) followed by sc.pl.dpt_timeseries(adata), and inspect how branching=0 affects dpt_order_indices. Trace the dpt and dpt_timeseries entry points; done means the plotting call no longer raises KeyError while dpt_pseudotime remains available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- bioinformatics, data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100