Skip to content

[Feature]: Support for mid-cycle splits of ScanImageTiff files #299

Open
@pauladkisson

Description

What would you like to see added to ROI Extractors?

Currently, the scanimage tiff imaging extractors assume that each file contains a full cycle of frames. Ex. for 2 channels, 2 planes, and 2 framesPerSlice:
[channel_1_plane_1_frame_1, channel_2_plane_1_frame_1, channel_1_plane_1_frame_2, channel_2_plane_1_frame_2, channel_1_plane_2_frame_1, channel_2_plane_2_frame_1, channel_1_plane_2_frame_2, channel_2_plane_2_frame_2, channel_1_plane_1_frame_3, channel_2_plane_1_frame_3, channel_1_plane_1_frame_4, channel_2_plane_1_frame_4, channel_1_plane_2_frame_3, channel_2_plane_2_frame_3, channel_1_plane_2_frame_4, channel_2_plane_2_frame_4,
...
channel_1_plane_1_frame_N, channel_2_plane_1_frame_N, channel_1_plane_2_frame_N, channel_2_plane_2_frame_N]
where the last frame of the file MUST BE channel_2_plane_2_frame_N for however many frames it has.

However, it is possible to split scanimage files mid-cycle based on a maximum number of frames. Ex. for 2 channels, 2 planes, 2 framesPerSlice AND a maximum total number of frames/file of 10:

File 1: prefix_00001_00001.tif
[channel_1_plane_1_frame_1, channel_2_plane_1_frame_1, channel_1_plane_1_frame_2, channel_2_plane_1_frame_2, channel_1_plane_2_frame_1, channel_2_plane_2_frame_1, channel_1_plane_2_frame_2, channel_2_plane_2_frame_2, channel_1_plane_1_frame_3, channel_2_plane_1_frame_3]

File 2: prefix_00001_00002.tif
[channel_1_plane_1_frame_4, channel_2_plane_1_frame_4, channel_1_plane_2_frame_3, channel_2_plane_2_frame_3, channel_1_plane_2_frame_4, channel_2_plane_2_frame_4]

The ScanImageTiffImagingExtractors should be able to accommodate this case.

Do you have any interest in helping implement the feature?

Yes.

Code of Conduct

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions