Can some one answer my question?

question : How to convert EEG to Source Localized Data

Help Needed !

I wanted EEG recordings to be transformed into source-localized data.(primary current dipoles.)
Also How can i save it(source-localized data) in a text file with one column indicating time points and a second column containing amplitude data. These are in the unit of nAm.
As i found that these software package do such task, these are MNE-Python or the MATLAB toolbox FieldTrip.
But i am new to this,i don’t know proper steps /which scripts /code to use in order to convert eeg recordings to source localized data.
So please someone help me how to complete this . Which code/scripts i have to use from above mentioned software’s(MNE-python/FieldTrip) .

Needed Guidance.

Thank’s,
Arpit

Hi Arpit!

I’m only with familiar with MNE-python out of the packages you suggested.
But MNE-python provides a lot of tutorials on their website (e.g. https://mne.tools/stable/auto_tutorials/source-modeling/plot_dipole_fit.html#sphx-glr-auto-tutorials-source-modeling-plot-dipole-fit-py)

I would say MNE-python is most substantial on non-adaptive filters as Matti Hamalainen (creater of MNE packages) is the very person who built the whole field of the method. But they do provide functions to do other methods - current dipoles and beamformer.

I hope this helps…!

Yuki

thanks for replying .
But still i am confused.i have my EEG recordings and wanted to be transformed into source-localized data.(primary current dipoles.)
Also How can i save it(source-localized data) in a text file with one column indicating time points and a second column containing amplitude data.
i have to use template as i dont have meg recordings but still the picture is not clear .
what steps /procedure i had to follow !

can some one answer my question

I haven’t worked with eeg data, but this seems like a complete example:

https://natmeg.se/learnaboutmeg/meg%20skills/e.%20data%20analysis/e3.%20source%20analysis/source%20localization%20with%20mne.html

‘Compute the source estimates’ is the part you’re interested in, then work back to see how they define each element you need (or go through the file step by step).

The time axis seems to be in stc.times, and the time courses for components in stc.data. Perhaps you can join them, eg with np.vstack (https://numpy.org/doc/stable/reference/generated/numpy.vstack.html) - but check the dimensions.

Once you do this, here is a thread about saving a matrix to a text file: https://stackoverflow.com/questions/22118648/how-to-write-a-numpy-matrix-in-a-text-file-python

Good luck!