cortex-lab / Suite2P

Tools for processing 2P recordings
Other
122 stars 66 forks source link

Abnormal periodic signal in fluorescence traces and running deconvolution #61

Closed ALourdiane closed 7 years ago

ALourdiane commented 7 years ago

Hi,

I'm having a problem when running the scripts, probably will you be able to help. Basically, my problem concerns the fluorescence and neuropil traces in the result folder, in which a periodic signal (alike a second trace) is present. This can be seen below:

image

Would you have any idea of what could this be due to? When I image it in the GUI it is not visible due to the smoothing steps, but this has automatically a huge impact on the traces I see.

Also, the computers I have tested suite2P on were blocked at the parallel processing step after the initiation of the deconvolution (ran for 24 hours before I stopped). I stop at this running step:

image

When I terminate the operation on purpose, the program is always at the same location (I precise that I compiled the C file):

image

Again, would you have any advice to give for me to run this program smoothly?

Thanks a lot in advance for your help !

Anthony

marius10p commented 7 years ago

Hi,

Did you close this issue on purpose or by accident?

Give me a few days to fix the spike deconvolution, I think my last update broke it.

As for the traces, could there be something wrong with the order of the frames? It seems that Suite2p has picked them up in the wrong order. Is this a multi-plane or a multi-channel recording?

ALourdiane commented 7 years ago

Hi,

I closed the issue after using my own analysis of the traces on the ROIs detected by your algorithm, but this is still a problem when using S2P, thanks for your comment. I reopen it. These traces are from a 1-plane single-channel recording, and the order of the traces seems to be good when I draw the fluo outside S2P

Anthony

marius10p commented 7 years ago

what is the period of the artifact? does it correspond to any number relevant in your experiment, like the number of frames per tiff or something like that?

ALourdiane commented 7 years ago

The period for the artifact is 11 frames, but it does not correspond to any relevant feature of our experiment so far. So I checked the fluo traces of the exact same ROI with S2P, with my own extraction of the very same pixels given by S2P, and with a circle approximation in imageJ. The ROI detection is good but the traces seem to have a confusing factor in their computation. You can see the results below:

with S2P: image

with my extraction: image

with imageJ: image

marius10p commented 7 years ago

I fixed the spike deconvolution now, it should no longer hang.

Please let me know if you figured out the problem with the periodic frame. I haven't really seen that before with tiffs coming from other microscope systems, hence why I think it has to do with your particular tiff somehow (how many frames per tiff do you have? what resolution? could you upload one of your tiffs somewhere?).