scverse / scverse/spatialdata

proposal: use (dask/geo) DataFrames for shapes (and polygons?)

Open
#122 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
394
Forks
95
Avg merge
4d 3h
Merged PRs (30d)
7

Description

right now the Shapes model is an anndata. We are just saving the coordinates in adata.obsm["spatial"] and the metadata in uns. I feel this is overkill and we don't really have plans to extend this spec further (but we did discuss to potentially move it to geodataframe or as points -> dask dataframes). I'd suggest by release to convert Shapes to GeoDataFarme or DaskDataFrame

@scverse/spatialdata

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the Shapes model and its current anndata representation, including coordinates in adata.obsm["spatial"] and metadata in uns. Compare the proposed GeoDataFrame and Dask DataFrame directions, including the possibility of representing shapes as points. Done means agreeing on and implementing a replacement representation for Shapes before the targeted release.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.