Forum

Notifications
Clear all

Cedalion SNIRF2BIDS

4 Posts
3 Users
0 Reactions
934 Views
Posts: 20
Admin
Topic starter
(@avl_openfnirsadm)
Eminent Member
Joined: 4 years ago
[#938]

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.


3 Replies
Posts: 20
Admin
Topic starter
(@avl_openfnirsadm)
Eminent Member
Joined: 4 years ago

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:

  1. Make sure you are on the /dev/ branch!
  2. Open the 14_snirf2bids example notebook located at:
     
    cedalion/examples/getting_started_io/14_snirf2bids.ipynb
  3. Download the sample dataset to a preferred location on your system.
  4. Set the dataset_path variable to the location of the downloaded dataset.
  5. 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:

  1. 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.
  2. Open the Example Notebook with Google Colab:
    Click on the  Button in the rendered example doc, or use this link.
  3. Access the sample dataset:
     Use the shared link to the dataset and create a shortcut in your My Drive folder.
  4. 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:
    1. Open/download the files in your Drive/Local storage, edit them, and save/re-upload.
    2. 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.)
  5. Set the dataset_path variable to the location of the dataset in your Drive.
  6. 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.


Reply
Posts: 2
Registered
(@nick-bray)
New Member
Joined: 2 years ago

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


Reply
1 Reply
(@shakiba-moradi)
Joined: 2 years ago

New Member
Posts: 2

@nick-bray 

Hi Nick,

It looks like snirf2bids is not available in your current environment. One possible reason is that you may have installed the main branch of Cedalion, whereas snirf2bids currently lives in the dev branch. Note also that the dev branch uses a different environment_dev.yml so you may need to create a new conda environment from that file or update your current one.

Could you try switching to the dev branch and see if that resolves the issue


Reply
Share:
en_USEnglish