catalystneuro / roiextractors

Python-based module for extracting from, converting between, and handling optical imaging data from several file formats. Inspired by SpikeInterface.
https://roiextractors.readthedocs.io/en/latest/index.html
BSD 3-Clause "New" or "Revised" License
12 stars 7 forks source link

Add Minian segmentation extractor #368

Open alessandratrapani opened 1 month ago

alessandratrapani commented 1 month ago

Add segmentation extractor for Minian output. Supported output format: Zarr (for now) Similarly to Caiman uses CNMF to perform cell identification.

Output structure (example):

minian/
 ├── A.zarr 
 │   ├── A (851, 608, 608) float64
 │   ├── animal () <U7
 │   ├── height (608,) int64
 │   ├── session_id () <U9
 │   ├── unit_id (851,) int64
 │   └── width (608,) int64
 ├── C.zarr
 │   ├── C (851, 8931) float64
 │   ├── animal () <U7
 │   ├── frame (8931,) int64
 │   ├── session () <U14
 │   └── session_id () <U9
 │   └── unit_id (851,) int64
 ├── b.zarr
 │   ├── animal () <U7
 │   ├── b (608, 608) float64
 │   ├── height (608,) int64
 │   ├── session () <U14
 │   ├── session_id () <U9
 │   ├── unit_id () int64
 │   └── width (608,) int64
 ├── b0.zarr
 │   ├── animal () <U7
 │   ├── b0 (851, 8931) float64
 │   ├── frame (8931,) int64
 │   ├── session () <U14
 │   ├── session_id () <U9
 │   └── unit_id (851,) int64
 ├── c0.zarr
 │   ├── animal () <U7
 │   ├── c0 (851, 8931) float64
 │   ├── frame (8931,) int64
 │   └── session () <U14
 ├── f.zarr
 │   ├── animal () <U7
 │   ├── f (8931,) float64
 │   └── frame (8931,) int64
 ├── S.zarr
 │   ├── S (851, 8931) float64
 │   ├── animal () <U7
 │   ├── frame (8931,) int64
 │   ├── session () <U14
 │   └── session_id () <U9
 │   └── unit_id (851,) int64
 ├── max_proj.zarr
 │   ├── animal () <U7
 │   ├── max_proj (608, 608) float64
 │   ├── height (608,) int64
 │   ├── session () <U14
 │   ├── session_id () <U9
 │   └── width (608,) int64

TODOs

h-mayorquin commented 1 month ago

Do tag me when this is ready for review.

alessandratrapani commented 1 month ago

I am uploading on the s3 bucket the testing folder for the minian segmentation data

alessandratrapani commented 1 month ago

@h-mayorquin ready for review

h-mayorquin commented 1 week ago

What's the status of this?