Skip to main content

Command-Line Tools Reference

MNE-CPP includes a comprehensive set of command-line tools for MEG/EEG data processing, BEM model creation, forward solution computation, and inverse estimation. These tools are C++ ports of the original MNE-C tools created by Matti Hämäläinen.

BEM Model Creation

ToolDescription
mne_watershed_bemCreates BEM surfaces using FreeSurfer's watershed algorithm
mne_flash_bemCreates BEM surfaces using multi-echo FLASH MRI sequences
mne_surf2bemConverts FreeSurfer surfaces and ASCII triangle files into BEM FIFF files
mne_setup_forward_modelSets up the BEM for forward modeling

MRI Setup

ToolDescription
mne_setup_mriSets up FreeSurfer MRI data for MNE processing

Forward and Inverse Computation

ToolDescription
mne_forward_solutionComputes the MEG/EEG forward solution
mne_make_source_spaceCreates cortical source spaces from FreeSurfer surfaces
mne_inverse_operatorAssembles a linear inverse operator from a forward solution and noise covariance
mne_compute_mneComputes MNE/dSPM/sLORETA source estimates from evoked data
mne_compute_raw_inverseComputes inverse solutions (MNE/dSPM/sLORETA)
mne_dipole_fitPerforms electric current dipole fitting

Raw Data Processing

ToolDescription
mne_process_rawBatch processing of raw data: filtering, decimation, averaging, covariance estimation, SSP, and event detection

Data Conversion and Utilities

ToolDescription
mne_edf2fiffConverts EDF files to FIFF format
mne_show_fiffLists the contents of a FIFF file

Real-Time Streaming

ToolDescription
mne_rt_serverReal-time FIFF data streaming server