I am trying to estimate connectivity matrix from tractoflow output *.trk files.
I have following questions:
What are the options that can used while running tractoflow to generate connectivity matrix in outputs
If not generated in tractoflow outputs, whats the best way to generate it. I have used connectivitymatrix from dipy.tracking.utils. Any must todos while doing this? I get non-zero diagonal terms - why?
Tractoflow does not generate connectivity matrices.
There is no “best” way to generate it, and there are many options for atlases, streamline-to-region determination mechanisms, and edge weight normalization, each with their own biases. Without knowing more about your data and research questions, it would be difficult to prescribe an exact solution.
Streamlines that begin and end in the same region, or even just pass through the seed region while traveling, depending on how you constructed the matrix…
If you want to keep working in the tractoflow ecosystem, we developped connectoflow. Tomorrow, I’ll release the new container the corresponding container. You also can use combine_flows to organise your data accordingly. There is a PR specifically for connectoflow.