Giter VIP home page Giter VIP logo

generate_fmap's Introduction

generate_fmap

A fieldmap generating tool that takes magnitude and phase images to produce a fmap file

Usage

The scripts uses Synthstrip and FSL tools to generate fieldmaps from one of the following situation:

  1. 2 phase images and 2 magnitude images (./dualecho_fieldmap.sh)
  2. 1 phasediff image and 2 magnitude images (./phasediff_fieldmap.sh)

It will create another directory with the same data but replace above images with fieldmap files in BIDS specification.

Docker command

Situation 1: docker run -v <path/to/input/folder>:/data -v <path/to/output/folder>:/out generate_fmap ./dualecho_fieldmap.sh --mag1=</data/relative/path/to/magnitude1> --mag2=</data/relative/path/to/magnitude2> --phs1=</data/relative/path/to/phase1> --phs2=</data/relative/path/to/phase2>

Situation 2: docker run -v <path/to/input/folder>:/data -v <path/to/output/folder>:/out generate_fmap ./phasediff_fieldmap.sh --mag1=</data/relative/path/to/magnitude1> --mag2=</data/relative/path/to/magnitude2> --phs=</data/relative/path/to/phasediff>

Optional arguments:

--dte   : delta TE                  ( default: 3.75 ms )  

Example:

docker run --rm -it -v $PWD/MY_BIDS:/data -v $PWD/MY_BIDS2:/out generate_fmap ./dualecho_fieldmap.sh --mag1=/data/sub-03/fmap/sub-03_acq-MEGRE_magnitude1.nii.gz --mag2=/data/sub-03/fmap/sub-03_acq-MEGRE_magnitude2.nii.gz --phs1=/data/sub-03/fmap/sub-03_acq-MEGRE_phase1.nii.gz --phs2=/data/sub-03/fmap/sub-03_acq-MEGRE_phase2.nii.gz --dte=2.75

generate_fmap's People

Contributors

yuexinxi avatar

Watchers

 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.