Comments (4)
Hi Guido! Hopefully you saw Pavel's response in the Neuropixels Slack channel, but I'll add some more info here so it's archived:
-
The only formatting difference between
.bin
and.dat
files is the extension. They are both flat binary files of signed 16-bit integers. You should be able to pointpykilosort
to the.dat
file and have it work automatically. If you're having trouble with this, let us know. -
There is a difference in the scaling that's applied by the recording software before writing. This doesn't matter for spike sorting, but it will be important for loading the data for further analysis. SpikeGLX writes the raw ADC values from the Neuropixels probe, so converting to microvolts requires knowledge of the gain that was used. Open Ephys scales all samples to have a "bitVolts" value of 0.195, regardless of the amplifier gain.
-
The
analysis-tools
repo is no longer being maintained. Instead, we recommend usingopen-ephys-python-tools
oropen-ephys-matlab-tools
, which we'll be keeping up to date. We just updated theanalysis-tools
README with this info.
from analysis-tools.
Hi Josh, thanks so much for your answer! Great that both raw data files are already flat binary, I should have known but I got thrown off by the existence of the .continuous
files that the OpenEphys outputs in other cases. The scaling is also very good to know, thanks. There is one thing remaining: pykilosort also requires the SpikeGLX .meta
file to run. I can probably write a conversion script that converts the OpenEphys metadata XML file into the meta data from SpikeGLX, but do you know whether such a conversion script already exists?
from analysis-tools.
A notebook for generating a .meta file from an Open Ephys recording directory is available here: https://www.dropbox.com/s/72dbum80z43zkh8/meta_file_generator.ipynb?dl=0
We plan to integrate these functions into open-ephys-python-tools
eventually, but for now you'll just have to run the notebook (editing cells where appropriate).
At the Allen Institute, we have been running pykilosort via SpikeInterface, which can seamlessly read data from both SpikeGLX and Open Ephys. I assume you're using the IBL pipeline for pre/post-processing, but I'd recommend checking out SpikeInterface when you have time.
from analysis-tools.
Thanks Josh, spikeinterface is exactly what I needed, it works great!
from analysis-tools.
Related Issues (20)
- Splitting and Merging .dat Files HOT 3
- Trouble loading events data in matlab when saving in flat binary format with the updated GUI: load_open_ephys_binary.m looks for channels.npy HOT 3
- Binary dat files to Plexon Offline sorter HOT 7
- Failing to read metadata.npy for TTL events in this specific setup HOT 4
- data and timestamp length unequal using load_open_ephys_binary HOT 4
- Session? HOT 1
- Flat binary file has more/less samples than expected HOT 4
- How to convert .continuous format to flat binary for using in Klusta HOT 1
- How to display the specific time point for spikes ? HOT 1
- load_open_ephys_data_faster.m memory error HOT 5
- Import continuous data recorded by neuropixels HOT 11
- Opening the binary data HOT 4
- issue running TT openephys data recorded in binary to Mclust
- Using analysis tools in Jupyter Notebook HOT 4
- Merging multiple OpenEphys binary (continuous.dat) files HOT 1
- Info Channel Header Location HOT 2
- Missing Probeinterface file for Neuropixel 1.0 (Open Ephys)
- recovering timestamps HOT 1
- OEP v0.6.2 Python KeyError: 'source_processor_sub_idx HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from analysis-tools.