I am working on DWI images and want to use tckgen to output asymmetric connectivity matrix when using probabilistic tractography algorithm iFOD2. However, I can’t get it.
While diffusion tractography is not sensitive to the directionality of connections, parcel A to B and parcel B to A streamlines are computed separately minor asymmetries arise. Below is my code:
… parcel A to B and parcel B to A streamlines are computed separately minor asymmetries arise …
If this is the process by which a structural connectome matrix is generated, then yes, the data will manifest asymmetries in the connectivity matrix. However that is not how the matrix is being generated in your case. Indeed you can see from your tckgen call that a white matter mask is being used to generate streamlines: if the streamline seed point is somewhere within the length of the streamline, rather than one of the endpoints, then it is impossible to attribute one of the endpoints as the “seed” and the other as the “target”.
… how can generate the asymmetric connectivity matrix shown below ?
If you really wanted to generate a connectivity matrix in this way, then you would need to perform a different sequence of steps:
For each unique parcel:
Perform unidirectional tracking from that parcel
Assign streamline endpoints only (ie. not starting points) to target parcels (see tck2connectome -vector)
Concatenate 1D connectivity vectors to produce 2D matrix
The disadvantage of this approach is that it precludes the application of any method that requires as input a whole-brain tractogram (e.g. SIFT(2)), as no such tractogram is produced.
I can only get the upper triangular matrix
Just in case: you can ask tck2connectome to write a symmetric matrix using the -symmetric option (I intend in the future to turn this into a config file entry so that people can pre-specify their own preferences in this regard). But that’s only a change to how the natively undirected data are written to file; it doesn’t change the nature or interpretation of the underlying data, and will by design not contain any asymmetries.