# Fiber(column) tracking in the gray matter

**URL:** <https://community.mrtrix.org/t/fiber-column-tracking-in-the-gray-matter/2368>\
**Category:** Uncategorized\
**Created:** [March 17, 2019, 2:55pm UTC](https://community.mrtrix.org/t/fiber-column-tracking-in-the-gray-matter/2368 "2019-03-17T14:55:45Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yixin\_Ma](https://community.mrtrix.org/user_avatar/community.mrtrix.org/yixin_ma/32/2696_2.png) [@Yixin\_Ma](https://community.mrtrix.org/u/Yixin_Ma)\
**Post date:** [March 17, 2019, 2:55pm UTC](https://community.mrtrix.org/t/fiber-column-tracking-in-the-gray-matter/2368/1 "2019-03-17T14:55:45Z")

</div>

Hi MRtrix3,

I’m writing to ask about tracking only 1mm-3mm fiber ‘columns’ in the gray matter. The following is my post-processing procedure, could you please take a look and see if it’s making sense to use MRtrix3 to approach this.

1. anisotropic voxel (0.625 0.625 2.6), no interpolation, as suggested by Rob.
2. -include, -mask, and -seed with the mask of the cortex.
3. -fiber length: 1-3mm,
4. -algorithm Tensor\_Det
5. -angle: 5 degrees.
6. -cutoff stop at FA value of 0.05.

Best regards,

Yixin

---

<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:** [April 6, 2019, 4:41pm UTC](https://community.mrtrix.org/t/fiber-column-tracking-in-the-gray-matter/2368/2 "2019-04-06T16:41:10Z")

</div>

OOOkay, this is a massive can of worms to be opening…

Firstly, part of the way that ACT behaves by default is predicated on the notion that cortical columns _can’t_ be reliably tracked, and therefore streamlines are just terminated at the interface because anything beyond that is not trustworthy. Now that’s not to say that ACT _can’t_ track through the cortex, in fact it only requires a very simple tweak: Take the “cortical GM” volume from the 5TT image, add those partial volume fractions to the “Sub-cortical GM” volume, and then null the “Cortical GM” volume (they’re really more like “GM-you-can’t-track-through” and “GM-you-can-track-through” images…). That’s not to say this is a solution specifically for what you’ve asked here, I just wanted to explain that in case it’s relevant for yourself or anyone else interested in cortical columns.

If you have a specific interest in attempting to track cortical columns, I would definitely advocate pursuing an acquisition that is at least _closer_ to isotropic. With the acquisition you have, your ability to track any curvature within the columns themselves will depend strongly on the orientation of those columns relative to the DWI voxel grid.

Furthermore, can you provide the resolution of any anatomical-contrast image you have? The reality is that in an experiment such as this, your results are going to depend exceptionally strongly on the quality of your tissue segmentation: fibre orientations from the diffusion model will only influence the angle that the streamlines take as they traverse that small 1-3mm gap between GM-pial and GM-WM interfaces. Use of binary masks to represent the tissues rather than partial volume fractions or native surface representations will be far more detrimental here than it would be in a typical tracking experiment, as the fraction of the streamlines lengths where the presence or absence of sub-voxel interpolation has an effect is greatly increased with such short streamlines.

I would suggest considering: should streamlines be permitted to terminate halfway across the depth of the cortical ribbon, or do you want to enforce that _all_ streamlines _must_ span from one interface to the other? This influences how you may wish to define your priors using image information.

Okay, final thought: ACT can be hacked. The algorithms provided in the `5ttgen` script are not the only way to derive a 5TT image, and you can change the information contained within the 5TT image to alter what biological priors are applied where. So for instance: You could re-map the cortical segmentation to volume 2 (“WM”), and re-map both the CSF and WM segmentations to volume 0 (“Cortical GM”). Then, streamlines would only be permitted to exist within the cortical ribbon, and a streamline would need to reach either CSF or WM at both endpoints in order to be deemed satisfactory according to your imposed priors. Just food for thought…

Rob

---

<div class="post-metadata">

**Author:** ![Yixin\_Ma](https://community.mrtrix.org/user_avatar/community.mrtrix.org/yixin_ma/32/2696_2.png) [@Yixin\_Ma](https://community.mrtrix.org/u/Yixin_Ma)\
**Post date:** [April 6, 2019, 7:57pm UTC](https://community.mrtrix.org/t/fiber-column-tracking-in-the-gray-matter/2368/3 "2019-04-06T19:57:42Z")

</div>

Hi Rob,

Thanks for your reply. These are all super valuable thoughts.

The anatomical-contrast image that I have is 1x1x1 mm3 isotropic whole brain volume. This resolution value was chosen because FreeSurfer reconstruction works best with 1mm isotropic voxel size. I can use the image prior generated from Freesurfer to hack the 5TT image, as you described.

One question I have is that: I am not sure what is the partial volume fractions? Does the MRtrix3 accept the input of partial volume fractions or native surface representations in addition to the binary mask?

I only want to analyze the fiber column in the gray matter, but I’m not sure which of the following method will make more sense from the perspective of neuronal anatomy. 1) to track the fibers in the entire brain (allow the fiber to grow into the cortex, and then take a mask of only the cortex. 2) to track the fibers only in the cortex.

I think I will try both and let you know how that works.

Thanks in advance.

Yixin

---

<div class="post-metadata">

**Author:** ![ThijsDhollander](https://community.mrtrix.org/user_avatar/community.mrtrix.org/thijsdhollander/32/1617_2.png) [@ThijsDhollander](https://community.mrtrix.org/u/ThijsDhollander)\
**Post date:** [April 7, 2019, 3:35am UTC](https://community.mrtrix.org/t/fiber-column-tracking-in-the-gray-matter/2368/4 "2019-04-07T03:35:20Z")

</div>

Hi @Yixin_Ma,

In this context, you might be particularly interested in the upcoming MACT (Mesh-based ACT) framework developed by @chunhungyeh from our group / the MRtrix3 team: it’ll allow for _some_ of the discussed alterations to be performed more directly, in a less hacky or even properly hack-free way. See his post below for some details on the topic:

> [@MRtrix tutorial available on OSF](https://community.mrtrix.org/t/mrtrix-tutorial-available-on-osf/1942/32):
>
> Hi @schilkg1,
> 
> While it might be inappropriate to have a lengthy discussion within this post, I do wish to clarify some points respecting your 2nd and 3rd questions. Please see below.
> 
> ![](https://community.mrtrix.org/letter_avatar_proxy/v2/letter/s/c67d28/40.png) schilkg1:
> 
> > What happens if the streamlines stop just short of labels (for example if my labels don’t exactly align or match the WM/GM boundary)? Will they not be counted in the connectome generation?
> 
> Good question. We did have spotted on the _misalignment_ issue that you mentioned here; indeed, only ~25% of streamlines will be used in the connectome largely because of such misalignment. We describe it as a _source data mismatch_ problem: the WM/GM boundary derived from tissue partial volume maps (based on tissue segmentation) used in tractography is not always consistent with the boundary of brain parcellation images used in connectome construction. Performing a 2-mm search from streamline endpoints (to find the nearest labelled voxel ) is the current _MRtrix3_ ’s default mechanism implemented in `tck2connectome` to deal with such inconsistencies (see the `-assignment_radial_search` in the help page of `tck2connectome` ). Using the radial search, ~85% of streamlines will contribute to the outcome connectome. If interested, please see [this abstract](https://www.researchgate.net/publication/307862648_The_influence_of_node_assignment_strategies_and_track_termination_criteria_on_diffusion_MRI-based_structural_connectomics) for the relevant influences.
> 
> ![](https://community.mrtrix.org/letter_avatar_proxy/v2/letter/s/c67d28/40.png) schilkg1:
> 
> > Does MRTrix have any capabilities for connectome generations using meshes as opposed to labels? For example mesh of WM/GM interface or mid-cortex mesh. Similarly, can meshes be used, for use with anatomical constrained tractography, or should this be converted to binary masks?
> 
> To avoid losing precision, my approach to deal with the _source data mismatch_ is directly using high-resolution tissue surface meshes to _unify_ the source data: the same labelled surfaces are used for both tractography and connectome generation, as described in your question. I called this method _Mesh-based ACT_ (or _MACT_ ), where streamline endpoints are the intersection points between streamlines and the labelled surfaces (cortical and sub-cortical WM/GM surfaces). When using MACT for connectome generation, there is no need to convert, for example, the vertex-wise labels of HCP-MMP into volume-based labelled images.
> 
> For more details, please see [MACT abstract](https://www.researchgate.net/publication/315836374_Mesh-based_anatomically-constrained_tractography_for_effective_tracking_termination_and_structural_connectome_construction) for reference. If you registered the ISMRM2017 meeting, I think my presentation video ([0058](https://www.ismrm.org/17/program_files/O71.htm)) should still be accessible, there are more explanations on the background and the principle of MACT.
> 
> Finally, about using a mid-cortex mesh, I believe that it would only require a simple change in MACT. Coincidentally, I did once consider using a mid-cortex mesh as a default setting (rather than taking both inner and outer cortical GM surfaces). If you or anyone see any potential benefits or applications of using mid-cortex, I’d love to hear your insights and recommendations. So, even though MACT is not yet available in _MRtrix3_ , it has already and still received serious development by me and has been applied to a few studies. Any queries about MACT are very much welcome; please let me know via a personal message or an email.
> 
> Many thanks.

The original post (in its original context) can be found here: [MRtrix tutorial available on OSF - #32 by chunhungyeh](http://community.mrtrix.org/t/mrtrix-tutorial-available-on-osf/1942/32) .

Cheers,  
Thijs

---

<div class="post-metadata">

**Author:** ![Yixin\_Ma](https://community.mrtrix.org/user_avatar/community.mrtrix.org/yixin_ma/32/2696_2.png) [@Yixin\_Ma](https://community.mrtrix.org/u/Yixin_Ma)\
**Post date:** [April 7, 2019, 3:49pm UTC](https://community.mrtrix.org/t/fiber-column-tracking-in-the-gray-matter/2368/5 "2019-04-07T15:49:28Z")

</div>

Hi Thijs,

Thank for this information, they are extremely helpful. I am looking forward to trying this function when it is available.

I do have some detailing questions regarding this, what if the anatomical image needs to be registered to the DTI volume (e.g., DTI is a slab of oblique coronal slices with the resolution of 0.625x0.625x2.6 mm3, and the anatomical image is whole-brain with the resolution of1x1x1 mm3). The mesh of the cortical surface will be generated based on the anatomical image (1x1x1mm3) using FreeSurfer. In that case, will the mesh file handle the mismatch of voxel size and a 6 dof rotation? If not, how should I pre-process the images before putting them into the MACT model?

Best,

Yixin

---

<div class="post-metadata">

**Author:** ![chunhungyeh](https://community.mrtrix.org/user_avatar/community.mrtrix.org/chunhungyeh/32/4570_2.png) [@chunhungyeh](https://community.mrtrix.org/u/chunhungyeh)\
**Post date:** [April 8, 2019, 10:42am UTC](https://community.mrtrix.org/t/fiber-column-tracking-in-the-gray-matter/2368/6 "2019-04-08T10:42:56Z")

</div>

Hi @Yixin_Ma,

> [@Yixin\_Ma](#):
>
> The anatomical-contrast image that I have is 1x1x1 mm3 isotropic whole brain volume. This resolution value was chosen because FreeSurfer reconstruction works best with 1mm isotropic voxel size. I can use the image prior generated from Freesurfer to hack the 5TT image, as you described.

> [@rsmith](#):
>
> Now that’s not to say that ACT _can’t_ track through the cortex, in fact it only requires a very simple tweak: Take the “cortical GM” volume from the 5TT image, add those partial volume fractions to the “Sub-cortical GM” volume, and then null the “Cortical GM” volume (they’re really more like “GM-you-can’t-track-through” and “GM-you-can-track-through” images…). That’s not to say this is a solution specifically for what you’ve asked here, I just wanted to explain that in case it’s relevant for yourself or anyone else interested in cortical columns.

> [@rsmith](#):
>
> So for instance: You could re-map the cortical segmentation to volume 2 (“WM”), and re-map both the CSF and WM segmentations to volume 0 (“Cortical GM”). Then, streamlines would only be permitted to exist within the cortical ribbon, and a streamline would need to reach either CSF or WM at both endpoints in order to be deemed satisfactory according to your imposed priors.

I’ll throw in my two cents: If you are going to take the methods above, there are a few things to watch out: The groove of a sulcus can be very tiny and sometimes not really visible/detectable on T1 due to limited image resolution (i.e. the partial volume effect). So, there are good chances that streamlines may transverse across the gap of the sulcus. Similar effects may occur in other brain areas, a few examples here: cross-hemisphere streamlines could appear in regions where the cortices of both hemispheres attached to each other on the images; likewise, there are also good chances that streamlines would directly enter cerebellum from temporal or occipital lobe. So for tracking in cortical columns, unless having very high-resolution T1-weighted images or a decent tissue segmentation algorithm, I personally think that the methods suggested above probably require more fine adjustments either in `5ttgen` or in ACT.

> [@Yixin\_Ma](#):
>
> I do have some detailing questions regarding this, what if the anatomical image needs to be registered to the DTI volume (e.g., DTI is a slab of oblique coronal slices with the resolution of 0.625x0.625x2.6 mm3, and the anatomical image is whole-brain with the resolution of1x1x1 mm3). The mesh of the cortical surface will be generated based on the anatomical image (1x1x1mm3) using FreeSurfer. In that case, will the mesh file handle the mismatch of voxel size and a 6 dof rotation? If not, how should I pre-process the images before putting them into the MACT model?

If I understand correctly, your concern is about the alignment of the surface meshes with the DWI data, is that right? I usually use SPM to register T1 to DWI for intra-subject registration (motion correction), which only modifies the transformation info stored in T1’s header, i.e. T1s are not resampled to voxel dimension of DWI data. Then, I run surface reconstruction on the registered T1s (of the original resolution), so there is no need to apply a rigid-body transform to the meshes.  
For your reference, MACT already uses both outer and inner cortical grey matter surfaces (e.g. FreeSurfer’s pial and white surfaces) as anatomical references, and has the mechanism to avoid issues like cross-sulcus tracking and so forth. I think it would be simple to customise MACT codes for your need, if tracking in the cortical column is what you are aiming for.

Cheers.  
Jimmy

---

<div class="post-metadata">

**Author:** ![Yixin\_Ma](https://community.mrtrix.org/user_avatar/community.mrtrix.org/yixin_ma/32/2696_2.png) [@Yixin\_Ma](https://community.mrtrix.org/u/Yixin_Ma)\
**Post date:** [April 8, 2019, 2:29pm UTC](https://community.mrtrix.org/t/fiber-column-tracking-in-the-gray-matter/2368/7 "2019-04-08T14:29:44Z")

</div>

Thank you for your reply. I sincerely appreciate all of your help.

I do have two more questions: 1) When will the MACT code be published so that I can try to track the cortical columns. I’m looking forward to trying this. 2) You mentioned that, before FreeSurfer reconstruction, T1s are rotated, but are not resampled into smaller voxel size of DWI. Does it mean that we will interpolate/resample the meshes (e.g. Pial surface and GW/WM surface) generated from FreeSurfer later? Is there any potential problems regarding this mesh interpolation?

Best,

Yixin

---

<div class="post-metadata">

**Author:** ![chunhungyeh](https://community.mrtrix.org/user_avatar/community.mrtrix.org/chunhungyeh/32/4570_2.png) [@chunhungyeh](https://community.mrtrix.org/u/chunhungyeh)\
**Post date:** [April 11, 2019, 9:57pm UTC](https://community.mrtrix.org/t/fiber-column-tracking-in-the-gray-matter/2368/8 "2019-04-11T21:57:29Z")

</div>

Hi @Yixin_Ma,

No, there is no need to interpolate or resample the meshes. I’ll contact you via private message in the next few days to discuss how to adapt MACT codes for your need.

Cheers.

---

<div class="post-metadata">

**Author:** ![Yixin\_Ma](https://community.mrtrix.org/user_avatar/community.mrtrix.org/yixin_ma/32/2696_2.png) [@Yixin\_Ma](https://community.mrtrix.org/u/Yixin_Ma)\
**Post date:** [April 11, 2019, 11:44pm UTC](https://community.mrtrix.org/t/fiber-column-tracking-in-the-gray-matter/2368/9 "2019-04-11T23:44:35Z")

</div>

Thank you very much!!!

Yixin

---

<div class="post-metadata">

**Author:** ![Yixin\_Ma](https://community.mrtrix.org/user_avatar/community.mrtrix.org/yixin_ma/32/2696_2.png) [@Yixin\_Ma](https://community.mrtrix.org/u/Yixin_Ma)\
**Post date:** [April 19, 2019, 12:15am UTC](https://community.mrtrix.org/t/fiber-column-tracking-in-the-gray-matter/2368/10 "2019-04-19T00:15:08Z")

</div>

Hi @rsmith @chunhungyeh @ThijsDhollander,

Thank you very much for your help on this topic.

I have one more question. What tensor tracking algorithm do you recommend me to use for the gray matter? I started from just Tensor\_Det, but I am worried because the gray matter should have lots of crossing fibers. (DTI acquisition parameters: 60 diffusion directions, b=800, 0.625x0.625x2.6 mm3, ) . I’m writing to ask if you think it would make sense to run more complicated algorithms on gray matter fiber tracking?

Cheers,

Yixin
