BIDS for behavioral studies

How to store your data in bids structure if you are using psychtoolbox
BIDS
Behavioral
Author

CY

Published

23 May 2024

Modified

23 May 2024

Resources

Behavioral experiments (with no neural recordings) - Brain Imaging Data Structure v1.9.0

Software

bids-matlab |

bids-starter-kit on GitHub |

JSONio on GitHub

How to implement

You may use the template in the BIDS starter kit (bids-starter-kit/general). Simply copy the corresponding mat file and modify the variables for your project.

After preprocessing

create_events_tsv_json_full.m

Before finalizing everything

createBIDS_participants_tsv.m

createBIDS_dataset_description_json.m

Pipeline for transriv project as an example

createBIDS_beh_after_preprocessing(root_dir, 'transriv', 'S001', 'Rivalry', 'GG')

The folder structure based on BIDS:

root_dir
  └─ transriv
        ├─ participants.xlsx
        ├─ participants.tsv
        ├─ participants.json
        ├─ sourcedata
        │     └─ sub-S001
        │         └─ ses-Rivalry
        │               └─ beh
        │                   └─ sub-S001_ses-Rivalry_run-GG_beh.mat
        └─ rawdata
             └─ sub-S001
                 └─ ses-Rivalry
                     └─ beh
                         ├─ sub-S001_ses-Rivalry_run-GG_beh.json
                         └─ sub-S001_ses-Rivalry_run-GG_beh.tsv

Link to our GitHub repo containing relevant scripts

Back to top