Preprocessing#
Projections:
  | 
Dictionary-like object holding a projection vector.  | 
  | 
Compute SSP (signal-space projection) vectors on epoched data.  | 
  | 
Compute SSP (signal-space projection) vectors on evoked data.  | 
  | 
Compute SSP (signal-space projection) vectors on continuous data.  | 
  | 
Read projections from a FIF file.  | 
  | 
Write projections to a FIF file.  | 
Module dedicated to manipulation of channels.
Can be used for setting of sensor locations used for processing and plotting.
  | 
Sensor layouts.  | 
  | 
Montage for digitized electrode and headshape position data.  | 
  | 
Compute the native-to-head transformation for a montage.  | 
  | 
Fix magnetometer coil types.  | 
  | 
Read Polhemus FastSCAN digitizer data from a   | 
  | 
Get a list of all standard montages shipping with MNE-Python.  | 
  | 
Make montage from arrays.  | 
  | 
Read Polhemus digitizer data from a file.  | 
  | 
Read electrode locations from CapTrak Brain Products system.  | 
  | 
Read electrode positions from a   | 
  | 
Read electrode locations from EGI system.  | 
  | 
Read digitized points from a .fif file.  | 
  | 
Read historical   | 
  | 
Read Localite .csv file.  | 
  | 
Read a generic (built-in) standard montage that ships with MNE-Python.  | 
  | 
Read a montage from a file.  | 
  | 
Transform a DigMontage object into head coordinate.  | 
  | 
Compute device to head transform from a DigMontage.  | 
  | 
Read layout from a file.  | 
  | 
Choose a layout based on the channels in the info 'chs' field.  | 
  | 
Make a Layout object based on EEG electrode digitization.  | 
  | 
Make a grid Layout object.  | 
  | 
Find the adjacency matrix for the given channels.  | 
  | 
Get a list of all FieldTrip neighbor definitions shipping with MNE.  | 
  | 
Read a channel adjacency ("neighbors") file that ships with MNE.  | 
  | 
Equalize channel picks and ordering across multiple MNE-Python objects.  | 
  | 
Unify bad channels across a list of instances.  | 
  | 
Rename channels.  | 
  | 
Generate a custom 2D layout from xy points.  | 
  | 
Map hemisphere names to corresponding EEG channel names or indices.  | 
  | 
Combine channels based on specified channel grouping.  | 
Preprocessing with artifact detection, SSP, and ICA.
  | 
Data decomposition using Independent Component Analysis (ICA).  | 
  | 
Implementation of the Xdawn Algorithm.  | 
  | 
Remove EOG artifact signals from other channels by regression.  | 
  | 
Annotate raw data based on peak-to-peak amplitude.  | 
  | 
Create   | 
  | 
Detect segments with movement.  | 
  | 
Create annotations for segments that likely contain muscle artifacts.  | 
  | 
Detect segments with NaN and return a new Annotations instance.  | 
  | 
Get new device to head transform based on good segments.  | 
  | 
Get the current source density (CSD) transformation.  | 
  | 
Compute bridged EEG electrodes using the intrinsic Hjorth algorithm.  | 
  | 
Compute fine calibration from empty-room data.  | 
  | 
Compute the SSS basis for a given measurement info structure.  | 
  | 
Compute SSP (signal-space projection) vectors for ECG artifacts.  | 
  | 
Compute SSP (signal-space projection) vectors for EOG artifacts.  | 
  | 
Generate projectors to perform homogeneous/harmonic correction to data.  | 
  | 
Apply cortical signal suppression (CSS) to evoked data.  | 
  | 
Conveniently generate epochs around ECG artifact events.  | 
  | 
Conveniently generate epochs around EOG artifact events.  | 
  | 
Find bad channels using Local Outlier Factor (LOF) algorithm.  | 
  | 
Find bad channels using Maxwell filtering.  | 
  | 
Find ECG events by localizing the R wave peaks.  | 
  | 
Locate EOG artifacts.  | 
  | 
Eliminate stimulation's artifacts from instance.  | 
  | 
Find ECG peaks from one selected ICA source.  | 
  | 
Locate EOG artifacts from one selected ICA source.  | 
  | 
Run (extended) Infomax ICA decomposition on raw data.  | 
  | 
Interpolate bridged electrode pairs.  | 
  | 
Interpolate or mark bads consistently for a list of instances.  | 
  | 
Maxwell filter data using multipole moments.  | 
  | 
Prepare an empty-room recording for Maxwell filtering.  | 
  | 
Denoise MEG channels using leave-one-out temporal projection.  | 
  | 
Noise-tolerant fast peak-finding algorithm.  | 
  | 
Restore ICA solution from fif file.  | 
  | 
Read an EOG regression model from an HDF5 file.  | 
  | 
Realign two simultaneous recordings.  | 
  | 
Remove artifacts using regression based on reference channels.  | 
  | 
Find similar Independent Components across subjects by map similarity.  | 
  | 
Load ICA information saved in an EEGLAB .set file.  | 
  | 
Read fine calibration information from a   | 
  | 
Write fine calibration information to a   | 
  | 
Apply the PCA-OBS algorithm to picks of a Raw object.  | 
NIRS specific preprocessing functions.
  | 
Convert NIRS raw data to optical density.  | 
  | 
Convert NIRS optical density data to haemoglobin concentration.  | 
  | 
Determine the distance between NIRS source and detectors.  | 
  | 
Determine which NIRS channels are short.  | 
  | 
Calculate scalp coupling index.  | 
Apply temporal derivative distribution repair to data.  | 
Intracranial EEG specific preprocessing functions.
  | 
Project sensors onto the brain surface.  | 
  | 
Make a volume from intracranial electrode contact locations.  | 
  | 
Warp a montage to a template with image volumes using SDR.  | 
mne.preprocessing.eyetracking:
Eye tracking specific preprocessing functions.
  | 
Eye-tracking calibration info.  | 
  | 
Return info on calibrations collected in an eyelink file.  | 
  | 
Define sensor type for eyetrack channels.  | 
  | 
Convert Eyegaze data from pixels to radians of visual angle or vice versa.  | 
  | 
Calculate the radians of visual angle that the participant screen subtends.  | 
  | 
Interpolate eyetracking signals during blinks.  | 
EEG referencing:
  | 
Add reference channels to data that consists of all zeros.  | 
  | 
Re-reference selected channels using a bipolar referencing scheme.  | 
  | 
Specify which reference to use for EEG data.  | 
IIR and FIR filtering and resampling functions.
  | 
Use IIR parameters to get filtering coefficients.  | 
  | 
Create a FIR or IIR filter.  | 
  | 
Estimate filter ringing.  | 
  | 
Filter a subset of channels.  | 
  | 
Notch filter for the signal x.  | 
  | 
Resample an array.  | 
Functions for fitting head positions with (c)HPI coils.
compute_head_pos can be used to:
Drop coils whose GOF are below
gof_limit. If fewer than 3 coils remain, abandon fitting for the chunk.Fit dev_head_t quaternion (using
_fit_chpi_quat_subset), iteratively dropping coils (as long as 3 remain) to find the best GOF (using_fit_chpi_quat).If fewer than 3 coils meet the
dist_limitcriteria following projection of the fitted device coil locations into the head frame, abandon fitting for the chunk.
The function filter_chpi uses the same linear model to filter cHPI
and (optionally) line frequencies from the data.
  | 
Compute time-varying cHPI amplitudes.  | 
  | 
Compute time-varying estimates of cHPI SNR.  | 
  | 
Compute locations of each cHPI coils over time.  | 
  | 
Compute time-varying head positions.  | 
  | 
Extract cHPI locations from CTF data.  | 
  | 
Extract cHPI locations from KIT data.  | 
  | 
Remove cHPI and line noise from data.  | 
  | 
Determine how many HPI coils were active for a time point.  | 
  | 
Retrieve cHPI information from the data.  | 
  | 
Convert Maxfilter-formatted head position quaternions.  | 
  | 
Read MaxFilter-formatted head position parameters.  | 
  | 
Write MaxFilter-formatted head position parameters.  | 
Helpers for various transformations.
  | 
A transform.  | 
  | 
Convert a set of quaternions to rotations.  | 
  | 
Convert a set of rotations to quaternions.  | 
  | 
Read a subject's RAS to MNI transform.  |