MouseLand/suite2p

FEATURE: operating extraction on cropped region

jingxuanf0214 opened this issue · 2 comments

Feature you'd like to see:

I am not sure if this can be done now, so if it already has I would also love to know how to access it. Basically, I am working in fruit fly system. The kind of 2p imaging data we get is not signals filled in whole field of view (filling the square for example). So my image looks like a bright region of structure on a black background. And if I just input this image for extraction it finds a lot of rois in the background.
Screen Shot 2024-02-23 at 11 49 07 PM

Attempted alternative approaches:

I haven't tried intensively. I think I could crop to small pieces by hand and run on each pieces. But I think it would be nice to be integrated in a pipeline.

Additional Context

No response

Hi @jingxuanf0214, I'm not sure I understand what your request is. When you use suite2p, the pipeline should perform the extraction on all of the ROIs you've enclosed in the rectangle as long as suite2p identifies them as ROIs. You can access them by getting the ROI numbers for the ROIs in the rectangle you made. You should then be able to find the corresponding fluorescence traces and spikes for these ROIs in the F.npy and spks.npy files, respectively.

Closed due to inactivity. Feel free to reopen if your question hasn't been answered @jingxuanf0214!