Skip to content

MattNolanLab/SpatialEphysAnalysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extracellular electrophysiology analysis for tetrode data

Overview

Analysis for in vivo electrophysiology recordings saved in open ephys format.

The current pipeline runs on a linux computer and uses MountainSort 3 to automatically sort data. The analysis is set up to minimize user interaction as much as possible, and analyses are initiated by copying files to a designated computer. Sorted clusteres are automatically curated and output plots of spatial firing properties are generated. Spatial scores (grid score, HD score, speed score) are calculated and saved in pickle (pandas) data frames.

The main script (control_sorting_analysis.py) monitors a designated folder (nolanlab/to_sort/recordings) on the computer, and calls all processing scripts if users put recordings in this folder (and added a copied.txt file as well to indicate that copying is complete). Another option is to add a text file with a list of folders on the server that the script will copy when the 'priority' sorting folder is empty.

(1) OpenEphys continuous files are converted to mda format (in Python) both tetrode by tetrode (4 files) and all 16 channels together into one mda file. The folder structure required by MountainSort (MS) is created in this step, dead channels are removed.

(2) MountainSort (MS) is called (via a shell script written by the previous Python step) to perform spike sorting in the mda files, and saves the results in the local folder

(3) Post-processing is done. This makes plots of firing fields, light stimulation plots depending on the data, and saves the output on the lab's server based on a parameter file that's saved by the user in the original recording folder.

Please see more detailed documentation in the /documentation folder.

Example output figures

image

How to contribute

Please submit an issue to discuss.

Contributors