Skip to main content Link Menu Expand (external link) Document Search Copy Copied
Table of contents
  1. Add BIDS Description to the series
    1. Create a config Folder
    2. Check the names of your experiments scans.
    3. Create a bidsmap file:
    4. Upload the bidsmap.json file:
    5. Activate Dicom to BIDS container.
    6. Run the Container:
    7. Check the Results:

Add BIDS Description to the series

This step is required to convert the DICOM files you just uploaded in the XNAT website into the BIDS structure. The Brain Imaging Data Structure (BIDS) is a standard for organizing, annotating, and describing data collected during neuroimaging experiments. It is done so that you do not loose metadata on your file structure.

Also before running any other analysis, this step is a pre-requisite. The purpose of this step is to match series descriptions on XNAT with correct BIDS names.

Create a config Folder

  • Open your project page. It will look something like this. Here you can see the subjects and the actions menu. image

  • Now, in the actions menu, click on “Manage Files”. By default you will see a blank folder structure. image

  • Click on Add Folder. Choose “Resources” as level and name the project “config” (make sure it’s not in caps) and then click on create.

image

  • The folder structure will now look like this: image

Check the names of your experiments scans.

  • Now, click on the individual subjects, which you want to convert into BIDS from DICOM. As an example suppose we look into “Sub_01”. Open Sub_01, click on MR sessions (highlighted in the below figure in blue) image

  • So, the given subject has scans 26, 38, 39 and 40. Now click on Manage Files. image image

As you can see that currently, these scans only has DICOM files. Now we will convert the DICOM files of scan 26 and 38 into BIDS structure . For that copy the series description against the target scans.

Create a bidsmap file:

  • Now open any editor (Notepad ++, VS Code or any other), create a file with name ‘bidsmap.json’.

“Follow the given code structure”, note that for each scan there is a { } block separated from another { } with comma”. It would be good idea to to check if your json file is valid here: https://jsonlint.com/ . And copy the same description as stated in the above point.

NOTE:: Please only use BIDS name according to convention, to add valid BIDSNAME follow this guideline. You can look up the correct bids specification here (page 23 for MRI) <”\ValNeuroLab - Documents\DataPipeline\BIDS-Specification-v1.4.0.pdf>(location in ValNeuro One drive)

image

  • Save the file as bidsmap.json.

Upload the bidsmap.json file:

  • Click on upload File as in here. image

  • Now your file structure will look like this. image

Activate Dicom to BIDS container.

  • Open your project and then go to Project > Actions > Project settings.
  • Enable dcm2bids PAR-REC compatible command. image

NOTE:Please make sure that you activate the 2021 version

Run the Container:

  • Now, Click on “Processing Dashboard” and “MR session” (or whatever session you are working on). Click on the “Sub_01” checkbox. Go to the “Select Job” menu and select “dcmparrec2niftibids”.
  • And then click on Launch Job. And then click on “Run Container”. image

  • Wait for Background process to complete till 100%.

Check the Results:

  • Now, click on Sub 01, and MR session and then go to Manage Files. As you can see BIDS structure has now formed for scans 26 and 38. image

Neuroenergetics of the human brain @ TUM, Germany