Aveage diffusion parameter of a generated track


#1

Dear MRtrixers,

I was just wondering if there’s an easy way to calculate the average of a diffusion parameter (e.g. FA) of a track produced using tckgen. Just the average of the whole track, simply one value.

Sorry if my question is a bit elementary :sweat_smile:

Cheers,
Joe


#2

There’s a few options:

  • tcksample -stat_tck to generate a text file containing the average value per streamline, which you can then average yourself.

  • tckmap to map the streamlines to an image, followed by mrthreshold -abs at some appropriate value, and finally mrstats -mask to extract the mean value of your parameter of interest.

These are probably your simplest options. Which one you use will depend on what you’re trying to do…


#3

Thanks for the quick reply! Will test out both methods and see which one works best for me. Cheers :grin: