GithubHelp home page GithubHelp logo

hcpbatch's Introduction

hcpbatch

Flexible wrapper for HCP pipeline batch jobs. Adapted from HCP example scripts that are provided with the pipeline. Some of these wrapper scripts rely on features added to my personal fork of the HCP pipelines, and will not work with the official distribution.

Before running, you will need to edit these files for your own installation:

  • SetUpHCPPipeline.sh : points to local pipeline installation, FSL binaries, etc...
  • batch_StudySettings.sh : specifies study- or scanner-specific settings (study root directory, final volume and surface resolutions, gradient coefficients, etc...)

General syntax for calling these scripts is: bash <scriptname> <studyname>@<magnetname> <subjectID> ...

If your DICOM session is <dicomfolder>/scan1 <dicomfolder>/scan2 etc., these scripts will import and convert your dicoms into an HCP-friendly file structure:

dicomfolder=/path/to/dicomstorage/mysession
subjectid=101202
study=lifespan@prisma
bash batch_dicom_init.sh $study $dicomfolder $subjectid REST1_AP BOLD=7 SE=8,10
bash batch_anat_dicom_init.sh $study $dicomfolder $subjectid T1=12 T2=14
bash batch_diffusion_dicom_init.sh $study $dicomfolder $subjectid 16 18 20 22

After importing and converting dicoms, you can execute the structural, diffusion, and functional preprocessing pipelines as follows:

bash batch_StructuralPreprocessing.sh $study $subjectid
#Note: You MUST run and complete the structural pipeline before running the diffusion and functional pipelines.
bash batch_DiffusionPreprocessing.sh $study $subjectid
bash batch_FunctionalPreprocessing.sh $study $subjectid

You can also invoke these for multiple subjects to run serially, e.g.,:

bash batch_FunctionalPreprocessing.sh lifespan@prisma "101202 303404 505606"

hcpbatch's People

Contributors

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