We use this thread for discussions, questions and answers on the snirf2BIDS conversion tool from Cedalion, as presented in the SfNIRS educational workshop on Sept 26th 2025.
Instructions for the Hands-On snirf2bids Conversion Workshop
The workflow is fully implemented in Cedalion. If you already have Cedalion installed on your system, you can directly open the 14_snirf2bids.ipynb example in the cedalion examples folder, and go through the steps. However, for simplicity, we will run everything on Google Colab, which is accessible to all and does not require a local installation of Cedalion. A sample dataset has been shared with you. Please ensure you have access before starting.
Using a Local System
If you have Cedalion installed locally, follow these steps to prepare:
- Make sure you are on the /dev/ branch!
- Open the 14_snirf2bids example notebook located at:
cedalion/examples/getting_started_io/14_snirf2bids.ipynb - Download the sample dataset to a preferred location on your system.
- Set the dataset_path variable to the location of the downloaded dataset.
- Set the destination_path variable to your desired BIDS output folder.
(You do not need to create this folder manually — it will be generated automatically.)
Using Google Colab
If you prefer to avoid local installation, Colab is the easiest way to participate (and this is what we will use during the webinar). Follow these preparation steps:
- Install Cedalion on Colab:
Follow the instructions in the Cedalion documentation for running notebooks on Colab. This will set up both Cedalion and your Google Drive folder. - Open the Example Notebook with Google Colab:
Click on the Button in the rendered example doc, or use this link. - Access the sample dataset:
Use the shared link to the dataset and create a shortcut in your My Drive folder. - Editing JSON/TSV files in Colab:
During the workflow, you may need to modify some JSON or TSV files. Since these cannot be directly edited in Colab’s file browser, you have two options:- Open/download the files in your Drive/Local storage, edit them, and save/re-upload.
- Or, add coding cells in the notebook to edit the files programmatically within Colab.
(A notebook version for editing CSV, TSV, or JSON files in Colab is provided here.)
- Set the dataset_path variable to the location of the dataset in your Drive.
- Set the destination_path variable to your desired BIDS output folder.
(No need to create it manually — it will be automatically generated.)
You are now ready 🙂
Help
If you run into problems after the workshop, please use this thread here in the cedalion community forum.
Hi All,
I am currently running into the following issue (see attached pic). In short, it seems that snirf2bids is not importing.
For what it is worth, I am running the notebook locally (Mac), and I have previously converted another dataset using Cedalion Snirf2Bids.
Please advise.
Nick




