[Camino-users] modelfit 'WARNING: Can't use normalization constant NaN'
Cook, Philip
cookpa at pennmedicine.upenn.edu
Thu Jan 18 07:57:54 PST 2018
Do you have any b=0 measurements in your data? I think the problem is that it's trying to normalize the data by dividing each measurement by the mean b=0 measurement. The non-linear tensor fit only operates on the non-zero b-values. If there is no b=0, the results might look reasonable in terms of anisotropy, but the scale could be off.
If you have a very small minimum b-value (eg, 5 s / mm^2), you could try setting that to 0 in the scheme file. Then it would normalize by those measurements, and the estimated S_0 would be very close to correct.
On Jan 18, 2018, at 10:29 AM, Marie Amelie <mariamelie.sque at gmail.com<mailto:mariamelie.sque at gmail.com>> wrote:
Dear camino users,
I am using camino to fit the tensor model (nonlinear optimization, constrained to be positive semi-definite) on dMRI data with the following command:
modelfit -inputfile dwi.Bfloat -schemefile schemefile.scheme -inversion 2 -bgmask mask_Bfloat.nii.gz -maskdatatype float -outputfile dt.Bdouble
The process globally seems to work fine: the tensor fitting and then the derived scalar maps (produced as indicated in camino's DTI tutorial) are ok both at the visual inspection and by comparing their values to the ones computed by a previous tensor fitting with another tool. However in the terminal I am seeing many instances of these warnings:
Jan 17, 2018 10:50:35 AM imaging.DW_Scheme normalizeData
WARNING: Can't use normalization constant NaN
My question is: can you explain me why I am seeing these warnings? Can I trust my tensor fit despite these warnings? Again, scalar maps and their values look globally fine.
Could it be related to my brain/backgound mask? It is actually rather conservative (i.e. tends to exclude some voxels of the brain rather than include background voxels), but I can't exclude that in some instances it might also include some background (even if perhaps not that frequently).
I am a new camino user, I apologize in advance if this is a basic question.
----------------------------------------------------------------------------
Here follows additional information.
Before the tensor fit, I performed an eddy-current correction (MRtrix' dwipreproc) and then did with camino:
fsl2scheme -bvecfile bvec_rot.txt -bvalfile bval.txt > schemefile.scheme
image2voxel -4dimage dwi.nii.gz -outputfile dwi.Bfloat
For completeness, I report here that I also get some instances of this error:
Jan 17, 2018 10:50:32 AM misc.LoggedException logException
WARNING: Exception in thread "main" class optimizers.MarquardtMinimiserException: Singular Matrix in gaussj - 2
at optimizers.MarquardtMinimiser.gaussj(MarquardtMinimiser.java:362)
at optimizers.MarquardtMinimiser.mrqmin(MarquardtMinimiser.java:231)
at optimizers.MarquardtMinimiser.minimise(MarquardtMinimiser.java:156)
at inverters.NonLinearDT_Inversion.invert(NonLinearDT_Inversion.java:135)
at apps.ModelFit.execute(ModelFit.java:156)
at apps.EntryPoint.main(EntryPoint.java:290)
but from the camino FAQ webpage I think I understood their meaning.
I am running it on a Ubuntu 16.04 machine.
The git log of my camino version is:
commit af55b0acd7895b7d1dafa040df60c494369b138a
Author: Philip Cook <cookpa at mail.med.upenn.edu<mailto:cookpa at mail.med.upenn.edu>>
Date: Fri Oct 6 12:00:17 2017 -0400
ENH: Allow non-zero unweighted measurements for dtspd
---------------------------------------------------------------------------
Any help on my question is highly appreciated.
Thank you in advance.
_______________________________________________
Camino-users mailing list
Camino-users at www.nitrc.org<mailto:Camino-users at www.nitrc.org>
https://www.nitrc.org/mailman/listinfo/camino-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.nitrc.org/pipermail/camino-users/attachments/20180118/87e84dfd/attachment.html>
More information about the Camino-users
mailing list