microstate analysis2

Does anyone know how to use Python to calculate the microstate parameters of EEG, which refers to the calculation of various parameters of GFP, such as mean duration, occurrence frequency, transition probability, etc.Thank you.

Hello,

Could you please look through the links we shared in the last 2 posts about the same topic? You have 2 options integrated with MNE-Python:

  • mne-microstates, which is a minimal implementation of the microstates clustering.
  • pycrostates, which includes visualization, tutorials, segmentation and segmentation metrics.

You will find GFP, mean duration, occurence, transition probabilities in pycrostates; with tutorials.

Best,
Mathieu

2 Likes

Yes, I know. But its examples are all based on. fif files, while mine is a. set file, so I can’t understand it, it’s too difficult.

Please go back to the basic tutorials of MNE-Python. .fif or .set files are both read with mne.io.read_raw which always return the same Raw object.

See: Tutorials — MNE 1.6.1 documentation

It is difficult to help you further if you don’t take the time to cover the basics.

Mathieu

2 Likes