To make it easy for you to get started with GitLab, here's a list of recommended next steps.
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
## Add your files
-[ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
-[ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
-[ ] [Set up project integrations](https://gitlab.univ-lorraine.fr/lecam5/lfp-despiking-and-spike-sorting/-/settings/integrations)
## Collaborate with your team
-[ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
-[ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
-[ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
-[ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
## Test and Deploy
Use the built-in continuous integration in GitLab.
-[ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
-[ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
-[ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
-[ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
-[ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
***
## Name
LFP Despiking and spike Sorting
## Description
Le Cam et al. 2023, A Bayesian approach for simultaneous spike/LFP separation and spike sorting, Journal of Neural Engineering
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' to extract for classification.
## Configuration
Matlab Wavelet toolbox required
## Support
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
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
For open source projects, say how it is licensed.
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)