methlabUZH / automagic

Automagic
GNU General Public License v3.0
95 stars 32 forks source link

how to add raw data #7

Closed MRBMELMH closed 4 years ago

MRBMELMH commented 5 years ago

Dear Nicolas, Firstly, thank you and your team created such a great work! It‘s awesome! I have a problem about how to add my EEG data to the menu?My data was recorded from the g.recorder, which can't be read in Automagic .And then I changed the file extension .set , it sill can't be read. Could you tell me the solution of this problem? 图片 图片

   Thanks  sincerely
   M.LMH 
nickilanger commented 5 years ago

Dear Ma Rui,

Can you import the .hdf5 files into EEGLab (without using Automagic)? If so, you can simply import the files into EEGLab first and then save it as a .mat file. It seems that you saved the files as .set. The .set format is not compatible with Automagic.

If you have imported the files with EEGLab, MATLAB creates an structures named "EEG". Save this "EEG" structure with the "save" function:

save('yourfilename.mat','EEG')

Then Automagic can definitely load the .mat file.

Best,

Nicolas

MRBMELMH commented 5 years ago

Dear Nicolas,

Thanks for your reply. This problem has already be solved. I have another question : Can I use a 64-channel data in Automagic?

Thanks Ma Rui

nickilanger commented 5 years ago

Dear Ma Rui,

Nice to hear that the data import did work now. Sure, you can use 64-channel data or any other electrodes EEG system. All you need is the electrodes coordinates file for your EEG system.

MRBMELMH commented 5 years ago

Dear Nicolas,

Thank you for your reply. I still want to ask one more question: how can I save the result as .set file?And which of the datasets is the final dataset? 图片

Thanks sincerely, Ma Rui

nickilanger commented 5 years ago

The gp_m2 is the final (cleaned) data set. If you load this one to MATLAB you will see a EEG and automagic structure. The EEG structure is the same as from EEGLab, so you can simple continue to work with EEGLab function (e.g. save as a .set file).

Best,

Nicolas

MRBMELMH commented 5 years ago

But when I save it as .set file,and load it in EEGLAB,there only have 63 channels, I don't know which channel has been excluded. In the Automagic processing, I didn't choose to exclude any channel.If I don't know which channel has been excluded, I can't do channel location . 77a8a0c47811b0b8a1868a624d261ad

nickilanger commented 5 years ago

I don't know what settings you have used for automagic (which reference? did you use bad channel identification?). are you sure that there were 64 channels before Automagic. It might be that the reference channel is not loaded in a first place. You can check the channels by looking at the EEG.chanlocs structure.There you see the labels and coordinates of all used electrodes.

MRBMELMH commented 5 years ago

This is my settings: 690feffc72949c7cf4fc540bad29873 e6c654648b458170be8193364270451 Actually, there are 64 EEG channels and 2 EOG channels.

nickilanger commented 5 years ago

Did you open the raw files (before preprocessed in Automagic) in EEGlab? What's the number of channels there? or check EEG.chanlocs.

I see in your setting that you selected two electrodes as references channel (63 and 64). Are you sure you recorded this with two reference electrodes? Are you sure they are in the raw recordings?

MRBMELMH commented 5 years ago

YES , I chose two reference channels ,which were putting at two earlobes. And now ,i have another problem that the processing is at a standstill in PREP : 图片 And there are my settings: 图片 图片

nickilanger commented 5 years ago

could you send me a raw file please. so i can take a look at the two reference electrode problem.

It seems that PREP is working. It just takes a lot of processing time depending on your computer.

Best,

Nicolas

MRBMELMH commented 5 years ago

OK,I'll send my raw files to you in e-mail.

Thaanks MA RUI

nickilanger commented 5 years ago

Hi Ma rui,

I did not receive any raw files.

Best,

Nicolas

Nicolas Langer Assistant Professor of Methods of Plasticity Research University of Zurich Andreasstrasse 15 (Office AND.4.58) 8050, Zurich, Switzerland n.langer@psychologie.uzh.ch phone: (+41) 44 635 34 14 http://www.psychology.uzh.ch/en/areas/nec/plafor.html

On Aug 8, 2019, at 3:49 PM, MRBMELMH notifications@github.com wrote:

OK,I'll send my raw files to you in e-mail.

Thaanks MA RUI

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/methlabUZH/automagic/issues/7?email_source=notifications&email_token=AGGDUJDTLM6ZLAON72EAC5DQDQP6DA5CNFSM4IJCQG52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD33VM2Y#issuecomment-519525995, or mute the thread https://github.com/notifications/unsubscribe-auth/AGGDUJELIKCSLSQJROAQSJDQDQP6DANCNFSM4IJCQG5Q.