This code uses FieldTrip and non-negative matrix factorization (NMF) to classify iEEG beta-band suppression pre-speech onset from the Mocha dataset collected in the Chang Lab at UCSF. The abstract associated with the work is available here, with the accompanying figure available here, upon request.
This code uses Matlab 2019b and the Bioinformatics Toolbox version 4.13.
Data collected from the Mocha dataset is available on UCSF Box: link.
You will first need to request access from me. Upload the dataset into the data directory to implement this code.
All raw data are cleaned and figures are generated using EC118_main.m
and output in the plots directory. You can comment and uncomment the figures you want to run.
- To practice your Matlab programming:
- Modify the configuration parameters in
fun_cfg.m
- Code your own functions in place of
fun_trialTimings.m
,fun_preprocessing.m
, orfun_plotNNMFclusters.m
- Modify the configuration parameters in
- There is a bug in plot 5, this is will be resolved shortly.
This software is open source and under an MIT license.