Skip to main content

mne_mna_bids_converter

Overview

mne_mna_bids_converter converts between MNA/MNX project files and BIDS directory structures. It supports three commands: extract (unpack an MNX/MNA to a BIDS directory tree), pack (import a BIDS directory into an MNA/MNX project), and convert (convert between MNA JSON and MNX CBOR formats).

Usage

mne_mna_bids_converter <command> [options]

Commands

CommandSyntaxDescription
extractextract <input.mnx|mna> <output_dir>Extract files to BIDS directory tree
packpack <bids_dir> <output.mnx|mna>Import BIDS directory into MNA/MNX project
convertconvert <input.mna|mnx> <output.mnx|mna>Convert between MNA (JSON) and MNX (CBOR)

Options

OptionDescription
--embed(pack) Embed file data into the output (default for .mnx)
--no-embed(pack) Store file references only (default for .mna)
-h, --helpShow help
--versionShow version

Example

# Extract embedded files from an MNX project to a BIDS tree
mne_mna_bids_converter extract analysis.mnx bids_output/

# Import a BIDS directory into an MNX project with embedded data
mne_mna_bids_converter pack bids_input/ analysis.mnx --embed

# Convert MNA (JSON) to MNX (CBOR)
mne_mna_bids_converter convert analysis.mna analysis.mnx

# Convert MNX (CBOR) back to MNA (JSON)
mne_mna_bids_converter convert analysis.mnx analysis.mna

See Also