Giter VIP home page Giter VIP logo

epi_t1_nonlinear's Introduction

epi_t1_nonlinear.py

Perfoms nonlinear EPI to T1 registration using antsRegistration. Before, the T1 image has to be processed in freesurfer and the EPI timeseries should be motion corrected. The code works as a reusable nipype workflow or commandline tool.

###nipype example

nipype_epi_t1_nonlin = create_epi_t1_nonlinear_pipeline('nipype_epi_t1_nonlin')
nipype_epi_t1_nonlin.inputs.inputnode.fs_subject_id = '123456'
nipype_epi_t1_nonlin.inputs.inputnode.fs_subjects_dir = '/project/data/freesurfer'
nipype_epi_t1_nonlin.inputs.inputnode.realigned_epi = 'mcflirt.nii.gz'
nipype_epi_t1_nonlin.run()

inputs

inputnode.fs_subject_id    # subject id used in freesurfer
inputnode.fs_subjects_dir  # path to freesurfer output
inputnode.realigned_epi    # realigned EPI timeseries

outputs

outputnode.lin_epi2anat     # ITK format
outputnode.nonlin_epi2anat  # ANTs specific 5D deformation field
outputnode.nonlin_anat2epi  # ANTs specific 5D deformation field

###commandline

-h, --help    show this help message and exit
-epi EPI      realigned EPI timeseries
-fsdir FSDIR  path to freesurfer subjects directory
-fsid FSID    subject id used in freesurfer
-wd WD        working directory to store output

reduce_deformation_fields.py

Reduces dimensions of ANTs specific 5D deformation fields to 4

-h, --help      show this help message and exit
-i FILE_NAME    path to 5D deformation field
-o OUTPUT_NAME  4D output file name

epi_t1_nonlinear's People

Contributors

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