Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

How to convert .continuous format to flat binary for using in Klusta #85

Open
saman-abbaspoor opened this issue Feb 25, 2020 · 1 comment

Comments

@saman-abbaspoor
Copy link

Hello everyone,

We are using a 64 channel probe for recording and the data is stored in .continuous format. Each channel has a separate file. For spike sorting, I would like to convert the .continuous files to flat binary .dat for use in Klusta. Is there any script for such a purpose?

I would appreciate if you can give me instruction on how to proceed.

@jsiegle
Copy link
Member

jsiegle commented Feb 25, 2020

Hi! This is straightforward to do using the Python 3 OpenEphys.py module:

from OpenEphys import loadFolderToArray
import numpy as np
import os

directory = '<path_to_continuous_files>'
data = loadFolderToArray(directory, dtype=np.int16)
data.tofile(os.path.join(directory, 'continuous.dat'))

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

No branches or pull requests

2 participants