cortex-lab / Suite2P

Tools for processing 2P recordings
Other
120 stars 65 forks source link

combine sbx files #184

Open smilingtoad opened 2 years ago

smilingtoad commented 2 years ago

Hi suite2p community -

I have a small issue I am hoping people can help me out with.

We are using the MATLAB based suite2p along with Scanbox for image acquisition. Scanbox saves files in .sbx format and I need a way to combine a bunch of these small .sbx files into one continuous .sbx file. Dario Ringach of Scanbox seems to think there is a way to do this using suite2p.

Any help or advice would be great!

generalciao commented 2 years ago

This has been solved and discussed in the python version repository here: https://github.com/MouseLand/suite2p/issues/748

Concatenate binary .sbx files in the Windows CMD prompt using the "copy" command with /b flag and + operator, or using wildcards. Then rename any of the associated .mat files to match the filename of the concatenated .sbx file. Optionally, you can test the concatenated files using standard scanbox tools (like sbxaligntool) prior to importing them in suite2p.

copy st1_000_001.sbx /B + st1_000_002.sbx /B + st1_000_003.sbx /B st1_000_concatenated.sbx /B

copy *.sbx /B st1_000_concatenated.sbx /B