Giter VIP home page Giter VIP logo

cpp_dicom2nii_bids's Introduction

Instructions

This repo contains 2 scripts to convert NIFTI files (output of dcm2niix) into BIDS compatible folder scaffold.

It's using mainly couple of functions from two repos (see Dependancies) and can create the scaffold of folders for multiple participants/datasets at once.

For more in depth info on BIDS, please do visit the website

Dependancies

Make sure that the following softwares are installed. For instructions see the following links:

Step 1

  • Open the shell script dicom2nii_BIDS_Step1.sh in your preferred text editor.

  • Change your desired BIDS output directory.

  • Add the different groups of subjects and their names, and DICOM locations

  • Run the dicom2nii_BIDS_Step1.sh in the terminal: ./sh dicom2nii_BIDS_Step1.sh

  • Go to your BIDS output directory and then to the tmp_dcm2bids folder

  • Open the json files of the different conditions and get the _SERIES DISCRIPTION_ , eg: SeriesDescription: "Motion" --> here the Series description is Motion.

  • Create a new json file called config.json in the BIDS output directory. Add the conditions indicating the series description. Check the config.json for examples and the config_json_template_different_modalities.json for all possible modalities

Step 2

  • Open the shell script dicom2nii_BIDS_Step2.sh in your preferred text editor.

  • Change your desired BIDS output directory, add the different groups of subjects and their names, and DICOM locations. MAKE SURE IT MATCHS Step 1

  • repeat the blocks of code for each condition in your experiment (eg. anatomical, functional exp1, functional exp2, etc.)

  • Make sure that the dicom location in each experimental condition is correct.

  • Run the dicom2nii_BIDS_Step2.sh in the terminal: ./sh dicom2nii_BIDS_Step2.sh

  • move the produced subject folders in a folder called raw to kept as the untouched raw data.

  • copy the contents of the raw folder in the derivatives folder

  • Check the dataset whether its compatible with the BIDS guidelines

  • fix the errors until its compatible. :-)

cpp_dicom2nii_bids's People

Contributors

cerenb avatar mohmdrezk avatar mohmdrzk avatar remi-gau avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.