Question
Asked 22nd Feb, 2016

Is it possible to convert EEG dataset into csv file and then analyse using R tool or weka??

actually i know R tool so first que is how to convert edf file into csv or textfile .
2 que is is it possible to analyse this eeg data in R tool,or weka?

Most recent answer

6th Jun, 2020
Ramón Martín-Brufau
University of Murcia
What about the import of the coherence matrix into R? I've been trying to find some information outhere without success. I could use some help.

Popular answers (1)

23rd Feb, 2016
Michael D. Nunez
University of Amsterdam
Usually it is better to import EEG data directly into R, MATLAB or Python from its native file.
For .edf files I found this utility with a quick Google search:
from
3 Recommendations

All Answers (11)

23rd Feb, 2016
Michael D. Nunez
University of Amsterdam
Usually it is better to import EEG data directly into R, MATLAB or Python from its native file.
For .edf files I found this utility with a quick Google search:
from
3 Recommendations
Following up on Michael's post:
Really, it is 'possible' to analyze EEG data in any software; most of the analysis is just basic math. However, there are open-source toolboxes in MATLAB and Python (e.g., EEGLAB, Fieldtrip, ERP PCA Toolkit, mne-python) that have already implemented most common tasks and will save you a lot of effort. R also has some stuff (e.g., I see an eegAnalysis package on CRAN) but I'm not sure how extensive it is.
3 Recommendations
25th Feb, 2016
Clinton Madhu
Amrita Vishwa Vidyapeetham
in weka ,we can save the file as CSV .
26th Feb, 2016
Darshan Khade
VIT University
Clinton m.u i know my friend but u can't import EDF format files in weka .
27th Feb, 2016
William J. Croft
OpenBCI / Lightfield Systems
EDF Browser has some helpful conversion utilities to/from various formats.
1 Recommendation
9th May, 2017
Afshin Shoeibi
University of Granada
I have recorded EEG in .e format. I want to convert .e file to .mat file in matlab for analysis. anyone know how to convert it?
 
 
8th Aug, 2018
Miriam Nieto
Complutense University of Madrid
I highly recommend the use of this page to download data:
Very easy to use. I wasn't able to get data from that page any other way. I hope it's usefull for someone in the future.
1 Recommendation
29th Sep, 2018
C K Roopa
JSS Science and Technology University
is it possible to convert ecg into csv file with lables of fluidic point as the heading
11th Mar, 2019
Bernard Giusiano
Aix-Marseille Université
A very good free tool to read and convert EEG (and MEG) data is AnyWave : http://meg.univ-amu.fr/wiki/AnyWave
1 Recommendation
10th Dec, 2019
Jelle Brouwer
University of Groningen
There is a comprehensive guide by Nienke Meulman ( https://www.nienkemeulman.nl/materials) that shows how you can import the raw EEG files into R. You save the end-product as .rdat files I believe, but if you really wanted to you could probably also export them to .csv.
On the same website is also a tutorial on how to analyze this data, if you were to use the event related potential method.
6th Jun, 2020
Ramón Martín-Brufau
University of Murcia
What about the import of the coherence matrix into R? I've been trying to find some information outhere without success. I could use some help.

Similar questions and discussions

How can I calculate relative band powers (delta, theta, alpha, beta) of EEG signal (edf format) using matlab?
Question
21 answers
  • Dalia El-DibDalia El-Dib
Hi,
I am totally new to the field of EEG signal analysis, but I am exploring it to see potential processing/analysis techniques to be designed and implemented on FPGA for onsite clinical decision support. So, I have raw EEG signal in edf format which I have successfully implemented into matlab and ran the following code to calculate the relative power (based on a code I found online). However, the results do not match some done by another professional in this area (very close, but does not match). Would anybody help me improve the code below to get more accurate results or suggest other venues. Note: if you advise me to go to EEGlab, please point me to the exact steps to do there. 
Thanks in advance!
Any help highly appreciated!
% Fs is my sampling frequency, x is my EDF data imported into matlab
Fs=1000;
t=1/Fs;
S =x;
waveletFunction = 'db8';
[C,L] = wavedec(S,8,waveletFunction);
%% Calculating the coefficients vectors
cD1 = detcoef(C,L,1); %NOISY
cD2 = detcoef(C,L,2); %NOISY
cD3 = detcoef(C,L,3); %NOISY
cD4 = detcoef(C,L,4); %NOISY
cD5 = detcoef(C,L,5); %GAMA
cD6 = detcoef(C,L,6); %BETA
cD7 = detcoef(C,L,7); %ALPHA
cD8 = detcoef(C,L,8); %THETA
cA8 = appcoef(C,L,waveletFunction,8); %DELTA
%%%% Calculation the Details Vectors
D1 = wrcoef('d',C,L,waveletFunction,1); %NOISY
D2 = wrcoef('d',C,L,waveletFunction,2); %NOISY
D3 = wrcoef('d',C,L,waveletFunction,3); %NOISY
D4 = wrcoef('d',C,L,waveletFunction,4); %NOISY
D5 = wrcoef('d',C,L,waveletFunction,5); %GAMMA
D6 = wrcoef('d',C,L,waveletFunction,6); %BETA
D7 = wrcoef('d',C,L,waveletFunction,7); %ALPHA
D8 = wrcoef('d',C,L,waveletFunction,8); %THETA
A8 = wrcoef('a',C,L,waveletFunction,8); %DELTA
POWER_DELTA = (sum(A8.^2))/length(A8);
POWER_THETA = (sum(D8.^2))/length(D8);
POWER_ALPHA = (sum(D7.^2))/length(D7);
POWER_BETA = (sum(D6.^2))/length(D6);
Total=POWER_DELTA+ POWER_THETA+POWER_ALPHA+POWER_BETA;
RELATIVE_DELTA=POWER_DELTA/Total;
RELATIVE_THETA=POWER_THETA/Total;
RELATIVE_ALPHA=POWER_ALPHA/Total;
RELATIVE_BETA=POWER_BETA/Total;
%**************End of Code
Here are my results versus the results I should achieve:
                             Old results                 My results
Relative_delta      0.602487293           0.572298897
Relative_theta      0.187303504           0.196419823
Relative_alpha     0.112981588           0.132041017
Relative_beta       0.073902161           0.099240263

Related Publications

Article
The field of neuroimaging has experienced a tremendous boom due to technological advances in the last ten years and this is also reflected in the electroencephalography / event-related potentials (EEG/ERP) method. This contribution provides an overview of the main EEG/ERP hardware systems and software development currently on the market and the ben...
Got a technical question?
Get high-quality answers from experts.