SlideShare a Scribd company logo
Coregistration in mne-python
Subjects with MRI
General Notes
•

The GUI uses the traits library
which supports different
backends but seems to work
best with QT4 currently. To
make QT4 the default:
• In Canopy: change
Preferences/Python/PyLab
backend
• In a terminal: $ export
ETS_TOOLKIT=“qt4”

•

The coregistration GUI is a
recent addition to MNEPython; please report
unexpected behavior to the
mne-analysis mailing list
Overview
Select MRI

Scale the MRI
3D View

Set MRI
Fiducials

Find Head Shape
to MRI Coregistration

Select Raw File
Control the
3D View

Save the Result
Input Files
•

Specify the directory containing MRIsubjects (subjects_dir)

•

Select the Raw file for which to do the
coregistration

•

If it is not automatically selected, select
the MRI subject

•

If a fiducials file is found in the MRI
directory it is automatically loaded and
you can skip the next slide. If not, load a
file manually, or specify the fiducials as
described on the next slide.
Fiducials
•

Select the fiducial you want to
modify, and then click on the
head model to specify the
position. Fiducials are
displayed as small colored
spheres.

•

When all the fiducials are
specified, save the positions
so they can be loaded in the
future.

•

Lock the fiducials to proceed
to the coregistration.
Coregistration
•

Since the MRI stems from the
same subject and thus has the
right size, make sure scaling is
off (“No scaling”)

•

Use LPA and RPA for an initial
approximate alignment
Coregistration
•

In case the head shape
contains outlier points, head
shape points can be omitted
based on their distance from

the MRI head surface (for the
sample data, 10 mm is a good
distance)
Coregistration
•

The head shape and MRI are
initially aligned using the
Nasion; in order to modify the
initial alignment use the
translation parameters

•

Then use the automatic fitting
functions and manual
parameter adjustment to find
a satisfactory coregistration
Saving
•

Finally hit the save button to save the
head-MRI transformation in a *-trans.fif
file

•

When creating the forward solution,
specify this file as the mri argument

More Related Content

What's hot

Python Virtual Environment.pptx
Python Virtual Environment.pptxPython Virtual Environment.pptx
Python Virtual Environment.pptx
Abdullah al Mamun
 
PyTorch Introduction
PyTorch IntroductionPyTorch Introduction
PyTorch Introduction
Yash Kawdiya
 
Introduction to the basics of Python programming (part 1)
Introduction to the basics of Python programming (part 1)Introduction to the basics of Python programming (part 1)
Introduction to the basics of Python programming (part 1)
Pedro Rodrigues
 
Python presentation by Monu Sharma
Python presentation by Monu SharmaPython presentation by Monu Sharma
Python presentation by Monu Sharma
Mayank Sharma
 
Python in real world.
Python in real world.Python in real world.
Python in real world.
Alph@.M
 
Intro to Python
Intro to PythonIntro to Python
Intro to Python
primeteacher32
 
Introduction to python programming
Introduction to python programmingIntroduction to python programming
Introduction to python programming
Srinivas Narasegouda
 
Python Tutorial Part 2
Python Tutorial Part 2Python Tutorial Part 2
Python Tutorial Part 2
Haitham El-Ghareeb
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming Language
Laxman Puri
 
Python course syllabus
Python course syllabusPython course syllabus
Python course syllabus
Sugantha T
 
PyTorch for Deep Learning Practitioners
PyTorch for Deep Learning PractitionersPyTorch for Deep Learning Practitioners
PyTorch for Deep Learning Practitioners
Bayu Aldi Yansyah
 
Python NumPy Tutorial | NumPy Array | Edureka
Python NumPy Tutorial | NumPy Array | EdurekaPython NumPy Tutorial | NumPy Array | Edureka
Python NumPy Tutorial | NumPy Array | Edureka
Edureka!
 
Python programming
Python  programmingPython  programming
Python programming
Ashwin Kumar Ramasamy
 
Python - An Introduction
Python - An IntroductionPython - An Introduction
Python - An Introduction
Swarit Wadhe
 
Python Tutorial Part 1
Python Tutorial Part 1Python Tutorial Part 1
Python Tutorial Part 1
Haitham El-Ghareeb
 
Python
PythonPython
Python programming ppt.pptx
Python programming ppt.pptxPython programming ppt.pptx
Python programming ppt.pptx
nagendrasai12
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Ayshwarya Baburam
 
Python Crash Course
Python Crash CoursePython Crash Course
Python Crash Course
Haim Michael
 
Introduction to PyTorch
Introduction to PyTorchIntroduction to PyTorch
Introduction to PyTorch
Jun Young Park
 

What's hot (20)

Python Virtual Environment.pptx
Python Virtual Environment.pptxPython Virtual Environment.pptx
Python Virtual Environment.pptx
 
PyTorch Introduction
PyTorch IntroductionPyTorch Introduction
PyTorch Introduction
 
Introduction to the basics of Python programming (part 1)
Introduction to the basics of Python programming (part 1)Introduction to the basics of Python programming (part 1)
Introduction to the basics of Python programming (part 1)
 
Python presentation by Monu Sharma
Python presentation by Monu SharmaPython presentation by Monu Sharma
Python presentation by Monu Sharma
 
Python in real world.
Python in real world.Python in real world.
Python in real world.
 
Intro to Python
Intro to PythonIntro to Python
Intro to Python
 
Introduction to python programming
Introduction to python programmingIntroduction to python programming
Introduction to python programming
 
Python Tutorial Part 2
Python Tutorial Part 2Python Tutorial Part 2
Python Tutorial Part 2
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming Language
 
Python course syllabus
Python course syllabusPython course syllabus
Python course syllabus
 
PyTorch for Deep Learning Practitioners
PyTorch for Deep Learning PractitionersPyTorch for Deep Learning Practitioners
PyTorch for Deep Learning Practitioners
 
Python NumPy Tutorial | NumPy Array | Edureka
Python NumPy Tutorial | NumPy Array | EdurekaPython NumPy Tutorial | NumPy Array | Edureka
Python NumPy Tutorial | NumPy Array | Edureka
 
Python programming
Python  programmingPython  programming
Python programming
 
Python - An Introduction
Python - An IntroductionPython - An Introduction
Python - An Introduction
 
Python Tutorial Part 1
Python Tutorial Part 1Python Tutorial Part 1
Python Tutorial Part 1
 
Python
PythonPython
Python
 
Python programming ppt.pptx
Python programming ppt.pptxPython programming ppt.pptx
Python programming ppt.pptx
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Python Crash Course
Python Crash CoursePython Crash Course
Python Crash Course
 
Introduction to PyTorch
Introduction to PyTorchIntroduction to PyTorch
Introduction to PyTorch
 

Similar to MNE-Python Coregistration

MNE-Python Scale MRI
MNE-Python Scale MRIMNE-Python Scale MRI
MNE-Python Scale MRI
mne-python
 
MNE-Pythyon Scale MRI
MNE-Pythyon Scale MRIMNE-Pythyon Scale MRI
MNE-Pythyon Scale MRI
mne-python
 
Mne-Pythyon Coregistration
Mne-Pythyon CoregistrationMne-Pythyon Coregistration
Mne-Pythyon Coregistration
Christian Brodbeck
 
What you need to remember when you upload to CPAN
What you need to remember when you upload to CPANWhat you need to remember when you upload to CPAN
What you need to remember when you upload to CPAN
charsbar
 
The PeriCAT Framework
The PeriCAT FrameworkThe PeriCAT Framework
The PeriCAT Framework
PERICLES_FP7
 
Raptor user manual3.0
Raptor user manual3.0Raptor user manual3.0
Raptor user manual3.0
Elizabeth Reyna
 
Data analytics in the cloud with Jupyter notebooks.
Data analytics in the cloud with Jupyter notebooks.Data analytics in the cloud with Jupyter notebooks.
Data analytics in the cloud with Jupyter notebooks.
Graham Dumpleton
 
Crystal tr///SAP Design Studio online training by design studio Export-24/7//...
Crystal tr///SAP Design Studio online training by design studio Export-24/7//...Crystal tr///SAP Design Studio online training by design studio Export-24/7//...
Crystal tr///SAP Design Studio online training by design studio Export-24/7//...
venkat training
 
Hibernate Framework
Hibernate FrameworkHibernate Framework
Icpp power ai-workshop 2018
Icpp power ai-workshop 2018Icpp power ai-workshop 2018
Icpp power ai-workshop 2018
Ganesan Narayanasamy
 
Building Dashboards in JMP.pptx
Building Dashboards in JMP.pptxBuilding Dashboards in JMP.pptx
Building Dashboards in JMP.pptx
PrasadPatil250675
 
Performant Django - Ara Anjargolian
Performant Django - Ara AnjargolianPerformant Django - Ara Anjargolian
Performant Django - Ara Anjargolian
Hakka Labs
 
distage: Purely Functional Staged Dependency Injection; bonus: Faking Kind Po...
distage: Purely Functional Staged Dependency Injection; bonus: Faking Kind Po...distage: Purely Functional Staged Dependency Injection; bonus: Faking Kind Po...
distage: Purely Functional Staged Dependency Injection; bonus: Faking Kind Po...
7mind
 
Differences of Deep Learning Frameworks
Differences of Deep Learning FrameworksDifferences of Deep Learning Frameworks
Differences of Deep Learning Frameworks
Seiya Tokui
 
Machine learning Experiments report
Machine learning Experiments report Machine learning Experiments report
Machine learning Experiments report
AlmkdadAli
 

Similar to MNE-Python Coregistration (15)

MNE-Python Scale MRI
MNE-Python Scale MRIMNE-Python Scale MRI
MNE-Python Scale MRI
 
MNE-Pythyon Scale MRI
MNE-Pythyon Scale MRIMNE-Pythyon Scale MRI
MNE-Pythyon Scale MRI
 
Mne-Pythyon Coregistration
Mne-Pythyon CoregistrationMne-Pythyon Coregistration
Mne-Pythyon Coregistration
 
What you need to remember when you upload to CPAN
What you need to remember when you upload to CPANWhat you need to remember when you upload to CPAN
What you need to remember when you upload to CPAN
 
The PeriCAT Framework
The PeriCAT FrameworkThe PeriCAT Framework
The PeriCAT Framework
 
Raptor user manual3.0
Raptor user manual3.0Raptor user manual3.0
Raptor user manual3.0
 
Data analytics in the cloud with Jupyter notebooks.
Data analytics in the cloud with Jupyter notebooks.Data analytics in the cloud with Jupyter notebooks.
Data analytics in the cloud with Jupyter notebooks.
 
Crystal tr///SAP Design Studio online training by design studio Export-24/7//...
Crystal tr///SAP Design Studio online training by design studio Export-24/7//...Crystal tr///SAP Design Studio online training by design studio Export-24/7//...
Crystal tr///SAP Design Studio online training by design studio Export-24/7//...
 
Hibernate Framework
Hibernate FrameworkHibernate Framework
Hibernate Framework
 
Icpp power ai-workshop 2018
Icpp power ai-workshop 2018Icpp power ai-workshop 2018
Icpp power ai-workshop 2018
 
Building Dashboards in JMP.pptx
Building Dashboards in JMP.pptxBuilding Dashboards in JMP.pptx
Building Dashboards in JMP.pptx
 
Performant Django - Ara Anjargolian
Performant Django - Ara AnjargolianPerformant Django - Ara Anjargolian
Performant Django - Ara Anjargolian
 
distage: Purely Functional Staged Dependency Injection; bonus: Faking Kind Po...
distage: Purely Functional Staged Dependency Injection; bonus: Faking Kind Po...distage: Purely Functional Staged Dependency Injection; bonus: Faking Kind Po...
distage: Purely Functional Staged Dependency Injection; bonus: Faking Kind Po...
 
Differences of Deep Learning Frameworks
Differences of Deep Learning FrameworksDifferences of Deep Learning Frameworks
Differences of Deep Learning Frameworks
 
Machine learning Experiments report
Machine learning Experiments report Machine learning Experiments report
Machine learning Experiments report
 

Recently uploaded

快速办理(PU毕业证书)普渡大学毕业证文凭证书一模一样
快速办理(PU毕业证书)普渡大学毕业证文凭证书一模一样快速办理(PU毕业证书)普渡大学毕业证文凭证书一模一样
快速办理(PU毕业证书)普渡大学毕业证文凭证书一模一样
cfk7atz3
 
The Enchantment and Shadows_ Unveiling the Mysteries of Magic and Black Magic...
The Enchantment and Shadows_ Unveiling the Mysteries of Magic and Black Magic...The Enchantment and Shadows_ Unveiling the Mysteries of Magic and Black Magic...
The Enchantment and Shadows_ Unveiling the Mysteries of Magic and Black Magic...
Phoenix O
 
Kala jadu (black magic) expert,Black magic specialist in Dubai vashikaran spe...
Kala jadu (black magic) expert,Black magic specialist in Dubai vashikaran spe...Kala jadu (black magic) expert,Black magic specialist in Dubai vashikaran spe...
Kala jadu (black magic) expert,Black magic specialist in Dubai vashikaran spe...
makhmalhalaaay
 
312 A Wise Woman of Abel Beth Maakah Saves The Town
312 A Wise Woman of Abel Beth Maakah Saves The Town312 A Wise Woman of Abel Beth Maakah Saves The Town
312 A Wise Woman of Abel Beth Maakah Saves The Town
Rick Peterson
 
Deerfoot Church of Christ Bulletin 6 16 24
Deerfoot Church of Christ Bulletin 6 16 24Deerfoot Church of Christ Bulletin 6 16 24
Deerfoot Church of Christ Bulletin 6 16 24
deerfootcoc
 
Important places of Vrindavan-Braj Mandal Parikrama .pptx
Important places of Vrindavan-Braj Mandal Parikrama .pptxImportant places of Vrindavan-Braj Mandal Parikrama .pptx
Important places of Vrindavan-Braj Mandal Parikrama .pptx
ShyamSundar991228
 
A Free eBook ~ Valuable LIFE Lessons to Learn ( 5 Sets of Presentations)...
A Free eBook ~ Valuable LIFE Lessons    to Learn   ( 5 Sets of Presentations)...A Free eBook ~ Valuable LIFE Lessons    to Learn   ( 5 Sets of Presentations)...
A Free eBook ~ Valuable LIFE Lessons to Learn ( 5 Sets of Presentations)...
OH TEIK BIN
 
The Hope of Salvation - Jude 1:24-25 - Message
The Hope of Salvation - Jude 1:24-25 - MessageThe Hope of Salvation - Jude 1:24-25 - Message
The Hope of Salvation - Jude 1:24-25 - Message
Cole Hartman
 
A375 Example Taste the taste of the Lord, the taste of the Lord The taste of...
A375 Example Taste the taste of the Lord,  the taste of the Lord The taste of...A375 Example Taste the taste of the Lord,  the taste of the Lord The taste of...
A375 Example Taste the taste of the Lord, the taste of the Lord The taste of...
franktsao4
 
How to Stop a Divorce and Save Your Marriage: Divorce Spells That Really Work...
How to Stop a Divorce and Save Your Marriage: Divorce Spells That Really Work...How to Stop a Divorce and Save Your Marriage: Divorce Spells That Really Work...
How to Stop a Divorce and Save Your Marriage: Divorce Spells That Really Work...
Traditional Healer, Love Spells Caster and Money Spells That Work Fast
 
Sanatan Vastu | Experience Great Living | Vastu Expert
Sanatan Vastu | Experience Great Living | Vastu ExpertSanatan Vastu | Experience Great Living | Vastu Expert
Sanatan Vastu | Experience Great Living | Vastu Expert
Sanatan Vastu
 
English - The Book of Ruth - King James Bible.pdf
English - The Book of Ruth - King James Bible.pdfEnglish - The Book of Ruth - King James Bible.pdf
English - The Book of Ruth - King James Bible.pdf
Filipino Tracts and Literature Society Inc.
 
The_Chronological_Life_of_Christ_Part_104_Repentance_and_Restoration
The_Chronological_Life_of_Christ_Part_104_Repentance_and_RestorationThe_Chronological_Life_of_Christ_Part_104_Repentance_and_Restoration
The_Chronological_Life_of_Christ_Part_104_Repentance_and_Restoration
Network Bible Fellowship
 

Recently uploaded (13)

快速办理(PU毕业证书)普渡大学毕业证文凭证书一模一样
快速办理(PU毕业证书)普渡大学毕业证文凭证书一模一样快速办理(PU毕业证书)普渡大学毕业证文凭证书一模一样
快速办理(PU毕业证书)普渡大学毕业证文凭证书一模一样
 
The Enchantment and Shadows_ Unveiling the Mysteries of Magic and Black Magic...
The Enchantment and Shadows_ Unveiling the Mysteries of Magic and Black Magic...The Enchantment and Shadows_ Unveiling the Mysteries of Magic and Black Magic...
The Enchantment and Shadows_ Unveiling the Mysteries of Magic and Black Magic...
 
Kala jadu (black magic) expert,Black magic specialist in Dubai vashikaran spe...
Kala jadu (black magic) expert,Black magic specialist in Dubai vashikaran spe...Kala jadu (black magic) expert,Black magic specialist in Dubai vashikaran spe...
Kala jadu (black magic) expert,Black magic specialist in Dubai vashikaran spe...
 
312 A Wise Woman of Abel Beth Maakah Saves The Town
312 A Wise Woman of Abel Beth Maakah Saves The Town312 A Wise Woman of Abel Beth Maakah Saves The Town
312 A Wise Woman of Abel Beth Maakah Saves The Town
 
Deerfoot Church of Christ Bulletin 6 16 24
Deerfoot Church of Christ Bulletin 6 16 24Deerfoot Church of Christ Bulletin 6 16 24
Deerfoot Church of Christ Bulletin 6 16 24
 
Important places of Vrindavan-Braj Mandal Parikrama .pptx
Important places of Vrindavan-Braj Mandal Parikrama .pptxImportant places of Vrindavan-Braj Mandal Parikrama .pptx
Important places of Vrindavan-Braj Mandal Parikrama .pptx
 
A Free eBook ~ Valuable LIFE Lessons to Learn ( 5 Sets of Presentations)...
A Free eBook ~ Valuable LIFE Lessons    to Learn   ( 5 Sets of Presentations)...A Free eBook ~ Valuable LIFE Lessons    to Learn   ( 5 Sets of Presentations)...
A Free eBook ~ Valuable LIFE Lessons to Learn ( 5 Sets of Presentations)...
 
The Hope of Salvation - Jude 1:24-25 - Message
The Hope of Salvation - Jude 1:24-25 - MessageThe Hope of Salvation - Jude 1:24-25 - Message
The Hope of Salvation - Jude 1:24-25 - Message
 
A375 Example Taste the taste of the Lord, the taste of the Lord The taste of...
A375 Example Taste the taste of the Lord,  the taste of the Lord The taste of...A375 Example Taste the taste of the Lord,  the taste of the Lord The taste of...
A375 Example Taste the taste of the Lord, the taste of the Lord The taste of...
 
How to Stop a Divorce and Save Your Marriage: Divorce Spells That Really Work...
How to Stop a Divorce and Save Your Marriage: Divorce Spells That Really Work...How to Stop a Divorce and Save Your Marriage: Divorce Spells That Really Work...
How to Stop a Divorce and Save Your Marriage: Divorce Spells That Really Work...
 
Sanatan Vastu | Experience Great Living | Vastu Expert
Sanatan Vastu | Experience Great Living | Vastu ExpertSanatan Vastu | Experience Great Living | Vastu Expert
Sanatan Vastu | Experience Great Living | Vastu Expert
 
English - The Book of Ruth - King James Bible.pdf
English - The Book of Ruth - King James Bible.pdfEnglish - The Book of Ruth - King James Bible.pdf
English - The Book of Ruth - King James Bible.pdf
 
The_Chronological_Life_of_Christ_Part_104_Repentance_and_Restoration
The_Chronological_Life_of_Christ_Part_104_Repentance_and_RestorationThe_Chronological_Life_of_Christ_Part_104_Repentance_and_Restoration
The_Chronological_Life_of_Christ_Part_104_Repentance_and_Restoration
 

MNE-Python Coregistration

  • 2. General Notes • The GUI uses the traits library which supports different backends but seems to work best with QT4 currently. To make QT4 the default: • In Canopy: change Preferences/Python/PyLab backend • In a terminal: $ export ETS_TOOLKIT=“qt4” • The coregistration GUI is a recent addition to MNEPython; please report unexpected behavior to the mne-analysis mailing list
  • 3. Overview Select MRI Scale the MRI 3D View Set MRI Fiducials Find Head Shape to MRI Coregistration Select Raw File Control the 3D View Save the Result
  • 4. Input Files • Specify the directory containing MRIsubjects (subjects_dir) • Select the Raw file for which to do the coregistration • If it is not automatically selected, select the MRI subject • If a fiducials file is found in the MRI directory it is automatically loaded and you can skip the next slide. If not, load a file manually, or specify the fiducials as described on the next slide.
  • 5. Fiducials • Select the fiducial you want to modify, and then click on the head model to specify the position. Fiducials are displayed as small colored spheres. • When all the fiducials are specified, save the positions so they can be loaded in the future. • Lock the fiducials to proceed to the coregistration.
  • 6. Coregistration • Since the MRI stems from the same subject and thus has the right size, make sure scaling is off (“No scaling”) • Use LPA and RPA for an initial approximate alignment
  • 7. Coregistration • In case the head shape contains outlier points, head shape points can be omitted based on their distance from the MRI head surface (for the sample data, 10 mm is a good distance)
  • 8. Coregistration • The head shape and MRI are initially aligned using the Nasion; in order to modify the initial alignment use the translation parameters • Then use the automatic fitting functions and manual parameter adjustment to find a satisfactory coregistration
  • 9. Saving • Finally hit the save button to save the head-MRI transformation in a *-trans.fif file • When creating the forward solution, specify this file as the mri argument