-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix according to MNE 1.x.x * workshop practicalmeeg * update doc
- Loading branch information
Showing
39 changed files
with
1,318 additions
and
311 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,10 @@ | |
01. Freesurfer anatomical pipeline | ||
================================== | ||
This workflow runs the `Nipype <http://nipype.readthedocs.io/en/latest/#>`_ | ||
Interface wrapping the `recon-all <https://surfer.nmr.mgh.harvard.edu/fswiki/recon-all>`_ | ||
command of Freesurfer. | ||
The solution of MEG inverse problem requires knowledge of the lead field | ||
matrix. A cortical segmentation of the anatomical MRI is necessary to generate | ||
the source space, where the neural activity will be estimated. | ||
|
@@ -16,10 +20,18 @@ | |
Freesurfer. The output of :ref:`reconallnode` node is used as input of another node that | ||
creates the BEM surfaces using the FreeSurfer watershed algorithm. | ||
The workflow generates an HTML report displaying the BEM surfaces as | ||
colored contours overlaid on the T1 MRI images to verify that the surfaces do not intersect. | ||
.. warning:: Make sure that Freesurfer is properly configured before | ||
running this script. | ||
""" | ||
|
||
# Authors: Annalisa Pascarella <[email protected]> | ||
# License: BSD (3-clause) | ||
|
||
# sphinx_gallery_thumbnail_number = 1 | ||
|
||
############################################################################### | ||
# Import modules | ||
# ^^^^^^^^^^^^^^ | ||
|
@@ -41,8 +53,10 @@ | |
# Let us specify the variables that are specific for the data analysis (the | ||
# main directories where the data are stored, the list of subjects and | ||
# sessions, ...) and the variable specific for the particular pipeline | ||
# (MRI path, Freesurfer fir, ...) in a | ||
# :download:`json <https://github.com/neuropycon/ephypype/tree/master/doc/workshop/meg/params.json>` file | ||
# (MRI path, Freesurfer fir, ...) in a |params.json| file | ||
# | ||
# .. |params.json| replace:: | ||
# :download:`json <https://github.com/neuropycon/ephypype/tree/master/doc/workshop/01_meg/params.json>` | ||
|
||
# Read experiment params as json | ||
params = json.load(open("params.json")) | ||
|
@@ -61,7 +75,7 @@ | |
if not os.environ.get('FREESURFER_HOME'): | ||
raise RuntimeError('FREESURFER_HOME environment variable not set') | ||
os.environ["SUBJECTS_DIR"] = subjects_dir | ||
print('SUBJECTS_DIR %s ' % os.environ["SUBJECTS_DIR"]) | ||
print(f'SUBJECTS_DIR {os.environ["SUBJECTS_DIR"]} ') | ||
|
||
|
||
############################################################################### | ||
|
@@ -158,4 +172,12 @@ | |
# ^^^^^^^ | ||
# The output of this workflow is the cortical segmentation of the | ||
# structural data that we find in the ``subjects_dir`` and will be used in | ||
# :ref:`plot_events_inverse` | ||
# :ref:`plot_events_inverse` | ||
# | ||
# .. note:: The main advantage to use this workflow lies in the parallel | ||
# processing provided by nipype engine, that allows segmenting the 19 MRI | ||
# data in less than two days while processing a single MRI generally | ||
# takes one day. | ||
# .. image:: ../../img/graph_FS.png | ||
# :width: 50% | ||
# :align: center |
35 changes: 18 additions & 17 deletions
35
doc/workshop/meg/README.rst → doc/workshop/01_meg/README.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
.. _facedataset: | ||
|
||
|
||
FACE dataset | ||
^^^^^^^^^^^^ | ||
|
||
|
||
|
||
|
||
FACE dataset | ||
^^^^^^^^^^^^ | ||
|
||
These examples demonstrate how to process 1 participant of the |FACE| dataset from |Wakeman_Henson|. The data consist of simultaneous MEG/EEG recordings | ||
from 19 healthy participants performing a visual recognition task. Subjects were presented images of famous, unfamiliar and scrambled faces. | ||
Each subject participated in 6 runs, each 7.5 min in duration. | ||
|
||
.. |FACE| raw:: html | ||
|
||
<a href="https://openneuro.org/datasets/ds000117/versions/1.0.4" target="_blank">FACE</a> | ||
|
||
.. |Wakeman_Henson| raw:: html | ||
|
||
<a href="https://www.nature.com/articles/sdata20151" target="_blank">Wakeman and Henson (2015)</a> | ||
|
||
Here, we focus only on MEG data and use :func:`~ephypype.pipelines.create_pipeline_preproc_meeg` to preprocess the MEG raw data and :func:`~ephypype.pipelines.create_pipeline_source_reconstruction` to perform source reconstruction of time-locked event-related fields. | ||
Each subject participated in 6 runs, each 7.5 min in duration. | ||
|
||
.. |FACE| raw:: html | ||
|
||
<a href="https://openneuro.org/datasets/ds000117/versions/1.0.4" target="_blank">FACE</a> | ||
|
||
.. |Wakeman_Henson| raw:: html | ||
|
||
<a href="https://www.nature.com/articles/sdata20151" target="_blank">Wakeman and | ||
Henson (2015)</a> | ||
|
||
Here, we focus only on MEG data and use :func:`~ephypype.pipelines.create_pipeline_preproc_meeg` to preprocess the MEG raw data and :func:`~ephypype.pipelines.create_pipeline_source_reconstruction` to perform source reconstruction of time-locked event-related fields. |
Oops, something went wrong.