# Error with read\_mrtrix

**URL:** <https://community.mrtrix.org/t/error-with-read-mrtrix/2628>\
**Category:** Uncategorized\
**Created:** [June 27, 2019, 9:41pm UTC](https://community.mrtrix.org/t/error-with-read-mrtrix/2628 "2019-06-27T21:41:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![claudialugo](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/c/e9c0ed/32.png) [@claudialugo](https://community.mrtrix.org/u/claudialugo)\
**Post date:** [June 27, 2019, 9:41pm UTC](https://community.mrtrix.org/t/error-with-read-mrtrix/2628/1 "2019-06-27T21:41:27Z")

</div>

Hi all!

Im trying to use the read\_mrtrix matlab function and am getting the following error:

> > read\_mrtrix(‘/Volumes/FTO/Shared/fixel\_mask\_37/13/stats\_fc/name.mif’)  
> > Invalid field name: ‘angular threshold’.  
> > Error in setfield (line 33)  
> > s.(deblank(strField)) = varargin{end};  
> > Error in read\_mrtrix\>add\_field (line 129)  
> > image = setfield (image, key, value);  
> > Error in read\_mrtrix (line 45)  
> > image = add\_field (image, key, value);

Any ideas what could be going wrong?

---

<div class="post-metadata">

**Author:** ![jdtournier](https://community.mrtrix.org/user_avatar/community.mrtrix.org/jdtournier/32/2594_2.png) [@jdtournier](https://community.mrtrix.org/u/jdtournier)\
**Post date:** [June 27, 2019, 11:00pm UTC](https://community.mrtrix.org/t/error-with-read-mrtrix/2628/2 "2019-06-27T23:00:07Z")

</div>

Yes, this is due to the use of key names in the image header that contain spaces. I hadn’t realised these had been introduced (though by the looks of things, that’s been [in the code since 2014](https://github.com/MRtrix3/mrtrix3/commit/1fa7d963dc79baf257dd32b3a38defb335131206#diff-72473e45445eec1a3b304d902e7dab86R470)). The only command that does this is `fixelcfestats`, so its outputs will contain these issues…

I’m not sure how best to handle this. One option is to modify the matlab code to handle this properly, but I’m also tempted to change these key names to remove the spaces. I have a feeling I might do both, but we’ll need to discuss this within the development team… I’ve created an [issue for this on GitHub](https://github.com/MRtrix3/mrtrix3/issues/1633) for those who are interested in the discussion.

---

<div class="post-metadata">

**Author:** ![claudialugo](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/c/e9c0ed/32.png) [@claudialugo](https://community.mrtrix.org/u/claudialugo)\
**Post date:** [June 28, 2019, 2:21pm UTC](https://community.mrtrix.org/t/error-with-read-mrtrix/2628/3 "2019-06-28T14:21:19Z")

</div>

Thank you! Im trying to use this function to figure out the number of fixels that significantly differ between my groups on my FBA analyses. Is there any other way to gather this information?  
Thanks again,

Claudia

---

<div class="post-metadata">

**Author:** ![rsmith](https://community.mrtrix.org/user_avatar/community.mrtrix.org/rsmith/32/2672_2.png) [@rsmith](https://community.mrtrix.org/u/rsmith)\
**Post date:** [June 30, 2019, 12:05pm UTC](https://community.mrtrix.org/t/error-with-read-mrtrix/2628/4 "2019-06-30T12:05:29Z")

</div>

> Im trying to use this function to figure out the number of fixels that significantly differ between my groups on my FBA analyses. Is there any other way to gather this information?

`mrthreshold fwe_pvalue.mif -abs 0.95 - | mrstats fwe_pvalue.mif -mask - -output count`
