[main] Feature/spatialdata support#53
Open
Tobiaspk wants to merge 4 commits into
Open
Conversation
Trimmed copy of the spatialdata writer introduced in PR #37 (commits e4e8846 + c26dd83 + bdec108 by @enric-bazz). Strips the delaunay boundary path and unused convenience helpers; inlines require_spatialdata to avoid the optional_deps refactor. Original-author: enric-bazz <enrico.bazzacco02@outlook.it>
Adds --save-spatialdata and --boundary-method CLI flags (under the existing I/O group) and threads them through ISTSegmentationWriter to emit a SpatialData zarr store next to the AnnData output. Adds the 'spatialdata' optional dependency. Integration shape taken from PR #37 commit f99b3fb by @enric-bazz, narrowed to the output path only (no loader, no 3D, no QV filter, no logging refactor). Original-author: enric-bazz <enrico.bazzacco02@outlook.it>
Collaborator
Author
|
I'm unable to install spatialdata into the same environment. Anyhow, it appears that the spatialdata construction takes a long time, even for a small dataset. Might need more robust installation instructions and profiling still. |
Collaborator
Author
|
Just noticed that anndata creation uses |
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.
Support Spatialdata writer. Adapted from #37 @enric-bazz
Introduces two new CLI parameters:
--save-spatialdataboolean--boundary-methodone of {input, convex_hull, skip}Changes to the original PR:
delauney. This would add 500+ lines of source code. Please share if there is an argument to keep it.optional_deps.py(now inline), other heavy edits to data_module, preprocessor etc. Only includes functions to write a Spatialdata.TODOs:
write_anndata. This reduces duplicate code. Also, the current implementation forgets to filter by segger_similarity threshold. See [integration/peerlab] Bugfix/writing anndata #43 .boundary_methodtospatialdata_boundary_methodto make it clear that this relates to the spatialdata output, not to cell expansion or anything!