trftools.pipeline.TRFExperiment
- class trftools.pipeline.TRFExperiment(root, **state)
Pipeline for TRF analysis (see also:
eelbrain.pipeline.Pipeline)Setup attributes
- stim_var: str = 'stimulus'
Event variable that identifies stimulus files for loading predictors
stim_varis specified as event dataset column name. For example, with:stim_var = 'stimulus'
and the following event dataset:
>>> print(alice.load_events()) # i_start trigger stimulus time SOA subject duration ----------------------------------------------------------------------- 0 1863 1 stim_1 3.726 57.618 S01 58.541 1 30672 5 stim_2 61.344 60.898 S01 61.845 ...
The model term
gammatone-8will use the predictor filesstim_1~gammatone-8for the first event, andstim_2~gammatone-8for the second.
Initialization
Methods
|
Add predictor variable to a |
|
Add all predictor variables in a given model to a |
|
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 |
|
Remove cache and result files when input data becomes invalid |
|
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 |
|
Test comparing model fit between two models |
|
Load sensor neighbor correlation |
|
Load predictor NDVar |
|
Multiple predictors corresponding to |
|
Load inverse point spread function |
|
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 |
|
TRF estimated with boosting |
|
Load TRF test result |
|
Load TRFs for the group in a Dataset (see |
|
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 |
|
Generate report for model comparison |
|
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 tasks |
|
|
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 |
|
Remove internal models that have no corresponding files |
|
Remove a named model and delete all associated files |
|
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 |
|
List cached TRFs and how much space they take |
|
Table of data exceeding threshold in epochs |
|
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 |
|
|
Test for localization difference of two terms in a model |
|
|
|
Table showing terms in a model or comparison |
|
Document section for one or several model tests |
|
List models that contain a term that matches |
|
List predictors that have been added to the |
|
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 |
|
Show mass-univariate test of TRFs |
|
Create a batch-job for computing TRFs |