Skip to content
Snippets Groups Projects
Steven.le-cam's avatar
LeCam Steven authored
7bcee768
History

LFP Despiking and Spike Sorting

Description

Implement the method described in "Le Cam et al. 2023, A Bayesian approach for simultaneous spike/LFP separation and spike sorting, Journal of Neural Engineering, 2023" Simultaneous spike sorting and spike/lfp separation based on an iterative variational bayesian approach. Modify the main.m file to load your own data. The current version can only process one channel at a time. The code comes with two examples:

  • 20 seconds of simulated signals from "Le Cam et. al., 2023"
  • 10 minutes of simulated signals from "Camunas-Mesa et. al., 2013"

The main parameters of the method can be changed on top of the main file, in particular the spike detection threshold factor 'coef' and the number of wavelet features 'nbfeat' for classification.

Configuration

Matlab Wavelet toolbox required

Support

This is a first sharable version of the code, probably need some further amelioration to be more user friendly and robust to any kind of data. Please send me an email (steven.le-cam@univ-lorraine.fr) for questions or if you need any support, I will be happy to help and bug corrections will benefit to future users of the code

License

If you use this code to process your data, please cite "Le Cam et al. 2023, A Bayesian approach for simultaneous spike/LFP separation and spike sorting, Journal of Neural Engineering, 2023" (DOI 10.1088/1741-2552/acc210)