Skip to content

Preprocessing new TIFFs / ROIs into Spikefinder format #10

@alexklibisz

Description

@alexklibisz

I posted a similar question on the gitter channel and @PTRRupprecht offered some tips (thanks!). Perhaps this is a better place to serialize the discussion in case others have the same question in the future. I'll preface by saying I'm fairly new to calcium imaging and completely new to spike inference. I am familiar with the Nuerofinder datasets and ROI identification/segmentation techniques.

My group would like to apply some of the Spikefinder models that were submitted and documented (here) to our own calcium imaging datasets. Our data format is identical to Neurofinder - we have a directory of 16-bit TIFFs with binary ROI masks. We're unsure of the exact steps necessary to preprocess them to work with Spikefinder models. Is there any documentation or code showing how to preprocess new TIFFs/ROIs to match the format used in the competition?

I believe the general steps we need to take are:

  1. compute the mean of the ROI pixels at each time step.
  2. transform this to the Δ F / F format.
  3. use the preprocess function from c2s to convert to 100Hz sampling rate.

I'm comfortable with steps 1 and 3, and I could likely implement step 2 as its described here, but I'm not sure if that's even the same procedure as was followed for Spikefinder.

Thanks in advance for any tips, documentation, or code examples.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions