Repository navigation
Round-trip analysis results through AnnData - #21
Merged
Merged
Conversation
parashardhapola
force-pushed
the
pr/06-anndata-round-trip
branch
from
October 22, 2026 21:42
9a5100f to
54db073
Compare
parashardhapola
force-pushed
the
pr/05-pca
branch
from
October 22, 2026 21:54
27dacb9 to
a97c5ae
Compare
Exports could not carry analysis results, cluster labels exported as integers (so scanpy's `rank_genes_groups` failed), categoricals and colours were lost on import, and external latents could not be imported.
parashardhapola
force-pushed
the
pr/06-anndata-round-trip
branch
from
October 22, 2026 22:01
54db073 to
045ed66
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Exports could not carry analysis results, cluster labels exported as integers (so scanpy's
rank_genes_groupsfailed), categoricals and colours were lost on import, and external latents could not be imported.Changes
to_anndataandto_h5adtakeobsm,obs,graph,cell_selection, anddtype: PCA (withvarm["PCs"]anduns["pca"]), UMAP, labels as categoricals with colours, and graphs in scanpy'sobsplayout withuns["neighbors"], checked against the memory budget.ordered, and colours;reduction.import_coordinatesimports an external latent space, such as scVI's, aligned by cell ID._index; count matrices are chosen by conventional name, with a warning when several hold counts; repeated obs names import withduplicate_cell_ids="make_unique";to_mtxis faster.Behaviour changes
uint8anduint16counts arefloat32unlessdtypesays otherwise.