Hi @richard ,
Thank you for your support, I can read the .dat file now and I also can visualize the signal.
However, after loading the file by mne, it does not contain the configuration for channels/electrodes, I know the order of channels but I don’t know how to set up or add the location. Could you help me with this task?
Because if the data does not have the information related to the location of channels, I cannot applied ICA or topo maps.
Attach the link to the channel’s order of my data:
I have used mne.create_info as the code below, however, I still got issues with channels
ch_names = ['Fp1', 'AF3', 'F3', 'F7', 'FC5', 'FC1', 'C3', 'T7', 'CP5', 'CP1', 'P3', 'P7', 'PO3', 'O1',
'Oz', 'Pz', 'Fp2', 'AF4', 'Fz', 'F4', 'F8', 'FC6', 'FC2', 'Cz', 'C4', 'T8', 'CP6', 'CP2',
'P4', 'P8', 'PO4', 'O2']
sampling_freq = 128 # in Hertz
info = mne.create_info(ch_names=ch_names, sfreq=sampling_freq)
print(info)
raw1 = mne.io.RawArray(raw[0][0:32,0:8064],info=info)
raw1.plot()
ica = mne.preprocessing.ICA(n_components=20, random_state=0)
ica.fit(raw1.copy().filter(30, 40))
ica.plot_components(outlines="skirt")```