I am currently evaluating DWI data of the cervical and thoracic spine.
In the process, I have noticed several negative values in the evaluations of MD, RD and AD in multiple subjects.
However, no negative values appear in the histograms.
As I understand it, negative values should not be able to show up in AD, MD and RD either.
Do you have an idea what could be the reason for this?
I am using version 5.4 and have used the following command:
Here are some pictures of the results: MD, AD and RD of the same subjects. As you can see, the negative values differ from subject to subject as well as within the results of a single subject.
Thank you so much for sharing some example data in a private message! I was able to use your data and script to reproduce the issue.
I’ve since been investigating the data that you provided in GitHub Issue #3849, and I’ve managed to narrow down the problem to sct_dmri_compute_dti -method restore, which appears to be producing some spurious outlier values in the computed DTI measures.
dti_MD.nii.gz, before adjusting the FSLeyes display scaling:
I believe these outlier voxels are causing the sct_extract_metric -map calculation to produce negative values.
To test this, I then tried without -method restore in your script, and was able to produce all-positive DTI values in the CSV files.
I want to continue investigating why -method restore is behaving this way. But, for now, could you please try rerunning your processing without -method restore to see if this addresses your issue?
I rerun two of my subjects with negative values and so far only positive values were created.
I am going to analyze the rest without the restore-flag and will keep you updated.
That is good to know! Thank you for the link.
So far the script is running smoothly. I guess Joshua just solved the problem
So again, many thanks to both of you!