OSCR

Revisiting the role of structural connectivity-based parcellation in thalamic nuclei segmentation: Benchmarking against recent state-of-the-art methods.

Code ↔ Paper

2 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 2 matches
  1. [1] § Materials and methods › Cortical parcellation schemes ↔ 8parcellation.sh, lines 42–84 · score 0.71 · antsApplyTransforms, antsRegistrationSyNQuick.sh, Motor Cortex, affine, warp, transformation
  2. [2] § Materials and methods › Cortical parcellation schemes ↔ 23parcellation.sh, lines 44–107 · score 0.70 · antsApplyTransforms, posterior opercular, Motor Cortex, affine, warp, transformation

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

Shell · 317 lines · 14 KB · CC-BY-4.0 · 1 match

  1. #!/bin/bash
  2. # Check if the SUBJECT variable is provided
  3. if [ -z "$1" ]; then
  4. echo "No subject provided."
  5. exit 1
  6. fi
  7. # Get the subject name
  8. SUBJECT_DIR="/home/danieldude123/project"
  9. # Access the subject passed from the main script
  10. SUBJECT="$1"
  11. # Define directories and paths
  12. script_dir="/home/danieldude123/scripts/manoj_saranathan_pulvinar"
  13. SUBJECT_DIR="/home/danieldude123/data/${SUBJECT}/T1w/Diffusion/mrtrix_analysis"
  14. result_dir="/home/danieldude123/results/Papers/with_Manoj/results/${SUBJECT}"
  15. thomas_dir="/home/danieldude123/data/${SUBJECT}/T1w/THOMAS"
  16. LEFT_FILE="$SUBJECT_DIR/WTA_mrtrix_analysis_LEFT.nii.gz"
  17. RIGHT_FILE="$SUBJECT_DIR/WTA_mrtrix_analysis_RIGHT.nii.gz"
  18. echo "Processing ${SUBJECT}..."
  19. # Define input files with full paths
  20. T1="${SUBJECT_DIR}/T1TOnodif.nii.gz" ####please rename to the T1 file that is co-registered to diff space
  21. TCK="${SUBJECT_DIR}/10M_SIFT.tck" ####please run on 10M tracks s
  22. # Paths to common files
  23. FIXED_IMAGE="$script_dir/mni_icbm152_t1_tal_nlin_asym_09a.nii" ###please change to common directory containig these 3 files
  24. HCP_22="$script_dir/HCP-MMP1_cortices_1mm.nii.gz" ###please change to common directory containig these 3 files
  25. HCP_180="$script_dir/HCP-MMP_1mm.nii.gz" ###please change to common directory containig these 3 files
  26. LEFT_THALAMUS="${thomas_dir}/left/1-THALAMUS_NF.nii.gz"
  27. RIGHT_THALAMUS="${thomas_dir}/right/1-THALAMUS_NF.nii.gz"
  28. OUTPUT_DIR="${result_dir}/10M_SIFT_output/THOMAS_thalamus_mask/8parcellation"
  29. mkdir -p "$OUTPUT_DIR"
  30. # Transform T1 to MNI space
  31. antsRegistrationSyNQuick.sh -d 3 -f "${FIXED_IMAGE}" -m "${T1}" -o "${OUTPUT_DIR}/T1_to_MNI_"
  32. if [[ ! -f "${OUTPUT_DIR}/T1_to_MNI_0GenericAffine.mat" || ! -f "${OUTPUT_DIR}/T1_to_MNI_1InverseWarp.nii.gz" ]]; then
  33. echo "Failed MNI transform for ${SUBJECT}. Skipping..."
  34. exit 1
  35. fi
  36. # Apply HCP Atlases
  37. antsApplyTransforms -d 3 -i "${HCP_22}" -r "${T1}" -o "${OUTPUT_DIR}/HCP_in_T1_coreg.nii.gz" \
  38. -t ["${OUTPUT_DIR}/T1_to_MNI_0GenericAffine.mat", 1] -t "${OUTPUT_DIR}/T1_to_MNI_1InverseWarp.nii.gz" -n GenericLabel
  39. antsApplyTransforms -d 3 -i "${HCP_180}" -r "${T1}" -o "${OUTPUT_DIR}/Bigger_HCP_in_T1_coreg.nii.gz" \
  40. -t ["${OUTPUT_DIR}/T1_to_MNI_0GenericAffine.mat", 1] -t "${OUTPUT_DIR}/T1_to_MNI_1InverseWarp.nii.gz" -n GenericLabel
  41. HCP_22a="${OUTPUT_DIR}/HCP_in_T1_coreg.nii.gz"
  42. HCP_180a="${OUTPUT_DIR}/Bigger_HCP_in_T1_coreg.nii.gz"
  43. # Extract and binarize ROIs from both 22 and 180 atlases (Left Hemisphere)
  44. declare -A ROIS_180_LEFT=(
  45. ["left_hippocampus"]=120 ["motor_cortex"]=8 ["sensory_cortex"]=9
  46. ["sensory_1"]=51 ["sensory_2"]=52 ["sensory_3"]=53
  47. )
  48. for ROI in "${!ROIS_180_LEFT[@]}"; do
  49. fslmaths "${HCP_180a}" -thr "${ROIS_180_LEFT[$ROI]}" -uthr "${ROIS_180_LEFT[$ROI]}" \
  50. "${OUTPUT_DIR}/${ROI}_unbin.nii.gz"
  51. fslmaths "${OUTPUT_DIR}/${ROI}_unbin.nii.gz" -bin "${OUTPUT_DIR}/${ROI}.nii.gz"
  52. done
  53. declare -A ROIS_22_LEFT=(
  54. ["frontal"]=19 ["premotor_cortex"]=8 ["visual1"]=1 ["visual2"]=2 ["visual3"]=3
  55. ["visual4"]=4 ["visual5"]=5 ["temporal1"]=13
  56. ["temporal2"]=14 ["parietal1"]=15 ["parietal2"]=16 ["parietal3"]=17
  57. ["prefrontal1"]=20 ["prefrontal2"]=21 ["prefrontal3"]=22
  58. )
  59. for ROI in "${!ROIS_22_LEFT[@]}"; do
  60. fslmaths "${HCP_22a}" -thr "${ROIS_22_LEFT[$ROI]}" -uthr "${ROIS_22_LEFT[$ROI]}" \
  61. "${OUTPUT_DIR}/${ROI}_unbin.nii.gz"
  62. fslmaths "${OUTPUT_DIR}/${ROI}_unbin.nii.gz" -bin "${OUTPUT_DIR}/${ROI}.nii.gz"
  63. done
  64. # Step 4: Create Tracts with tckedit (Left Hemisphere)
  65. ## Visual Tracts
  66. for i in {1..5}; do
  67. tckedit "${TCK}" -include "${LEFT_THALAMUS}" -include "${OUTPUT_DIR}/visual${i}.nii.gz" \
  68. "${OUTPUT_DIR}/visual${i}_tracks.tck" -force
  69. done
  70. tckedit "${OUTPUT_DIR}/visual1_tracks.tck" "${OUTPUT_DIR}/visual2_tracks.tck" \
  71. "${OUTPUT_DIR}/visual3_tracks.tck" "${OUTPUT_DIR}/visual4_tracks.tck" \
  72. "${OUTPUT_DIR}/visual5_tracks.tck" "${OUTPUT_DIR}/visual.tck" -force
  73. ## Temporal Tracts
  74. tckedit "${TCK}" -include "${LEFT_THALAMUS}" -include "${OUTPUT_DIR}/temporal1.nii.gz" \
  75. "${OUTPUT_DIR}/temporal1_tracks.tck" -force
  76. tckedit "${TCK}" -include "${LEFT_THALAMUS}" -include "${OUTPUT_DIR}/temporal2.nii.gz" \
  77. "${OUTPUT_DIR}/temporal2_tracks.tck" -force
  78. tckedit "${TCK}" -include "${LEFT_THALAMUS}" -include "${OUTPUT_DIR}/left_hippocampus.nii.gz" \
  79. "${OUTPUT_DIR}/hippocampus_tracks.tck" -force
  80. tckedit "${OUTPUT_DIR}/temporal1_tracks.tck" "${OUTPUT_DIR}/temporal2_tracks.tck" \
  81. "${OUTPUT_DIR}/hippocampus_tracks.tck" "${OUTPUT_DIR}/temporal.tck" -force
  82. ## Parietal Tracts
  83. for i in {1..3}; do
  84. tckedit "${TCK}" -include "${LEFT_THALAMUS}" -include "${OUTPUT_DIR}/parietal${i}.nii.gz" \
  85. "${OUTPUT_DIR}/parietal${i}_tracks.tck" -force
  86. done
  87. tckedit "${OUTPUT_DIR}/parietal1_tracks.tck" "${OUTPUT_DIR}/parietal2_tracks.tck" \
  88. "${OUTPUT_DIR}/parietal3_tracks.tck" "${OUTPUT_DIR}/parietal.tck" -force
  89. ## Motor
  90. tckedit "${TCK}" -include "${LEFT_THALAMUS}" -include "${OUTPUT_DIR}/motor_cortex.nii.gz" \
  91. "${OUTPUT_DIR}/motor.tck" -force
  92. ## Sensory Tracts
  93. fslmaths "${OUTPUT_DIR}/sensory_cortex.nii.gz" -add "${OUTPUT_DIR}/sensory_1.nii.gz" \
  94. -add "${OUTPUT_DIR}/sensory_2.nii.gz" -add "${OUTPUT_DIR}/sensory_3.nii.gz" "${OUTPUT_DIR}/sensory_cortex_unbin.nii.gz"
  95. fslmaths "${OUTPUT_DIR}/sensory_cortex_unbin.nii.gz" -bin "${OUTPUT_DIR}/sensory_cortex.nii.gz"
  96. tckedit "${TCK}" -include "${LEFT_THALAMUS}" -include "${OUTPUT_DIR}/sensory_cortex.nii.gz" \
  97. "${OUTPUT_DIR}/sensory.tck" -force
  98. ## Premotor Tract
  99. tckedit "${TCK}" -include "${LEFT_THALAMUS}" -include "${OUTPUT_DIR}/premotor_cortex.nii.gz" \
  100. "${OUTPUT_DIR}/premotor.tck" -force
  101. ## Prefrontal Tract Creation
  102. tckedit "${TCK}" -include "${LEFT_THALAMUS}" -include "${OUTPUT_DIR}/prefrontal1.nii.gz" \
  103. "${OUTPUT_DIR}/prefrontal1.tck" -force
  104. tckedit "${TCK}" -include "${LEFT_THALAMUS}" -include "${OUTPUT_DIR}/prefrontal2.nii.gz" \
  105. "${OUTPUT_DIR}/prefrontal2.tck" -force
  106. tckedit "${TCK}" -include "${LEFT_THALAMUS}" -include "${OUTPUT_DIR}/prefrontal3.nii.gz" \
  107. "${OUTPUT_DIR}/prefrontal3.tck" -force
  108. tckedit "${OUTPUT_DIR}/prefrontal1.tck" "${OUTPUT_DIR}/prefrontal2.tck" "${OUTPUT_DIR}/prefrontal3.tck" \
  109. "${OUTPUT_DIR}/prefrontal.tck" -force
  110. # Create frontal tract
  111. tckedit "${TCK}" -include "${LEFT_THALAMUS}" -include "${OUTPUT_DIR}/frontal.nii.gz" \
  112. "${OUTPUT_DIR}/frontal.tck" -force
  113. # Step 5: Generate Density Maps for Each Tract (Left Hemisphere)
  114. TRACTS=("visual" "temporal" "parietal" "motor" "sensory" "premotor" "prefrontal" "frontal")
  115. for TRACT in "${TRACTS[@]}"; do
  116. tckmap -template "${LEFT_THALAMUS}" "${OUTPUT_DIR}/${TRACT}.tck" \
  117. "${OUTPUT_DIR}/${TRACT}_density.nii.gz" -force
  118. fslmaths "${OUTPUT_DIR}/${TRACT}_density.nii.gz" -mul "${LEFT_THALAMUS}" \
  119. "${OUTPUT_DIR}/${TRACT}_masked.nii.gz"
  120. mrcalc "${OUTPUT_DIR}/${TRACT}_masked.nii.gz" \
  121. $(mrstats "${OUTPUT_DIR}/${TRACT}_masked.nii.gz" -output mean -quiet) \
  122. -div "${OUTPUT_DIR}/${TRACT}_normalized.nii.gz" -force
  123. fslmaths "${OUTPUT_DIR}/${TRACT}_normalized.nii.gz" -thrP 25 \
  124. "${OUTPUT_DIR}/${TRACT}_thresh25.nii.gz"
  125. done
  126. # Step 6: Generate WTA Output (Left Hemisphere)
  127. find_the_biggest \
  128. "${OUTPUT_DIR}/temporal_normalized.nii.gz" \
  129. "${OUTPUT_DIR}/parietal_normalized.nii.gz" \
  130. "${OUTPUT_DIR}/motor_normalized.nii.gz" \
  131. "${OUTPUT_DIR}/sensory_normalized.nii.gz" \
  132. "${OUTPUT_DIR}/visual_normalized.nii.gz" \
  133. "${OUTPUT_DIR}/premotor_normalized.nii.gz" \
  134. "${OUTPUT_DIR}/prefrontal_normalized.nii.gz" \
  135. "${OUTPUT_DIR}/frontal_normalized.nii.gz" \
  136. "${OUTPUT_DIR}/WTA_${SUBJECT}_LEFT.nii.gz"
  137. # Add +1 to all IDs in the output
  138. fslmaths "${OUTPUT_DIR}/WTA_${SUBJECT}_LEFT.nii.gz" -add 1 "${OUTPUT_DIR}/WTA_${SUBJECT}_LEFT_incremented.nii.gz"
  139. fslmaths "${OUTPUT_DIR}/WTA_${SUBJECT}_LEFT_incremented.nii.gz" -sub 1 -thr 0 "${OUTPUT_DIR}/WTA_${SUBJECT}_LEFT_final.nii.gz"
  140. echo "Finished processing ${SUBJECT}. Left hemisphere completed."
  141. # Now, perform the same steps for the Right Hemisphere
  142. # Extract and binarize ROIs from both 22 and 180 atlases (Right Hemisphere)
  143. declare -A ROIS_180_RIGHT=(
  144. ["left_hippocampus"]=320 ["motor_cortex"]=208 ["sensory_cortex"]=209
  145. ["sensory_1"]=251 ["sensory_2"]=252 ["sensory_3"]=253
  146. )
  147. for ROI in "${!ROIS_180_RIGHT[@]}"; do
  148. fslmaths "${HCP_180a}" -thr "${ROIS_180_RIGHT[$ROI]}" -uthr "${ROIS_180_RIGHT[$ROI]}" \
  149. "${OUTPUT_DIR}/${ROI}_unbin.nii.gz"
  150. fslmaths "${OUTPUT_DIR}/${ROI}_unbin.nii.gz" -bin "${OUTPUT_DIR}/${ROI}.nii.gz"
  151. done
  152. declare -A ROIS_22_RIGHT=(
  153. ["frontal"]=119 ["premotor_cortex"]=108 ["visual1"]=101 ["visual2"]=102 ["visual3"]=103
  154. ["visual4"]=104 ["visual5"]=105 ["temporal1"]=113
  155. ["temporal2"]=114 ["parietal1"]=115 ["parietal2"]=116 ["parietal3"]=117
  156. ["prefrontal1"]=120 ["prefrontal2"]=121 ["prefrontal3"]=122
  157. )
  158. for ROI in "${!ROIS_22_RIGHT[@]}"; do
  159. fslmaths "${HCP_22a}" -thr "${ROIS_22_RIGHT[$ROI]}" -uthr "${ROIS_22_RIGHT[$ROI]}" \
  160. "${OUTPUT_DIR}/${ROI}_unbin.nii.gz"
  161. fslmaths "${OUTPUT_DIR}/${ROI}_unbin.nii.gz" -bin "${OUTPUT_DIR}/${ROI}.nii.gz"
  162. done
  163. # Step 4: Create Tracts with tckedit (Right Hemisphere)
  164. ## Visual Tracts
  165. for i in {1..5}; do
  166. tckedit "${TCK}" -include "${RIGHT_THALAMUS}" -include "${OUTPUT_DIR}/visual${i}.nii.gz" \
  167. "${OUTPUT_DIR}/visual${i}_tracks.tck" -force
  168. done
  169. tckedit "${OUTPUT_DIR}/visual1_tracks.tck" "${OUTPUT_DIR}/visual2_tracks.tck" \
  170. "${OUTPUT_DIR}/visual3_tracks.tck" "${OUTPUT_DIR}/visual4_tracks.tck" \
  171. "${OUTPUT_DIR}/visual5_tracks.tck" "${OUTPUT_DIR}/visual.tck" -force
  172. ## Temporal Tracts
  173. tckedit "${TCK}" -include "${RIGHT_THALAMUS}" -include "${OUTPUT_DIR}/temporal1.nii.gz" \
  174. "${OUTPUT_DIR}/temporal1_tracks.tck" -force
  175. tckedit "${TCK}" -include "${RIGHT_THALAMUS}" -include "${OUTPUT_DIR}/temporal2.nii.gz" \
  176. "${OUTPUT_DIR}/temporal2_tracks.tck" -force
  177. tckedit "${TCK}" -include "${RIGHT_THALAMUS}" -include "${OUTPUT_DIR}/left_hippocampus.nii.gz" \
  178. "${OUTPUT_DIR}/hippocampus_tracks.tck" -force
  179. tckedit "${OUTPUT_DIR}/temporal1_tracks.tck" "${OUTPUT_DIR}/temporal2_tracks.tck" \
  180. "${OUTPUT_DIR}/hippocampus_tracks.tck" "${OUTPUT_DIR}/temporal.tck" -force
  181. ## Parietal Tracts
  182. for i in {1..3}; do
  183. tckedit "${TCK}" -include "${RIGHT_THALAMUS}" -include "${OUTPUT_DIR}/parietal${i}.nii.gz" \
  184. "${OUTPUT_DIR}/parietal${i}_tracks.tck" -force
  185. done
  186. tckedit "${OUTPUT_DIR}/parietal1_tracks.tck" "${OUTPUT_DIR}/parietal2_tracks.tck" \
  187. "${OUTPUT_DIR}/parietal3_tracks.tck" "${OUTPUT_DIR}/parietal.tck" -force
  188. ## Motor
  189. tckedit "${TCK}" -include "${RIGHT_THALAMUS}" -include "${OUTPUT_DIR}/motor_cortex.nii.gz" \
  190. "${OUTPUT_DIR}/motor.tck" -force
  191. ## Sensory Tracts
  192. fslmaths "${OUTPUT_DIR}/sensory_cortex.nii.gz" -add "${OUTPUT_DIR}/sensory_1.nii.gz" \
  193. -add "${OUTPUT_DIR}/sensory_2.nii.gz" -add "${OUTPUT_DIR}/sensory_3.nii.gz" "${OUTPUT_DIR}/sensory_cortex_unbin.nii.gz"
  194. fslmaths "${OUTPUT_DIR}/sensory_cortex_unbin.nii.gz" -bin "${OUTPUT_DIR}/sensory_cortex.nii.gz"
  195. tckedit "${TCK}" -include "${RIGHT_THALAMUS}" -include "${OUTPUT_DIR}/sensory_cortex.nii.gz" \
  196. "${OUTPUT_DIR}/sensory.tck" -force
  197. ## Premotor Tract
  198. tckedit "${TCK}" -include "${RIGHT_THALAMUS}" -include "${OUTPUT_DIR}/premotor_cortex.nii.gz" \
  199. "${OUTPUT_DIR}/premotor.tck" -force
  200. ## Prefrontal Tract Creation
  201. tckedit "${TCK}" -include "${RIGHT_THALAMUS}" -include "${OUTPUT_DIR}/prefrontal1.nii.gz" \
  202. "${OUTPUT_DIR}/prefrontal1.tck" -force
  203. tckedit "${TCK}" -include "${RIGHT_THALAMUS}" -include "${OUTPUT_DIR}/prefrontal2.nii.gz" \
  204. "${OUTPUT_DIR}/prefrontal2.tck" -force
  205. tckedit "${TCK}" -include "${RIGHT_THALAMUS}" -include "${OUTPUT_DIR}/prefrontal3.nii.gz" \
  206. "${OUTPUT_DIR}/prefrontal3.tck" -force
  207. tckedit "${OUTPUT_DIR}/prefrontal1.tck" "${OUTPUT_DIR}/prefrontal2.tck" "${OUTPUT_DIR}/prefrontal3.tck" \
  208. "${OUTPUT_DIR}/prefrontal.tck" -force
  209. # Create frontal tract
  210. tckedit "${TCK}" -include "${RIGHT_THALAMUS}" -include "${OUTPUT_DIR}/frontal.nii.gz" \
  211. "${OUTPUT_DIR}/frontal.tck" -force
  212. # Step 5: Generate Density Maps for Each Tract (Right Hemisphere)
  213. for TRACT in "${TRACTS[@]}"; do
  214. tckmap -template "${RIGHT_THALAMUS}" "${OUTPUT_DIR}/${TRACT}.tck" \
  215. "${OUTPUT_DIR}/${TRACT}_density.nii.gz" -force
  216. fslmaths "${OUTPUT_DIR}/${TRACT}_density.nii.gz" -mul "${RIGHT_THALAMUS}" \
  217. "${OUTPUT_DIR}/${TRACT}_masked.nii.gz"
  218. mrcalc "${OUTPUT_DIR}/${TRACT}_masked.nii.gz" \
  219. $(mrstats "${OUTPUT_DIR}/${TRACT}_masked.nii.gz" -output mean -quiet) \
  220. -div "${OUTPUT_DIR}/${TRACT}_normalized.nii.gz" -force
  221. fslmaths "${OUTPUT_DIR}/${TRACT}_normalized.nii.gz" -thrP 25 \
  222. "${OUTPUT_DIR}/${TRACT}_thresh25.nii.gz"
  223. done
  224. # Step 6: Generate WTA Output (Right Hemisphere)
  225. find_the_biggest \
  226. "${OUTPUT_DIR}/temporal_normalized.nii.gz" \
  227. "${OUTPUT_DIR}/parietal_normalized.nii.gz" \
  228. "${OUTPUT_DIR}/motor_normalized.nii.gz" \
  229. "${OUTPUT_DIR}/sensory_normalized.nii.gz" \
  230. "${OUTPUT_DIR}/visual_normalized.nii.gz" \
  231. "${OUTPUT_DIR}/premotor_normalized.nii.gz" \
  232. "${OUTPUT_DIR}/prefrontal_normalized.nii.gz" \
  233. "${OUTPUT_DIR}/frontal_normalized.nii.gz" \
  234. "${OUTPUT_DIR}/WTA_${SUBJECT}_RIGHT.nii.gz"
  235. echo "Finished processing ${SUBJECT}. Right hemisphere completed."
  236. # Add +1 to all IDs in the output
  237. fslmaths "${OUTPUT_DIR}/WTA_${SUBJECT}_RIGHT.nii.gz" -add 1 "${OUTPUT_DIR}/WTA_${SUBJECT}_RIGHT_incremented.nii.gz"
  238. fslmaths "${OUTPUT_DIR}/WTA_${SUBJECT}_RIGHT_incremented.nii.gz" -sub 1 -thr 0 "${OUTPUT_DIR}/WTA_${SUBJECT}_RIGHT_final.nii.gz"
  239. echo "All processing completed for ${SUBJECT}."
  240. fi
  241. done

8parcellation.sh, under CC-BY-4.0 · at the source

Overview

Authors: Daniel H Nguyen1, Debottama Das2, Ali Bilgin2, Dianne Patterson3, Matthew Hook4, Chris Butson4, Alberto Cacciola5,6, Vinod Kumar Jangir7, Manojkumar Saranathan8
  1. University of Massachusetts Chan Medical School, Worcester, Massachusetts, United States of America
  2. Department of Electrical and Computer Engineering, University of Arizona, Tucson, Arizona, United States of America
  3. University of Arizona at Tucson, Tucson, Arizona, United States of America
  4. Department of Neurology, University of Florida, GainesvilleFlorida, United States of America
  5. Department of Biomedical Sciences, Humanitas University, Via Rita Levi Montalcini, Pieve Emanuele, Milan, Italy
  6. IRCCS Humanitas Research Hospital, Via Manzoni, Rozzano, Milan, Italy
  7. Max Planck Institute for Biological Cybernetics, Tuebingen, Germany
  8. Department of Radiology, University of Massachusetts Chan Medical School, Worcester, Massachusetts, United States of America
Journal: PloS one, volume 21, issue 6, article e0351431
Dates: received 29 October 2025; accepted 25 May 2026; published online 15 June 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1371/journal.pone.0351431 · PMID 42296126 · PMCID PMC13268177 · OpenAlex W7164808153
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: structural MRI / diffusion (modality), histology / microscopy (modality), human (organism), methods / tools (subfield)
Methods: Connectivity, Machine learning, fMRI & imaging
MeSH: Connectome*, Image Processing, Computer-Assisted*, Thalamic Nuclei*, Adult, Algorithms, Benchmarking, Diffusion Magnetic Resonance Imaging, Diffusion Tensor Imaging, Female, Humans, Magnetic Resonance Imaging, Male, Young Adult (* major topic)
Topic: Advanced Neuroimaging Techniques and Applications (Radiology, Nuclear Medicine and Imaging, Medicine), according to OpenAlex
Funding: National Institute of Biomedical Imaging and Bioengineering (R01 EB032674); NIBIB NIH HHS (R01 EB032674)
Citations: not cited yet (Europe PMC); 70 references in the paper

Abstract

Leveraging diffusion tractography, connectivity-based parcellation (CBP) is one of the oldest methods for thalamic nuclei segmentation. The goal of this work was to reassess CBP using higher spatial resolution diffusion MRI data and reconstruction algorithms, and to compare it with recent state-of-the-art methods for thalamic nuclei segmentation. Furthermore, these methods were systematically evaluated against three histological atlases and one functional MRI–based atlas to examine their relative anatomical similarities and differences. High resolution diffusion and T1-weighted MRI data from 67 healthy individuals in the Human Connectome Project Young Adult database were analyzed. CBP was performed using probabilistic tractography with cortical targets derived from combining labels of the Human Connectome Project Multi-Modal Parcellation 1.0 atlas into 8, 11, and 23 regions. Results were compared against three recent methods: orientation distribution function clustering (ODF), track density imaging (TDI), and structural MRI-based segmentation. Group level analyses were conducted in the Montreal Neurological Institute space, and Dice overlap coefficients were calculated using four atlases (three histological, one functional). CBP results using newer data and methods were still remarkably similar to the original CBP parcellation results. Across atlases, a consistent hierarchy was observed: HIPS-THOMAS performed best, followed by TDI, ODF, and CBP (Kendall’s W = 1.00, p = 0.007). Histological atlases showed strong mutual agreement (Pearson r = 0.71–0.85), whereas the Zhang atlas demonstrated lower concordance (Pearson r = 0.51–0.63). Despite methodological advances, CBP remains constrained in its ability to delineate thalamic nuclei with histological accuracy. By contrast, structural and diffusion microstructural approaches provided better nuclear localization. These findings highlight the need for hybrid workflows that integrate structural and diffusion-based information to enable more reliable thalamic segmentation for neuroscience research.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above, with 2 matches between paragraphs and lines of code.

Zenodo 20473971

License: CC-BY-4.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Languages: Shell (3)
Size: 8 files, 3 scripts
Software Heritage: not checked
Found in: “Data Availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: ANTs (3 files), FSL (3 files), MRtrix3 (3 files)
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
3 files

The paper's code and data availability statement is in the Data section.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 3 scripts, each with its path and the digest of its content;
  • 2 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Data Availability

All data/scripts needed for replication of this study can be found at https://doi.org/10.5281/zenodo.20473971.

Reproduced under the paper's license (CC BY), from the paper cited above.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 9 authors, 13 MeSH terms, 2 funders, 69 references.

Cite

This paper

Nguyen, D. H., Das, D., Bilgin, A., Patterson, D., Hook, M., Butson, C., Cacciola, A., Jangir, V. K., & Saranathan, M. (2026). Revisiting the role of structural connectivity-based parcellation in thalamic nuclei segmentation: Benchmarking against recent state-of-the-art methods. PloS one, 21(6), e0351431. https://doi.org/10.1371/journal.pone.0351431

BibTeX

@article{nguyen2026revisiting,
author = {Nguyen, Daniel H and Das, Debottama and Bilgin, Ali and Patterson, Dianne and Hook, Matthew and Butson, Chris and Cacciola, Alberto and Jangir, Vinod Kumar and Saranathan, Manojkumar},
title = {{Revisiting the role of structural connectivity-based parcellation in thalamic nuclei segmentation: Benchmarking against recent state-of-the-art methods}},
journal = {PloS one},
year = {2026},
month = jun,
volume = {21},
number = {6},
pages = {e0351431},
publisher = {PLOS},
issn = {1932-6203},
doi = {10.1371/journal.pone.0351431},
url = {https://doi.org/10.1371/journal.pone.0351431},
pmid = {42296126},
pmcid = {PMC13268177}
}

RIS

TY - JOUR
AU - Nguyen, Daniel H
AU - Das, Debottama
AU - Bilgin, Ali
AU - Patterson, Dianne
AU - Hook, Matthew
AU - Butson, Chris
AU - Cacciola, Alberto
AU - Jangir, Vinod Kumar
AU - Saranathan, Manojkumar
TI - Revisiting the role of structural connectivity-based parcellation in thalamic nuclei segmentation: Benchmarking against recent state-of-the-art methods
T2 - PloS one
J2 - PLoS One
PY - 2026
DA - 2026/06/15
VL - 21
IS - 6
SP - e0351431
SN - 1932-6203
PB - PLOS
DO - 10.1371/journal.pone.0351431
UR - https://doi.org/10.1371/journal.pone.0351431
LA - en
ER -

CSL-JSON

{
"id": "10.1371/journal.pone.0351431",
"type": "article-journal",
"title": "Revisiting the role of structural connectivity-based parcellation in thalamic nuclei segmentation: Benchmarking against recent state-of-the-art methods",
"container-title": "PloS one",
"author": [
{
"family": "Nguyen",
"given": "Daniel H"
},
{
"family": "Das",
"given": "Debottama"
},
{
"family": "Bilgin",
"given": "Ali"
},
{
"family": "Patterson",
"given": "Dianne"
},
{
"family": "Hook",
"given": "Matthew"
},
{
"family": "Butson",
"given": "Chris"
},
{
"family": "Cacciola",
"given": "Alberto"
},
{
"family": "Jangir",
"given": "Vinod Kumar"
},
{
"family": "Saranathan",
"given": "Manojkumar"
}
],
"container-title-short": "PLoS One",
"volume": "21",
"issue": "6",
"page": "e0351431",
"DOI": "10.1371/journal.pone.0351431",
"PMID": "42296126",
"PMCID": "PMC13268177",
"ISSN": "1932-6203",
"publisher": "PLOS",
"URL": "https://doi.org/10.1371/journal.pone.0351431",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
15
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1007/s00429-026-03163-z [code]
Toward reliable thalamic segmentation: an evaluation of automated methods for structural MRI.
Journal: Brain structure & function
In common: methods / tools, structural MRI / diffusion, 7 references, author Manojkumar Saranathan
[2] doi:10.1162/imag.a.1205
Dissecting medial temporal lobe from diencephalic sub-volumes: The amnesia dichotomy revisited.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: 5 references
[3] doi:10.1038/s41467-026-71568-9 [code]
Convergent and selective representations of pain, appetitive processes, aversive processes, and cognitive control in the insula.
Journal: Nature communications
In common: MRtrix3, ANTs, FSL, 2 references
[4] doi:10.1016/j.isci.2026.116671 [code]
A high-resolution functional network-organized atlas of human superficial white matter from ultra-high-field diffusion MRI.
Journal: iScience
In common: MRtrix3, ANTs, FSL, methods / tools, structural MRI / diffusion, 1 reference
[5] doi:10.1038/s41467-026-71151-2 [code]
Common and distinct neural correlates of social interaction processing and theory of mind in narratives.
Journal: Nature communications
In common: MRtrix3, ANTs, FSL, 1 reference
[6] doi:10.1038/s41467-026-71719-y [code]
Brain functional-structural gradient coupling reflects development, behavior and genetic influences.
Journal: Nature communications
In common: MRtrix3, ANTs, FSL, 1 reference
[7] doi:10.1162/imag.a.1279 [code]
Multimodal laminar characterization of visual areas along the cortical hierarchy.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: ANTs, FSL, histology / microscopy, 2 references
[8] doi:10.1073/pnas.2604111123 [code]
Multiscale characterization of the human claustrum from histology to MRI.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: ANTs, histology / microscopy, structural MRI / diffusion, 2 references
[9] doi:10.1093/cercor/bhag132 [code]
Spatiotemporal white-matter development across early childhood.
Journal: Cerebral cortex (New York, N.Y. : 1991)
In common: MRtrix3, ANTs, FSL, structural MRI / diffusion
[10] doi:10.1093/braincomms/fcag129 [code]
Longitudinal changes of choroid plexus volumes and MRI ratios in multiple sclerosis.
Journal: Brain communications
In common: MRtrix3, ANTs, FSL, structural MRI / diffusion

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.