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

Opening the binary data #90

Open
matinsaba opened this issue Dec 29, 2020 · 4 comments
Open

Opening the binary data #90

matinsaba opened this issue Dec 29, 2020 · 4 comments

Comments

@matinsaba
Copy link

I want to get the data from specific channels in binary data like the way that open_ephys format lists the channels. Can anyone help me with that ?

@jsiegle
Copy link
Member

jsiegle commented Jan 2, 2021

Are you loading the data in Matlab (load_open_ephys_binary.m) or Python (Python3/Binary.py)? Either way, the data will be loaded as a matrix with dimensions of samples x channels. Selecting one value in the second dimension (e.g. data[:,1] in Python) will return data for a specific channel.

@Alkohost
Copy link

Alkohost commented Mar 1, 2021

Would be nice to have a Matlab reader with optional loading of the selected channels if a data size is too huge and a memory is not enough. Has anyone solved this problem?

@aacuevas
Copy link
Collaborator

aacuevas commented Mar 1, 2021

For big datasets the MATLAB reader has an optional 'mmap' option that loads the file in memory mapped mode. In this mode the file is not loaded to memory in one go, but chunks are loaded and unloaded automatically by MATLAB as needed. In this case, it would be possible to load the data in this mode and just copy the required channels into a different array.

See help load_open_ephys_binary for more info on this mode.

@Alkohost
Copy link

Alkohost commented Mar 1, 2021

Thanks, this is a good way.

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

4 participants