MouseLand / suite2p

cell detection in calcium imaging recordings
http://www.suite2p.org
GNU General Public License v3.0
360 stars 244 forks source link

BUG: Functional channel not being assigned to channel 2 #1126

Open jordanfarrell opened 5 months ago

jordanfarrell commented 5 months ago

Describe the issue:

I have two signals in my movies: ch1 = green non-functional signal, ch2 = red calcium signal (jRGECO1a). When I assign Ch2 to the functional signal in the ops file, it fails to extract meaningful ROIs from the second functional channel. Assigning Ch1 vs Ch2 fails to extract relevant ROIs from the jRGECO channel. Splitting the data and running the jRGECO data separately works as expected and extracts calcium signals from clearly defined cells.

This error only occurs if the data comes from a .raw file (ThorImage), but not if I use .sbx data (neurolabware). Is there something about the .raw files that is preventing the channel assignment? For .raw files, note that the average intensity outputs will always show the non-functional channel as the channel 1, no matter which one I choose as the functional channel. Whereas when I load in an .sbx file, the first channel in the gui is the jRGECO channel when I select it as the functional channel.

Thanks in advance for taking a look!

Reproduce the code example:

n/a, used the GUI

Error message:

n/a, no errors

Version information:

v0.14.4

Context for the issue:

No response