Skip to content

Subset of anndata leads to broken graph connectivity #354

Merged
newmana merged 4 commits into
masterfrom
newmana/fix_paths
Jun 26, 2026
Merged

Subset of anndata leads to broken graph connectivity #354
newmana merged 4 commits into
masterfrom
newmana/fix_paths

Conversation

@newmana

@newmana newmana commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

This fixes issue #340 - the cause is that the graph can be disconnected when subsetted and kNN needs to be re-calculated.

Changes:

  • Calling pseudotime without a kNN causes an error - requires it to be run first.
  • When AnnData is subset the neighbourhood graph can become disconnected and running pseudotime on it creates NaN/Infinite distance nodes - both were kept in the old code - in the new code any node touching these will be removed.
  • The fall through if there is equal pseudotime is arbitrary - just picks the node with lowest node number.

Also added some small changes around Xenium data downloading - start of support for zarr in zips and files in subdirectories.

@newmana newmana merged commit 4dd71bc into master Jun 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant