Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discuss introducing a new trace for background activity in SegmentationExtractor #375

Open
2 tasks done
alessandratrapani opened this issue Oct 17, 2024 · 1 comment
Open
2 tasks done
Labels
enhancement New feature or request

Comments

@alessandratrapani
Copy link
Collaborator

What would you like to see added to ROI Extractors?

I would like to introduce two separate traces with their respective spatial components:

  1. _roi_response_neuropil with the respective _neuropil_images_masks. This can be used to store the actual neuropil signals that sometimes refer to the area surrounding the ROIs.
  2. _roi_response_background with the respective _background_images_masks. This can be used more generally to store the signal in the field of view that excludes the areas in the identified ROIs.

Right now we define the following:

def __init__(self):
"""Create a new SegmentationExtractor for a specific data format (unique to each child SegmentationExtractor)."""
self._sampling_frequency = None
self._times = None
self._channel_names = ["OpticalChannel"]
self._num_planes = 1
self._roi_response_raw = None
self._roi_response_dff = None
self._roi_response_neuropil = None
self._roi_response_denoised = None
self._roi_response_deconvolved = None
self._image_correlation = None
self._image_mean = None
self._image_mask = None

Maybe I would also add one for baseline (_roi_response_baseline) activity which spatial components are in common with the _roi_response_raw, _roi_response_denoised, _roi_response_deconvolved etc..

And _image_maximum_projection to store the maximum projection image that is also a very common summary image for segmentation algos.

@pauladkisson, @h-mayorquin, @weiglszonja @ehennestad what do you think?

Do you have any interest in helping implement the feature?

Yes.

Code of Conduct

@alessandratrapani alessandratrapani added the enhancement New feature or request label Oct 17, 2024
@pauladkisson
Copy link
Member

This is exactly the sort of API improvement that should be a part of roiextractors 0.6.0.

Just need to figure out how to make it work with our funding situation...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants