Giter Site home page Giter Site logo

dcm2bids's Introduction

Dcm2Bids

Dcm2Bids helps you to convert DICOM files of a study to Brain Imaging Data Structure (BIDS).

Learn more about BIDS and read the specifications.

Install

git clone https://github.com/cbedetti/Dcm2Bids

Add the installation directory to your PYTHONPATH and the scripts directory to your PATH.

Software dependencies

  • dcm2niix

DICOM to NIfTI conversion is done with dcm2niix converter. See their github for source or NITRC for compiled versions.

Usage

dcm2bids [-h] -d DICOM_DIR -p PARTICIPANT [-s SESSION] -c CONFIG
         [--dry_dcm2niix] [-y]

You need to build the config file of your study to let dcm2bids associate your acquisitions with the right dicoms through bids sidecar created by dcm2niix. Every study is different and this step needs a little bit of work.

The configuration uses the json format and one example is provided in the example directory.

Descriptions

The description field is a list of dictionnary. Each dictionnary describes one acquisition.

Output

dcm2bids create sub-<PARTICIPANT> directories in the folder the script is launched.

Acquisitions with no or more than one fitting descriptions are kept in tmp_dcm2niix directory. Users can review these missing acquistions to change the configuration file accordingly.

dcm2bids's People

Contributors

cbedetti avatar

Watchers

James Cloos avatar Diego Angeles - Valdez 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.