Skip to content

Step 3 — MEG BIDS Conversion

At Salzburg, the MEG BIDS conversion is handled by Andreas Huttegger. You do not run the pipeline yourself — instead, you share your .fif files with him and he will run the conversion and push the result to your dataset project.

What to do after acquisition

  1. Make sure your .fif files follow the required naming convention and that your .meg_conversion_config.yml is complete and correct in your dataset project.
  2. Contact Andreas Huttegger and share the .fif files with him.
  3. He will run the MEG BIDS conversion pipeline, which converts your files to BIDS format, extracts events from the trigger channels, and opens a merge request in your dataset project.

How the pipeline works

Technical details — what the conversion pipeline does

For each .fif file, the pipeline:

  1. Parses the filename to extract subject, session, task, and run
  2. Checks whether that participant's data already exists in the dataset (skips if found)
  3. Converts the .fif to BIDS format using MNE-BIDS
  4. Reads trigger codes from channels STI001STI008 and maps them to event labels using your config.yaml
  5. Writes a BIDS-compliant events.tsv file
  6. Creates a feature branch add-subject-sub-<ID>-run-<run> in your dataset project
  7. Opens a merge request for review
  8. Uploads all files via Git LFS

The pipeline source code is available at gitlab.com/austrian-neurocloud/software/meg-conversion.