Skip to main content

mne_add_triggers

Overview

mne_add_triggers adds trigger events to a raw data file's stimulus (STI) channel. It reads a trigger file with sample–value pairs and writes the events into the STI channel of the raw data. The tool prefers STI 014 but falls back to the first available stimulus channel.

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

Usage

mne_add_triggers [options]

Options

OptionDescription
--raw <file>Input raw FIFF file
--trg <file>Trigger file (sample event_value per line)
--out <file>Output FIFF file
--helpPrint help
--versionPrint version

Trigger File Format

One trigger event per line with sample number and event value separated by whitespace. Lines starting with # are comments.

# sample  event_value
1000 1
2500 2
4000 1

Example

mne_add_triggers --raw sam-raw.fif --trg triggers.txt --out sam-triggers-raw.fif

See Also