Skip to main content

mne_make_source_space

Overview

mne_make_source_space creates cortical source spaces from FreeSurfer surfaces for use in MEG/EEG source localization. It supports surface and volume source spaces, morphing, and advanced options for source space setup.

This is a C++ port of the original MNE-C tool by Matti Hämäläinen.

Usage

mne_make_source_space [options]

Options

OptionDescription
--subject <name>Subject name (required)
--subjects_dir <dir>FreeSurfer SUBJECTS_DIR (required)
--surf <hemi>:<surf>Surface to use (default: white)
--spacing <val>Source spacing (e.g., ico-4, oct-6, all)
--morphMorph source space to another subject
--volumeCreate a volumetric source space
--exclude <label>Exclude label from source space
--out <file>Output source space file
--overwriteOverwrite output file if it exists

Description

This tool generates source spaces for MEG/EEG source localization. It can create surface-based or volumetric source spaces, supports morphing to other subjects, and allows exclusion of specific labels. The output is a FIFF source space file compatible with MNE-CPP and MNE-Python.