# Estimating macrostructural properties with MRtrix 

**URL:** https://community.mrtrix.org/t/estimating-macrostructural-properties-with-mrtrix/5943
**Category:** Uncategorized
**Tags:** tractography
**Created:** [August 16, 2022, 9:17am UTC](https://community.mrtrix.org/t/estimating-macrostructural-properties-with-mrtrix/5943 "2022-08-16T09:17:40Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![fionaEyoung](https://community.mrtrix.org/user_avatar/community.mrtrix.org/fionaeyoung/32/3826_2.png) [@fionaEyoung](https://community.mrtrix.org/u/fionaEyoung)
#### Post date: [August 16, 2022, 10:45am UTC](https://community.mrtrix.org/t/estimating-macrostructural-properties-with-mrtrix/5943/2 "2022-08-16T10:45:35Z")

</div>

Hi Shireen

Looking at the definitions of the various macrostructural features in the [original paper that defines them](https://www.biorxiv.org/content/10.1101/2020.04.19.049544v2.full) (and also the definitions in this [table](https://link.springer.com/article/10.1007/s00429-022-02503-z/tables/2)), it seems like the “length of the fiber bundle” is essentially the mean track length of all streamlines in the bundle, which is what you would get from `tckstats`. I’d be careful here, as you want to be sure that _all_ of the streamlines in your bundle do in fact traverse its entire length, which depending on the seeding / ROI strategy is not necessarily guaranteed. The `tckgen` options `-seed_unidirectional` and/or `-stop` might be useful there. The [endings segmentations](https://github.com/MIC-DKFZ/TractSeg#segment-bundle-start-and-end-regions) functionality provided by TractSeg could also be useful there.  
As for the other properties like surface area, those are also defined mathematically so with a bit of creativity you should be able to at least approximate the same proceedures in MRtrix. E.g for the surface area, it looks like that metric is based on the number of surface voxels of the bundle segmentation. You could use `maskfilter erode -npass 2` and subtract result from the original segmentation to get the “surface” voxels (similar to the process for creating a [glass brain](https://community.mrtrix.org/t/fiber-tract-visualised-on-a-glass-brain/4932)), and then count them up using `mrstats -ignorezero`.  
(disclaimer: these suggestions don’t claim to be able to exactly reproduce the methodology of the paper in question 🙂)  
Hope that’s helpful!  
Fiona

---

_[View the full topic](https://community.mrtrix.org/t/estimating-macrostructural-properties-with-mrtrix/5943)._
