GithubHelp home page GithubHelp logo

ltirrell / bidsqc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kdestasio/bidsqc

0.0 2.0 0.0 1.87 MB

Scripts to batch convert dicoms to BIDS in parallel on an HPC environment, followed by a file check

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

bidsqc's Introduction

DOI

Overview

The scripts in this repo are a combination of wrappers and quality checking scripts that take neuroimaging files from DICOMS to Niftis named and structured as per BIDS.

Instructions on this page are to run batches of subjects on a high performance cluster running SLURM using a Singularity container of the dcm2Bids package - or - to run the subjects serially on a local machine.

Table of Contents

Dependencies

  • Python 3 with the future module (pip install of cbedetti's dcm2bids will install the future module)
  • dcm2niixconversion tool. You need to install it.
  • dcm2Bids. You need to install it.

Repo Contents

dcm2bids Scripts

Wrapper around the rordenlab's dcm2niix and cbedetti's dcm2Bids. These scripts convert the DICOM files in subjects' directories, convert them to Niftis, and put them in BIDS.

  • config_dcm2bids_batch.py
  • config_dcm2bids_helper.py
  • dcm2bids_batch.py
  • dcm2bids_helper.py
  • fmap_intendedfor.py
  • study_config.json
  • subject_list.txt

bidsQC Scripts

Once Niftis are in BIDS, these scripts can be used to check whether each sequence has the correct number of runs. Files in the target directories are checked against values in the configuration file where the user specifies how many runs of each sequence are expected at each time point. Optional: append the run-## key-value string to file names based on sequence order (option specifed in config file).

For step-by-step instructions and a description of the naming rules, see the bidsQC README.

Final BIDS Steps

Manually Create Metadata Files

As per: http://bids.neuroimaging.io/bids_spec1.0.0-rc2.pdf

Place these files in the top level bids directory.

  • dataset_description.json
  • phasediff.json
  • A JSON for each functional task with TaskName and RepetitionTime
  • README (optional, but strongly recommended)
  • CHANGES (optional, but strongly recommended)

Check the BIDS Conversion

BIDS validator: http://incf.github.io/bids-validator

bidsqc's People

Contributors

kdestasio avatar

Watchers

 avatar  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.