EliHei2 / segger_dev

a cutting-edge cell segmentation model specifically designed for single-molecule resolved spatial omics datasets. It addresses the challenge of accurately segmenting individual cells in complex imaging datasets, leveraging a unique approach based on graph neural networks (GNNs).
https://elihei2.github.io/segger_dev/
MIT License
33 stars 3 forks source link

`spatialdata` support in `segger` #20

Open LucaMarconato opened 2 weeks ago

LucaMarconato commented 2 weeks ago

spatialdata support in segger

Describing use cases and a possible strategy to enable spatialdata support.

Use cases

These use cases can be considered as incremental goals, to accomplish in this order:

  1. flexibility to work with processed Xenium and MERSCOPE data and not just raw data (having them stored as SpatialData Zarr object)
  2. extend segger to new transcripts-based data types (e.g. seqFISH)
  3. extend segger to bins-based data types (e.g. Visium HD, Stereo-seq, Open-ST)
  4. enable napari-spatialdata visualization when Xenium explorer is not available (=non-Xenium data)
  5. enable spatialdata-based tools like bento-tools and sopa.

Method

Numbers correspond to the above list and they depend on each other as follows: 1 -> 4 and 1 -> 2 -> 3 -> 5.

  1. add a new subclass to SpatialTranscriptomicsSample that accepts SpatialData objects and reproduce the Xenium + MERSCOPE support. The subclass will reimplement some methods of the base class but keep API compatible with the segger pipeline
  2. analogous as above for the STSampleParquet class
  3. test segger on a new transcripts-based technology
  4. test segger on Visium HD data; will require some modification of the Visium HD data to make it look like a transcript-based data. Doing it once will make it work for each bins-based tech thanks to the SpatialData abstraction.
  5. create a parser for produced results into a new SpaitalData object (or put the predictions into the original one)
  6. test napari-spatialdata on the newly created object.

detailed lists of tasks

segger.data

LucaMarconato commented 2 weeks ago

@EliHei2 gonna meet and brainstorm on this next monday.