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_compute_raw_inverseComputes inverse solutions (MNE/dSPM/sLORETA)
mne_dipole_fitPerforms electric current dipole fitting

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