Generate FA values of .tck file

Dear Experts,

I’ve used following combined command (thanks @liyuan_yang for providing it here: The value of FA.nii.gz).

dwi2tensor dwi.mif - -mask mask.mif | tensor2metric - -fa fa.mif

to compute an FA mask, based on the preprocessed diffusion data (dwi.mif) and used it for subsequent command, to get info about the FA-values:

tcksample fiber_bundle.tck fa.mif values.tsf

Questions:

  1. I’d like to get info about the min and max FA values of the track.
    How could I calculate that? If I export the tcksample file via dwi2tensor without .tsf, I get a textfile showing all values. However, I don’t know how to find out the min and max values via computing (I could read through the whole document and mark the values by hand but that would take ages…)
  1. Is there an option to visualise the track file with the min and max FA values in the fashion of a heat map? So that the min FA values could be visualised dark and the max values bright?

Like always, thank you very much for your great support. Best, Lucius