Differences between revisions 28 and 29
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
'''AnatomiCuts''' is an unsupervised hierarchical clustering that uses an anatomical similarity metric.  '''AnatomiCuts''' is an unsupervised hierarchical clustering that uses an anatomical similarity metric to cluster together white matter streamline with similar neighboring anatomical structures.
Line 12: Line 13:
- a segmentation image, preferable including cortical and subcortical parcellation with white matter segmentation based on neighboring regions (wmparc.mgz or wm2009parc.mgz). - segmentation image, ideally, including cortical and subcortical parcellation with white matter segmentation based on neighboring regions (wmparc or wm2009parc).
Line 14: Line 15:
'''It is important to ensure that the streamlines and the segmentation are in the same space.''' To validate this it is recommended to visualize the streamline file and the segmentation file using '''both''' Freeview and Trackvis, since Freeview does not take into account RAS orientation, and Trackvis does not take into account the image offset. '''It is important to ensure that the white matter streamlines and the segmentation are in the same space.''' To validate this it is recommended to visualize the streamlines file and the segmentation file using '''both''' Freeview and Trackvis, since Freeview does not take into account RAS orientation, and Trackvis does not take into account the image offset.
Line 18: Line 19:
Sometimes deterministic tractography can generate spurious streamlines outside the brain. To exclude them we can use [[streamlineFilter| streamlineFilter]]. It is recommended to remove the short streamlines that can prematurely end during tractography. It is also possible to remove the ushape streamlines. Sometimes deterministic tractography can generate spurious streamlines outside the brain, or very short cut off streamlines. To exclude them we can use [[streamlineFilter| streamlineFilter]]. It is recommended to remove the short streamlines that can prematurely end during tractography. It is also possible to remove the ushape streamlines.
Line 30: Line 31:
-c number of clusters

-s segmentation file such as wm2009parc.nii.gz

-f streamline file in trk format.
Line 38: Line 33:
-n number of points to be used per streamline. The default is 10. -n number of points to be sampled per streamline. The default is 10.
Line 42: Line 37:
-d directional neighbors to be used, the default is "a" all (26), diagonal "d" is 14 and straight "s" is 6. -d directional neighbors to be used, the default is "a" all with 26 directions, diagonal "d" contains 14 directions and straight "s" only 6 directions.
Line 44: Line 39:
-n number of points to be used per streamline. The default is 10.

-e number of streamlines to be used for the eigendecomposition of normalized cuts algorithm. The default is 500. Using less number of streamlines will fasten substantially the algorithm at the expense of accuracy. For a quick test 50 could be ok, but in practice, less than 300 is not recommended.

-d directional neighbors to be used, the default is "a" all (26), diagonal "d" is 14 and straight "s" is 6.
-o output folder
Line 53: Line 43:
You can find one-to-one correspondences using [[AnatomiCuts_correspondences| AnatomiCuts_correspondences]]. The Hungarian algorithm allows to find one-to-one correspondences and it's implementation for AnatomiCuts at multiple levels of the tree hierarchy can be found in [[AnatomiCuts_correspondences| AnatomiCuts_correspondences]].
Line 57: Line 47:
To load the clusters obtained with AnatomiCuts got to "File -> Load Tract Cluster" and select the AnatomiCuts output folder. To load the clusters obtained with AnatomiCuts go to "File -> Load Tract Cluster" and select the AnatomiCuts output folder.

AnatomiCuts

AnatomiCuts is an unsupervised hierarchical clustering that uses an anatomical similarity metric to cluster together white matter streamline with similar neighboring anatomical structures.

  • anatomiCuts_tree.jpgrainbow_brain.png

Inputs

- streamlines file (*.trk)

- segmentation image, ideally, including cortical and subcortical parcellation with white matter segmentation based on neighboring regions (wmparc or wm2009parc).

It is important to ensure that the white matter streamlines and the segmentation are in the same space. To validate this it is recommended to visualize the streamlines file and the segmentation file using both Freeview and Trackvis, since Freeview does not take into account RAS orientation, and Trackvis does not take into account the image offset.

Filtering streamlines

Sometimes deterministic tractography can generate spurious streamlines outside the brain, or very short cut off streamlines. To exclude them we can use streamlineFilter. It is recommended to remove the short streamlines that can prematurely end during tractography. It is also possible to remove the ushape streamlines.

Running AnatomiCuts

AnatomiCuts -s segmentation.nii.gz -f streamlines.vtk  -labels  -o outputFolder  <options> 

Where

-s segmentation file such as wm2009parc.nii.gz

-f streamline file in trk format.

-c number of clusters. The default is 200.

-n number of points to be sampled per streamline. The default is 10.

-e number of streamlines to be used for the eigendecomposition of normalized cuts algorithm. The default is 500. Using less number of streamlines will fasten substantially the algorithm at the expense of accuracy. For a quick test 50 could be ok, but in practice, less than 300 is not recommended.

-d directional neighbors to be used, the default is "a" all with 26 directions, diagonal "d" contains 14 directions and straight "s" only 6 directions.

-o output folder

Finding corresponding clusters across subjects

The Hungarian algorithm allows to find one-to-one correspondences and it's implementation for AnatomiCuts at multiple levels of the tree hierarchy can be found in AnatomiCuts_correspondences.

Visualizing AnatomiCuts in Freeview

To load the clusters obtained with AnatomiCuts go to "File -> Load Tract Cluster" and select the AnatomiCuts output folder.

  • anatomicuts_freeview.pnganatomicuts_freeview_tree.png

References

AnatomiCuts: Hierarchical clustering of tractography streamlines based on anatomical similarity. Siless V., Chang K., Fischl B., Yendiki A.. NeuroImage 2018.

AnatomiCuts (last edited 2019-06-05 04:35:50 by VivianaSiless)