{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Convert a fNIRS dataset to BIDS\n", "\n", " Do not run all cells at once. Carefully read the comments before each code cell — some steps require you to manually modify certain files (e.g., the mapping CSV) before proceeding.
Make sure all required edits are completed before continuing to the next step.
" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Background: What is BIDS?\n", "\n", "The **Brain Imaging Data Structure (BIDS)** is a community standard for organising neuroimaging datasets. It specifies a folder hierarchy, file naming convention, and a set of sidecar JSON/TSV files that describe each recording. A BIDS-compliant dataset can be analysed by any BIDS-compatible tool without custom data-loading code.\n", "\n", "For fNIRS, BIDS defines:\n", "- A folder tree: `sub-