MouseLand / suite2p

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

BUG: Bruker input using Ch2 only. #1148

Open LABell2842 opened 1 month ago

LABell2842 commented 1 month ago

Describe the issue:

I am trying to run single plane Bruker files, but my recording uses Ch2 only. Based on the documentation, I reasoned that the following settings should work...

ops['input_format'] = "bruker" ops['bruker'] = True ops['nchannels'] = 1 ops['functional_chan'] = 1

I've tried various combinations with altering these settings, but I can't seem to get it to run bruker-type files with only Ch2 in the directory. Is this because the bruker setting "looks for files containing ‘Ch1’, and will assume all additional files are ‘Ch2’.", but it give the error 'could not find any tiffs' because there are no Ch1 files? The settings work on Time-series using both channels, where Ch1 & Ch2 bruker .ome.tifs are present in the directory. Is there a work around to get suite2p to process bruker Ch2 files as a single/functional channel?

Reproduce the code example:

passing these settings to a .py script for processing...  This works for 2-channel recordings (with adjusted settings (nchannels=2 & functional_chan=2). I also have the same problem using the gui with 'bruker' selected from the input_format drop down. Again, it works for recordings with Ch1 & Ch2 files, but I've not found a way to run with Ch2 only.

ops['input_format'] = "bruker"
ops['bruker'] = True
ops['nchannels'] = 1
ops['functional_chan'] = 1

Error message:

bruker
Could not find any tiffs
Error processing

Version information:

Name Version Build Channel

suite2p 0.14.4 pypi_0 pypi

Context for the issue:

I am trying to integrate user-defined settings as arguments for use by different people in the lab. Some use Ch1 & Ch2 recordings (Ch2 is gcamp & Ch1 is tdT), some use only Ch2 (gcamp), and some use only Ch1 (jrgeco), so as of now, there is are several in the lab using the pipeline, but suite2p is not able to process their data.