Skip to content

Calculate the RMSE between a tensor fit from dtiInit and the diffusion weighted imaging data

License

Notifications You must be signed in to change notification settings

scitran-apps/dti-error

Repository files navigation

scitran/dti-error

Docker Pulls Docker Stars

Calculate RMSE between the measured signal and the ADC (or dSIG) based on tensor model fit provided by dtiInit.

This gear calculates the histogram of differences between DTI based predictions (ADC or dSig) with the actual ADC or dSig data. Larger deviations suggest noisier data. This is one of a series of methods we are developing to assess the reliability of diffusion weighted image data.

Build the Gear

git clone https://github.com/scitran-apps/dti-error
cd dti-error
./build.sh

Example Usage

First download a dtiInit output archive and save to disk (e.g., dtiInit_27-Jan-2017_18-51-24.zip used below). Then run the commands below:

# Directory and file handling
DTIINIT_OUTPUT=dtiInit_27-Jan-2017_18-51-24.zip # Use the name of your dtiInit output
INPUT_DIR=`pwd`/input/dtiInit_Archive
OUTPUT_DIR=`pwd`/output
mkdir -p $INPUT_DIR
mkdir -p $OUTPUT_DIR

# Run the Gear
docker run --rm -ti -v $INPUT_DIR:/flywheel/v0/input -v $OUTPUT_DIR:/flywheel/v0/output scitran/dti-error:v0.1.0

Compile the Matlab Executable

Clone required code and prepare for compilation:

git clone https://github.com/scitran-apps/dti-error
git clone https://github.com/vistalab/vistasoft

In Matlab (e.g., r2015b):

mcc -m dti-error/src/gear_dtiError.m -I vistasoft -I dti-error/src

About

Calculate the RMSE between a tensor fit from dtiInit and the diffusion weighted imaging data

Resources

License

Stars

Watchers

Forks

Packages

No packages published