Hi,

I ran into troubles trying to create graph in MRtrix.

I have created a parcellation (.nii), have the output file of the constrained spherical deconvolution (.mif) and the track file (.tck) ready.

I am thinking of using tck2connectome to create a graph. I would like to weight the connections by the number of streamlines divided by the mean volume of the two nodes they connect. Unfortunately none of the “standard” option of the function seems to do that. Is there any way to custom design a weighting according to my needs?

I would appreciate any advice.

Regards,

Lena

Edit: For now I am simply creating one graph using the option to weight by the number of streamlines, and another one, weighting by the inverse volume. I then invert the matrix of the volume and divide the streamlines matrix by it. I am assuming there is a simpler option though.