Skip to content

Conversation

Edouard2laire
Copy link
Contributor

Adds initial support for NIRS (Near-Infrared Spectroscopy) data processing within the BIDS export functionality.

This includes:

  • Recognizing NIRS data based on channel types.
  • Extracting NIRS-specific metadata (optode counts).
  • Creating 'nirs' subfolder and using '_nirs' suffix.
  • Exporting data to the SNIRF format.
  • Generating an optodes coordinate file.
  • Creating an events TSV file.

Note: I rebased the change from #812 to this branch so i can continue working on it while @JBusgang is busy with classes.

Adds initial support for NIRS (Near-Infrared Spectroscopy) data processing within the BIDS export functionality.

This includes:
- Recognizing NIRS data based on channel types.
- Extracting NIRS-specific metadata (optode counts).
- Creating 'nirs' subfolder and using '_nirs' suffix.
- Exporting data to the SNIRF format.
- Generating an optodes coordinate file.
- Creating an events TSV file.
Adds functionality to export Brainstorm channel files in the BIDS _channels.tsv format, specifically tailored for NIRS data. This enhancement supports the BIDS standard for NIRS data organization.
Adds coordinate system information in json format for NIRS data (ScanRAS exclusively).
Improved export channel option using export_channel, replacing 'out_channel_bids'.
- Adds section of code to generate the .tsv file by calling out_nirs_channel
- Fixes detector labels (previously labelled 'S' instead of 'D')
- Changes channel type to NIRSCWAMPLITUDE, a valid BIDS raw data type. Potential improvement in future to add other valid data types.
- out_nirs_channel header explanation now uses the correct fields
- process_export_bids CreateMegJson has been working, no need for this note.
- Checks datasettype is either 'raw' or 'derivative'
- if not one of the two accepted values, defaults to 'raw' as per BIDS documentation and gives a warning.
- Adds 'FiducialsCoordinates' field with NAS, LPA, and RPA coordinates to coordsystem.json from ChannelMat.SCS
- Sets other fiducials coordinate metadata fields in coordsystem.json
@Edouard2laire Edouard2laire marked this pull request as draft September 30, 2025 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants