# microstates analysis for use with mne-python

**URL:** <https://mne.discourse.group/t/microstates-analysis-for-use-with-mne-python/8112>\
**Category:** Support & Discussions\
**Tags:** eeg\
**Created:** [January 9, 2024, 9:36am UTC](https://mne.discourse.group/t/microstates-analysis-for-use-with-mne-python/8112 "2024-01-09T09:36:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![camellia](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/camellia/32/3347_2.png) [@camellia](https://mne.discourse.group/u/camellia)\
**Post date:** [January 9, 2024, 9:36am UTC](https://mne.discourse.group/t/microstates-analysis-for-use-with-mne-python/8112/1 "2024-01-09T09:36:56Z")

</div>

how to do that?help me

---

<div class="post-metadata">

**Author:** ![mscheltienne](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mscheltienne/32/827_2.png) [@mscheltienne](https://mne.discourse.group/u/mscheltienne)\
**Post date:** [January 9, 2024, 9:46am UTC](https://mne.discourse.group/t/microstates-analysis-for-use-with-mne-python/8112/2 "2024-01-09T09:46:26Z")

</div>

Hello,

I would suggest looking at [Pycrostates Homepage — pycrostates 0.5.0.dev0 documentation](https://pycrostates.readthedocs.io/en/latest/)

Mathieu

---

<div class="post-metadata">

**Author:** ![camellia](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/camellia/32/3347_2.png) [@camellia](https://mne.discourse.group/u/camellia)\
**Post date:** [January 9, 2024, 1:07pm UTC](https://mne.discourse.group/t/microstates-analysis-for-use-with-mne-python/8112/3 "2024-01-09T13:07:03Z")

</div>

Thank you.I know that, but I want to ask how to use the men-python package?

---

<div class="post-metadata">

**Author:** ![mscheltienne](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mscheltienne/32/827_2.png) [@mscheltienne](https://mne.discourse.group/u/mscheltienne)\
**Post date:** [January 9, 2024, 2:17pm UTC](https://mne.discourse.group/t/microstates-analysis-for-use-with-mne-python/8112/4 "2024-01-09T14:17:15Z")

</div>

Hello,

A vague question can not be answered. If you want to know whow to use MNE-Python, you have plenty of documentation and tutorials to read and run to get started.  
Please have a look though:[Tutorials — MNE 1.6.1 documentation](https://mne.tools/stable/auto_tutorials/index.html)  
Especially the introductory tutorials.

MNE-Python capabilities are extended through its ecosystem, among which `mne-microstates` ([GitHub - wmvanvliet/mne\_microstates: Microstate analysis for use with MNE-Python](https://github.com/wmvanvliet/mne_microstates)) is a simple implementation of the clustering part; and `pycrostates` ([Pycrostates Homepage — pycrostates 0.5.0.dev0 documentation](https://pycrostates.readthedocs.io/en/latest/)) is a more recent and improved implementation of microstates analysis (and tools related), using MNE-Python under the hood.

Best,  
Mathieu

---

<div class="post-metadata">

**Author:** ![camellia](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/camellia/32/3347_2.png) [@camellia](https://mne.discourse.group/u/camellia)\
**Post date:** [January 9, 2024, 2:44pm UTC](https://mne.discourse.group/t/microstates-analysis-for-use-with-mne-python/8112/5 "2024-01-09T14:44:01Z")

</div>

Thank you. I just want to know how to write code for EEG microstate analysis in Python.

---

<div class="post-metadata">

**Author:** ![mscheltienne](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mscheltienne/32/827_2.png) [@mscheltienne](https://mne.discourse.group/u/mscheltienne)\
**Post date:** [January 9, 2024, 2:46pm UTC](https://mne.discourse.group/t/microstates-analysis-for-use-with-mne-python/8112/6 "2024-01-09T14:46:32Z")

</div>

Again, please check the links I provided. `Pycrostates` has tutorials to get you started: [Tutorials — pycrostates 0.5.0.dev0 documentation](https://pycrostates.readthedocs.io/en/latest/generated/auto_tutorials/index.html)  
As for all tutorials in MNE and its ecosystem, you can download the associated `.py` or jupyter notebook and run those tutorial to familiarize yourself with the API.  
Feel free to comeback to the forum with questions on specific points you do not understand or issues you encounter.

Mathieu
