-
Notifications
You must be signed in to change notification settings - Fork 176
[export bids] Adds basic NIRS support #843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Edouard2laire
wants to merge
28
commits into
brainstorm-tools:master
Choose a base branch
from
Edouard2laire:BIDS-nirs
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Contributor
Author
|
ok. it's ready for review. There are still some issue with the coordinate system, but I will fix them in a following PR so we can address the coordinates for EEG/MEG and Nirs at the same time. I also want to move to matlab_bids to generate the file name and reoganize the process but in a other PR :) |
Contributor
Author
Contributor
Author
|
ok. so exporting in CTF is somehow fixing the coordinates. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

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