This app will register a DWI image to a T1w image and rotate the bvecs. First, a brainmask is created of from the DWI image using FSL's bet function by running the brainmask script. Then, the brainmask image is aligned to the T1 using Vistasoft's dtiRawAlignToT1 function. The transformation matrix from this is then used to resample the DWI image using Vistasoft's dtiRawResample function. Finally, the bvecs are rotated based on the transformation using Vistasoft's dtiRawReorientBvecs function. These last three steps are all performed by running the main script.
- Brad Caron (bacaron@iu.edu)
- Soichi Hayashi (hayashi@iu.edu)
- Franco Pestilli (franpest@indiana.edu)
You can submit this App online at https://doi.org/10.25663/bl.app.50 via the "Execute" tab.
- git clone this repo.
- Inside the cloned directory, create
config.json
with something like the following content with paths to your input files.
{
"t1": "./input/t1/t1.nii.gz",
"dwi": "./input/dwi/dwi.nii.gz",
"bvals": "./input/dwi/dwi.bvals",
"bvecs": "./input/dwi/dwi.bvecs",
"interpolation": "linear"
}
You can download sample datasets from Brainlife using Brainlife CLI.
npm install -g brainlife
bl login
mkdir input
bl dataset download 5b96bbbf059cf900271924f2 && mv 5b96bbbf059cf900271924f2 input/t1
bl dataset download 5b96bbf2059cf900271924f3 && mv 5b96bbf2059cf900271924f3 input/dwi
- Launch the App by executing
main
./main
The main output of this App is a dwi.nii.gz, along with the bvals and bvecs. These can then be used in any app requiring a dwi file.
The secondary output of this app is product.json
. This file allows web interfaces, DB and API calls on the results of the processing.
This App requires the following libraries when run locally.