eelbrain.pipeline.MneExperiment
- class eelbrain.pipeline.MneExperiment(root=None, find_subjects=True, **state)
Analyze an MEG or EEG experiment
- Parameters:
root (str | None) – the root directory for the experiment (usually the directory containing the ‘meg’ and ‘mri’ directories). The experiment can be initialized without the root for testing purposes.
find_subjects (bool) – Automatically look for subjects in the MEG-directory (default True). Set
find_subjects=False
to initialize the experiment without any files.... – Initial state parameters.
Notes
See also
Guide on using The MneExperiment Pipeline.
Methods
|
Copy files to a different root folder |
|
Expand all constant variables in a template |
|
Find all terminal field names that are relevant for a template. |
|
Modify event order or timing |
|
Format a string (i.e., replace any '{xxx}' fields with their values) |
|
Retrieve a formatted template |
|
Find values for a field taking into account exclusion |
|
Find all files matching a certain pattern |
|
Construct inv string from settings; see |
|
Cycle the experiment's state through all values on the given fields |
|
Iterate through a range on a field with ordered values. |
|
Iterate through all paths conforming to a template given in |
|
Add event labels to events loaded from raw files |
|
Generate Factor for group membership |
|
Label the subjects in ds |
|
Load a parcellation (from an annot file) |
|
Load bad channels |
|
Load the covariance matrix |
|
Load the edf file ("edf-file" template) |
|
Load a |
|
Load a Dataset with stcs for single epochs |
|
Load frequency space single trial data |
|
Load events from a raw file. |
|
Load a Dataset with condition average responses for each subject. |
|
Load evoked source estimates. |
|
Load frequency space evoked data |
|
Load the forward solution |
|
Load the mne-python ICA object |
|
Morlet wavelet induced power and phase in source space. |
|
Load the inverse operator |
|
Retrieve a label as mne Label object |
|
Load sensor neighbor correlation |
|
Load a raw file as mne Raw object. |
|
Load a raw file as mne Raw object. |
|
Load events and return a subset based on epoch and rejection |
|
Load the morph matrix from mrisubject to common_brain |
|
Load the current source space |
|
Create and load spatio-temporal cluster test results |
|
Make sure the annot files for both hemispheres exist |
|
Write the bad channel definition file for a raw file |
|
Automatically detect bad channels |
|
Iteratively exclude bad channels based on low average neighbor-correlation |
|
Make a copy of a file to a new path by substituting one field value |
|
Make a noise covariance (cov) file |
|
Open |
|
Make the forward model |
|
Compute ICA decomposition for a |
|
Select ICA components to remove through a GUI |
|
Make a hard link |
|
Make a grand average movie from dSPM values (requires PySurfer 0.6) |
|
Make a t-test movie (requires PySurfer 0.6) |
|
Produce the sensor data fiff files needed for MRAT sensor analysis |
|
Produce the STC files needed for the MRAT analysis tool |
|
Create a figure for the contents of an annotation file |
|
|
|
|
|
Make a raw file |
|
Create an HTML report on spatio-temporal clusters |
|
Create HTML report with plots of the MEG/MRI coregistration |
|
Create an HTML report on ROI time courses |
|
Make the source space |
Merge bad channel definitions for different sessions |
|
|
Move files to a different root folder |
|
Change field to the next value |
|
Plot the annot file on which the current parcellation is based |
|
Plot the brain model |
|
Plot the coregistration (Head shape and MEG helmet) |
|
Plot evoked sensor data |
|
Plot a label |
|
Plot raw sensor data |
|
Plot the GFP of the whitened evoked to evaluate the the covariance matrix |
|
Rename all files corresponding to a pattern (or template) |
|
Change the value of one field in paths corresponding to a template |
|
Reset all field values to the state at initialization |
|
Remove all files corresponding to a template |
|
Run mne_analyze |
|
Run mne_analyze |
|
Set variable values. |
|
Set the type of inverse solution used for source estimation |
|
List bad channels |
|
Generate a table for all iterable fields and ther values. |
|
Compile a table about the existence of files |
|
Compile a table about the existence of multiple files |
|
Reveal the file corresponding to the |
Print a tree of the files needed as input |
|
|
Display the selected pipeline for raw processing |
|
Show the covariance matrix regularization parameters |
|
Information about artifact rejection |
|
List all top-level fields and their values |
|
Create a Dataset with subject information |
|
Print a tree of the filehierarchy implicit in the templates |