Skip to content

Code to create geometry files for sorting from SpikeGLX metadata

Notifications You must be signed in to change notification settings

Brody-Lab/SGLXMetaToCoords

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

SGLXMetaToCoords

SpikeGLX metadata readers

Code to read SpikeGLX metadata for a given binary, and create a geometry map for spike sorting or other analysis. The output format is set in the code -- see the code comments for details.

This code uses the ~snsGeomMap, present in data taken with SpikeGLX 20230202-phase30 or later. For older data, it reads the ~snsShankMap, and has hardcoded physical dimensions for all Neuropixels probe part numbers. There is an option to create a new metadata file appending the ~snsGeometryMap.

NOTE: the agbondy fork adds a fourth output option (a matlab struct) but keeps the default the same. This has been submitted to Jennifer's repo as a PR so that's why the default behavior was preserved. T This fork sets the default to option 4 (matlab struct) and is what we use in ks2jrc2.

About

Code to create geometry files for sorting from SpikeGLX metadata

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 50.4%
  • MATLAB 49.6%