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

[Discussion] Inconsistencies in `SegmentationExtractor`s #185

Closed weiglszonja closed 2 years ago

weiglszonja commented 2 years ago

Opening a discussion about the some inconsistent behavior in SegmentationExtractors, that I noticed while working on #170:

I'm not sure about the other segmentation extractors, but for the EXTRACT segmentation data for instance "spatial_weights" are originally have a shape of (num_rois, image_size) -> transposed to (image_size, num_rois) -> for writing its back to (num_rois, image_size). https://github.com/catalystneuro/roiextractors/blob/11da26350dd840c51544d021ea2347a78404fecf/src/roiextractors/extractors/schnitzerextractor/extractsegmentationextractor.py

Can we do something on the base SegmentationExtractor side to reduce this? (@CodyCBakerPhD let me know if there is something missing here)

CodyCBakerPhD commented 2 years ago

This might also be a good place/time to update to the new SI standard of having frames/time always be the first dimension like it is in NWB as well

h-mayorquin commented 2 years ago

Yes, I also feel that the first dimension should be frames / time.