Giter Site home page Giter Site logo

mri_preprocessing's Introduction

Commandline python wrappers for fmriprep


Usage:

Requirements: dcm2niix, dcm2bids and fmriprep (version: 20.2.1)

Step 0:

# install required modules
pip install -r requirements.txt
# change directory to the script folder
cd /path/to/script_folder

Step 1:

python 01_get_dicom.py -p /path/to/dicom_directory -k1 DICOM -k2 A

Step 2:

python 02_prep_config.py 1 -i dicomlist.txt
# prompt will be popped up

Step 3:

python 03_list_subj.py

# Sample Output of Step 3:
# Indice can be used in the Step 4 and 5 to indicate which subjects you would
# like to include and process
# --------------------------------------------------------------------------------
# Index                      DICOM Directories                      SubjID Session
# --------------------------------------------------------------------------------
# 0     /home/user/projects/subj0001/DICOM                            001   0000
# 1     /home/user/projects/subj0002/DICOM                            002   0000
# 2     /home/user/projects/subj0003/DICOM                            003   0000

Step 4:

# transform dicom to nii with a BIDS structure
python 04_run_dcm2bids.py 0-2 config.json --forcecopy

Step 5:

# run fmriprep
python 05_run_fmriprep.py 0-2

Step 6:

# run mriqc
python 06_run_mriqc.py 0-2

REMARKS 1: config.json is a project specific config file, specifying how the dim2bids function organizes the output NIFTI files

REMARKS 2: dataset_description.json is a mandatory metadata file which is placed in the BIDS output folder


adapted from https://github.com/kelvinlim/bids_scripts

mri_preprocessing's People

Contributors

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