Page 1 of 1
Offline analysis
Posted: 13 Jul 2012, 16:13
by Neuromed
Hello all, I am new in the BCI2000 community.
I wonder if I can perform offline analysis with this tool. I have edf files and I want to analyze them using BCI2000, can I do that?
Thanks in advance for any help.
Lorena
Re: Offline analysis
Posted: 16 Jul 2012, 08:18
by mellinger
Hi,
BCI2000 OfflineAnalysis can only read data in BCI2000 format. However, if you are using Matlab, you can do the following:
* Load the edf file into Matlab,
* Convert trigger/event information into vectors that have one entry per sample point, and make all these vectors named struct members of a Matlab struct called "states". E.g., when you have events "Present Stimulus", and and events "Hide Stimulus", and each of a number of stimuli associated with a numeric stimulus code, then you might create a variable "states.StimulusCode" and set that to the presented stimulus' code between "Present Stimulus" and "Hide Stimulus" events, and to zero elsewhere.
* Write out the converted data in BCI2000 .dat format, using the "save_bcidat" mex file coming with BCI2000.
Please let me know if you need more information.
Regards,
Juergen
Re: Offline analysis
Posted: 16 Jul 2012, 11:19
by Neuromed
Dear Juergen,
How should I run BCI2000 with MATLAB? What folder should I include in the path?
Regards,
Lorena
Re: Offline analysis
Posted: 16 Jul 2012, 12:11
by mellinger
Either cd to the OfflineAnalysis directory on the Matlab command line, and run OfflineAnalysis from there. Or, on Windows, double-click OfflineAnalysis.bat.
For more information, please see
http://www.bci2000.org/wiki/index.php/U ... e_Analysis.
Regards,
Juergen
Re: Offline analysis
Posted: 16 Jul 2012, 12:32
by Neuromed
Thank you Juergen,
Now I will try doing what you recommended me before.
Rgards,
Lorena