--
---
You received this message because you are subscribed to the Google Groups "NiPy Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nipy-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Ariel,Thank you for your reply!The sigma is being estimated from the 2nd method mentioned here:http://nipy.org/dipy/examples_built/restore_dti.html
Namely, the average standard deviation in the b=0 images (corrected for the bias resulting from having so few b0 images). We are using GE data (with asset / parallel imaging), and thus I'm not sure it's possible to use the information outside of the brain to compute the sigma (because of how the recon is done). We could turn to the ventricles, however, the data are from children, where in many cases the ventricles are quite small, and I'm not sure how consistent/valid the sigma would be across subjects.
In response to your second point -- no, we don't have particularly noisy data (although, they are kids who tend to move a bit more than adults). We are mostly exploring alternative options to the standard tensor fit. This is in response to some of the recent literature we've seen where this is done, and to comments from reviewers that I've seen posted to the FSL list (reviewer suggesting the default way of computing the tensor in FSL is not sufficient). That all being said...when comparing the nonlinear fit to the standard fit from FSL, we see nearly identical results, at least in terms of FA.
Thanks again for the reply.All the best,RyanOn Wednesday, April 16, 2014 4:19:08 PM UTC+2, Ryan Muetzel wrote:Dear all,I am attempting to use the dipy reconstruction with the RESTORE method/fit. The commands work just fine if I use the default WLS, and the nonlinear method...however, when I try the restore method, I get the error below.The commands I'm using follow the example on the dipy website exactly (including the computation of the sigma), except that I'm using data from our scanner. I'm using 35 direction DTI data plus 3b=0s, in case that is helpful.Any ideas on what I'm doing wrong? As I mention above....when i use the WLS or nonlinear methods, the process finishes without error, and I get similar maps to what I see from FSLs DTIFIT.Let me know if you have any suggestions for me!All the best,Ryan>>> dti_restore_fit = dti_restore.fit(data)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/dipy-0.7.1-py2.7-linux-x86_64.egg/dipy/reconst/dti.py", line 621, in fit
*self.args, **self.kwargs)
File "/usr/local/lib/python2.7/dist-packages/dipy-0.7.1-py2.7-linux-x86_64.egg/dipy/reconst/dti.py", line 1460, in restore_fit_tensor
Dfun=_nlls_jacobian_func)
File "/usr/lib/python2.7/dist-packages/scipy/optimize/minpack.py", line 278, in leastsq
raise TypeError('Improper input: N=%s must not exceed M=%s' % (n,m))
TypeError: Improper input: N=7 must not exceed M=3
Hi Ryan,Sorry for the delay in responding!On Wed, Apr 16, 2014 at 9:48 AM, Ryan Muetzel <muet...@gmail.com> wrote:
Hi Ariel,Thank you for your reply!The sigma is being estimated from the 2nd method mentioned here:http://nipy.org/dipy/examples_built/restore_dti.html
Namely, the average standard deviation in the b=0 images (corrected for the bias resulting from having so few b0 images). We are using GE data (with asset / parallel imaging), and thus I'm not sure it's possible to use the information outside of the brain to compute the sigma (because of how the recon is done). We could turn to the ventricles, however, the data are from children, where in many cases the ventricles are quite small, and I'm not sure how consistent/valid the sigma would be across subjects.That seems reasonable. I am also doing measurements with GE and indeed, you can't use the corner to estimate the noise in these measurements. Estimating sigma based on 3 b=0 measurements might not be great, so I would look closely at those estimates. In particular, the error you are seeing is what happens when RESTORE considers most of the measurements to be outliers. This might also arise in the (small minority of) voxels in which the tensor model does not provide a good fit for the data, regardless of the noise. For example, in the centrum semi-ovale. Remember that RESTORE assumes that the tensor model is the right model for the data.