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.
git clone https://github.com/scitran-apps/dti-error
cd dti-error
./build.sh
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
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