Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appending .continuous files #620

Open
lukehshaw opened this issue Aug 9, 2024 · 1 comment
Open

Appending .continuous files #620

lukehshaw opened this issue Aug 9, 2024 · 1 comment

Comments

@lukehshaw
Copy link

Hello there,
I would like to combine .continuous files that were mistakenly saved in separate recordings. I would like the outputs of this merger to be saved as .continuous files with the same headers etc. to avoid any unnecessary hacking into my spike sorting scripts. Is there a way to do this in Python or Matlab?

@jsiegle
Copy link
Member

jsiegle commented Aug 9, 2024

Hi Luke – there is not an easy way to write .continuous files directly from Python or Matlab, but here are some things that could solve your problem:

Option 1: Load the data into memory, concatenate multiple recordings together, and save the final array in Binary format (e.g. using numpy.ndarray.tofile). If your spike sorter can read this format, you're good to go. Otherwise, you could read the new Binary file into the GUI using the File Reader and save it in Open Ephys format.

Option 2: Concatenate the segments using SpikeInterface (instructions here). This will create an object that includes multiple recording segments which can be passed into the spike sorter of your choice.

Let me know if either of those would work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants