Read .csv/.RDS files with MNE

External Email - Use Caution

Hi,

My name is Daniel and I'm currently working on my thesis for the Master
Cognitive Science and Artificial Intelligence for Tilburg University in the
Netherlands. I want to create a model that can differentiate between
patients vs non-patients for a particular disorder, based on EEG data.

However, my input data is in the format of a .csv file or alternatively
multiple .RDS files. I've been researching for the past couple of days how
I can have MNE read these files, but I can't seem to figure it out.

Does anyone have a suggestion on what the best way of going about this
problem is? Any help would be much appreciated.

Thanks in advance!

Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200407/c0b78f77/attachment.html

External Email - Use Caution

Hi!

You can try to read the CSV file with pandas (pd.read_csv) and then construct an MNE raw object using mne.io.RawArray (assuming that you have continuous EEG data). For a short summary how to do that see https://mne.tools/stable/auto_examples/io/plot_objects_from_arrays.html.

Clemens

External Email - Use Caution

Use pandas or numpy to read them and convert them to NumPy arrays and
then use EpochsArray, RawArray, etc. to construct the appropriate MNE
objects.

Since you have things in R format -- are you using eeguana? Its
developer, Bruno, is in Tilburg....

Phillip