Exporting different DTI metrics from a specific tract

6 views
Skip to first unread message

Bassam Al-Fatly

unread,
10:32 AM (2 hours ago) 10:32 AM
to DSI Studio
Dear Frank,

I want to export different dti metrics from 19 subjects I have performed qsdr fz files for. I want to use CLI code to iterate over my subjects and export in an table (txt or excel sheet) for instance the qa (19 values). 
The process that I am currently doing in GUI is loading the fz file, open the tract that I have calculated as a trk file, and right click on the tract, statistics, a table will be created with all metrics as we know. Simply, I need to do the process repeatedly across all my subjects!

Thanks

Best wishes
Bassam

Bassam Al-Fatly

unread,
11:11 AM (1 hour ago) 11:11 AM
to DSI Studio
UPDATE:
I have written this piece of code in matlab calling system as I want to implement it in matlab:
system('/Applications/dsi_studio.app/Contents/MacOS/dsi_studio --action=ana --source=/Users/ba/Downloads/sub-01_space-ACPC_desc-preproc_dwi.qsdr.fz --tract=/Users/ba/Downloads/SP/VTAs/1/n_data_1_5_filtered_by_Left_VTA.trk --profile:dti_fa:3:1')

it returns:

DSI Studio (Yeh 2025, doi:10.1038/s41592-025-02762-8), the Hou "侯" version (Nov 15 2025, http://dsi-studio.labsolver.org) [0;32maction [0m=ana
┌── [1;34m📟command line [0m
├── [0;32mthread_count [0m=10
├── [0;32msource [0m=/Users/ba/Downloads/sub-01_space-ACPC_desc-preproc_dwi.qsdr.fz
├──┬── [1;34m📟run ana [0m
│  ├──┬── [1;35m📂opening /Users/ba/Downloads/sub-01_space-ACPC_desc-preproc_dwi.qsdr.fz [0m
│  │  ├── [0;33mfib_ver [0m: 202504
│  │  ├── [0;33mdim [0m: 80 100 80 vs: 2 2 2
│  │  ├── [0;33mtrans [0m: -2 -0 0 79.5; -0 -2 0 81.5; -0 -0 2 -72; 0 0 0 1;
│  │  ├── [0;33mis qsdr [0m: yes
│  │  ├── [0;33mmask voxels [0m: 270564
│  │  ├──┬── [1;34m📟loading image volumes [0m
│  │  │  └──⏱8ms
│  │  ├── [0;33mtemplate [0m: human
│  │  └──⏱30ms
│  ├── [0;32mtract [0m=/Users/ba/Downloads/SIMON_analysis/VTAs/1/n_data_1_5_filtered_by_Left_VTA.trk
│  ├──┬── [1;35m📂open /Users/ba/Downloads/SIMON_analysis/VTAs/1/n_data_1_5_filtered_by_Left_VTA.trk [0m
│  │  └──⏱0ms
│  ├── [0;33mhost space (mni) [0m: -2 -0 0 79.5; -0 -2 0 81.5; -0 -0 2 -72; 0 0 0 1;
│  ├── [0;33mtractography space (native) [0m:
│  ├──0.5 0 0 -98; 0 0.5 0 -134; 0 0 0.5 -72; 0 0 0 1;
│  ├── [0;33mapplying linear transform, condition [0m: loading tract to a different srow
│  ├── [0;33mapply transform to tracts [0m: -0.25 0 0 88.75; 0 -0.25 0 107.75; 0 0 0.25 0; 0 0 0 1;
│  ├──A total of 77 tracks loaded
│  ├──a total of 1 tract file(s) loaded
│  ├──┬── [1;34m📟post-tracking analysis [0m
│  │  └──⏱0ms
│  └──⏱33ms
└──⏱33ms
[1;31m❗--profile:dti_fa:3:1 is not used/recognized. [0m

ans =

     0
Reply all
Reply to author
Forward
0 new messages