Skip to main content

mne_convert_lspcov

Overview

mne_convert_lspcov converts a covariance matrix stored in the LISP S-expression format produced by external graph tools into a standard FIFF covariance file.

The tool reads the symmetric matrix from the LISP file, matches its rows and columns against the channel information taken from a FIFF measurement file, and writes either a FIFF covariance file, a plain ASCII text file, or both.

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

Usage

mne_convert_lspcov [options]

Options

OptionDescription
--lspcov <file>Input LISP-format covariance file
--meas <file>Measurement FIFF file used for channel names
--out <file>Output FIFF covariance file
--outasc <file>Output text (ASCII) covariance file
--helpPrint help
--versionPrint version

At least one of --out or --outasc must be specified.

Example

mne_convert_lspcov \
--lspcov sample-cov.lisp \
--meas sample_audvis_raw.fif \
--out sample-cov.fif

See Also