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
Offline analysis
-
mellinger
- Posts: 1341
- Joined: 12 Feb 2003, 11:06
Re: Offline analysis
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
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
-
Neuromed
- Posts: 3
- Joined: 01 Jun 2012, 16:29
Re: Offline analysis
Dear Juergen,
How should I run BCI2000 with MATLAB? What folder should I include in the path?
Regards,
Lorena
How should I run BCI2000 with MATLAB? What folder should I include in the path?
Regards,
Lorena
-
mellinger
- Posts: 1341
- Joined: 12 Feb 2003, 11:06
Re: Offline analysis
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
For more information, please see
http://www.bci2000.org/wiki/index.php/U ... e_Analysis.
Regards,
Juergen
-
Neuromed
- Posts: 3
- Joined: 01 Jun 2012, 16:29
Re: Offline analysis
Thank you Juergen,
Now I will try doing what you recommended me before.
Rgards,
Lorena
Now I will try doing what you recommended me before.
Rgards,
Lorena
Who is online
Users browsing this forum: No registered users and 0 guests
