Brain Imaging Data Structure (BIDS)


BIDS

Introduction

This post intends to describe the Brain Imaging Data Structure (BIDS) format for neuroimaging data its principles and its scope. BIDS is a community-built and maintained standarized format for the organization and description of neuroimaging and corresponding behavioral data, which has been largely lacking within the neuroimaging community. More specifically, data that come off the scanner are converted to NIFTI and JSON files, organized into a specific directory schema, and labeled following a precise naming convention. The result is an organized dataset that can be easily shared and understood by other researchers. More specifically it is a standard specifying the description of neuroimaging data in a filesystem hierarchy and of the metadata associated with the imaging data. The current edition of the standard is available in HTML with all the previous editions available since October 2018 on the BIDS website. The project is a community-driven effort originally initiated during an INCF sponsored data sharing working group meeting (January 2015) at Stanford University. BIDS has advanced with the guidance and effort of the community of researchers that appreciate the value of standardizing neuroimaging data to facilitate sharing and analysis. The project is multifaceted, and depends on contributors for specification development, maintenance, BIDS Extension Proposals (BEPs), software tools, starter kits, examples, and general discussions.

A key component of the BIDS initiative is the collection of associated software tools and platforms that facilitate the validation and ease the use of BIDS-formatted datasets. BIDS converters (e.g., DCM2BIDS) enable the streamlined conversion of raw imaging files into a BIDS dataset, the BIDS validator allows users to confirm that a given dataset complies with the current edition of the standard.

Benefits of BIDS

As mentioned above, complex data from neuroimaging research can be structured in a variety of ways. There is currently no agreement on how to distribute and organise the data gathered from neuroimaging studies. It is possible for two researchers working in the same lab to choose to organise their data differently. Lack of agreement (or a standard) causes misunderstandings, which wastes time rearranging data or rewriting scripts that were written with a specific structure in mind. Here, we outline a straightforward and practical method for organising behavioural and neuroimaging data. You will gain by applying this standard in the following ways:

  1. Reproducibility and Data Sharing: For imaging researchers, one of the most frequent problems that can occur is receiving data from a colleague and not being able to understand it. Other problems include finding the right information (such as repetition time) quickly enough. The goal is to decrease the time wasted trying to interpret the data, which causes unnecessary back and forth with the colleague(s). BIDS standard format helps to significantly reduce the difficulties associated with data sharing. Along the same lines , employing BIDS will reduce the time needed to comprehend and reuse data collected by individuals who have already left the lab. Finally, enhanced data sharing enables researchers to evaluate and replicate the results of other people’s experiments.

  2. Access to “BIDS-apps”: After being converted to BIDS format, data can be used with software programmes called “BIDS-apps” that accept BIDS-formatted datasets as input. A growing variety of data analysis software programmes are available that can comprehend data arranged using BIDS. MRIQC (a quality control pipeline that outputs metrics of your data) and fMRIPrep are two of the most popular and used apps (a standarized pre-processing pipeline). It is extremely helpful to have access to fMRIPrep since different labs (and even individuals within a single lab) frequently have their own peculiar pre-processing pipelines, which can affect the results of future studies and befuddle people who are trying to reprocess the data. Datasets from various labs and institutions can be pre-processed in a way that is highly reproducible and transparent by using a standard pipeline like fMRIPrep, which combines several software packages (ex. FSL, AFNI, ANTs, FreeSurfer, and nipype).

  3. Sharing personal BIDS-apps: Researchers frequently create innovative analysis tools or techniques but are unable to share them with the neuroimaging community and they are simply just stored on Github or some other repository. However, as BIDS grows in popularity, dataset organisation and pre-processing are becoming more standardised, making them more accessible to BIDS-apps. You’ve made a BIDS-app that may be useful to a wide range of consumers by creating a tool that accepts BIDS-formatted data.

  4. Open data efforts: You may quickly identify missing values by using validation tools like the BIDS Validator to evaluate the consistency of your dataset. The International Neuroinformatics Coordinating Facility (INCF) and the INCF Neuroimaging Data Sharing (NIDASH) Task Force have supported BIDS, which was largely influenced by the internal format used by the OpenfMRI repository that is now known as OpenNeuro.org. Datasets organised using BIDS are accepted by databases like OpenNeuro.org. By utilising BIDS to structure and characterise your data as soon as it is acquired, you may reduce the extra time and effort required for publication and hasten the curation process if you ever intend to release your data publicly.

Tools

Dcm2Bids is a package for reorganising NIfTI files from dcm2niix into the BIDS format.

here is an outline of the code used for a basic tutorial of the package

 -  conda install -c conda-forge dcm2niix \n
 -  conda install -c conda-forge dcm2bids
 -  mkdir dcm2bids-tutorial\n
 -  cd dcm2bids-tutorial\n
 -  dcm2bids_scaffold -o bids_project
 -  cd bids_project
 -  wget -O dcm_qa_[nih-master.zip](https://github.com/neurolabusc/dcm_qa_nih/archive/refs/heads/master.zip)
 -  mv sourcedata/dcm_qa_nih-master sourcedata/dcm_qa_nih
 -  ls sourcedata/dcm_qa_nih
 -  dcm2bids_helper --help
 -  dcm2bids_helper -d sourcedata/dcm_qa_nih/In/
 -  ls tmp_dcm2bids/helper
 -  nano code/dcm2bids_config.json
 -  dcm2bids -d sourcedata/dcm_qa_nih/In/ -p ID01 -c code/dcm2bids_config.json

for details on how to setup your config file check here and here

References

BIDS Specification

BIDS Governance

Dcm2Bids