--export=stat flag not working

47 views
Skip to first unread message

Debarun De

unread,
Jun 3, 2021, 11:07:41 AM6/3/21
to DSI Studio
Hello,

  I am currently playing around with the dsi_studio CLI commands to track fibers and to get the data from the fiber in another file. Currently, the code that I am running is: 

dsi_studio.exe --action=trk --source=$PATH\xx.src.gz.gqi.1.7.fib.gz --track_id=Arcuate_Fasciculus_R --seed_count=100000 --tip_iteration=0 --roa=xx:Arcuate_Fasciculus_R  --output=$PATH\xx.tt.gz --export=stat > log.txt

I am able to generate the fibers, but I cannot seem to get the export to produce another text document with the statistic information. I keep getting this message from the log.txt file:

Warning: --export is not used. Please check command line syntax.

I have checked the CLI interface guide and --export seems to be correct, yet it is still not generating the text document.

Any help would be appreciated

Thanks! 

Frank Yeh

unread,
Jun 3, 2021, 11:37:30 AM6/3/21
to DSI Studio
Could you post the full log.txt output here?
Also, did you use the most updated version of DSI Studio?
Frank

Debarun De

unread,
Jun 3, 2021, 12:04:04 PM6/3/21
to DSI Studio
Thanks for the quick reply.

Here is the full output of log.txt:

DSI Studio May 15 2021, Fang-Cheng Yeh
source=C:\Users\debar\Documents\dsi_studio_64\dsi_studio_64\100206.src.gz.gqi.1.7.fib.gz
action=trk
loading C:\Users\debar\Documents\dsi_studio_64\dsi_studio_64\100206.src.gz.gqi.1.7.fib.gz...
otsu_threshold=0.6
fa_threshold=0
dt_threshold=0.2
turning_angle=0
step_size=0
smoothing=0
min_length=30
max_length=300
method=0
initial_dir=0
interpolation=0
seed_plan=0
random_seed=0
check_ending=0
tip_iteration=0
seed_count=100000
thread_count=4
roa=1:Arcuate_Fasciculus_R
read region from 1:Arcuate_Fasciculus_R
searching 1 from the atlas pool...
loading 1...
loading atlas 1 from the atlas list.
loading Arcuate_Fasciculus_R from 1 atlas
WARNING: 1 is an empty region file
Consider using --action=atk for automatic fiber tracking
loading C:/Users/debar/Documents/dsi_studio_64/dsi_studio_64/track/HCP1065.tt.gz
warping atlas tracks to subject space
track_id=Arcuate_Fasciculus_R
tolerance=16
set target track: Arcuate_Fasciculus_R
start tracking.
thread_count=4
finished tracking.
191 tracts are generated using 100000 seeds.
0 tracts are removed by pruning.
The final analysis results in 191 tracts.
output=C:\Users\debar\Documents\Batch\1.tt.gz
saving 100206.src.gz.gqi.1.7.fib.gz.tt.gz
Warning: --export is not used. Please check command line syntax.

I am using the May 15 2021 version, that is the most updated version correct?

Thanks!

Frank Yeh

unread,
Jun 3, 2021, 12:10:33 PM6/3/21
to dsi-s...@googlegroups.com
Sorry it is not the most updated version.
Could you update the tool again and see if it works?
Frank
> --
> You received this message because you are subscribed to a topic in the Google Groups "DSI Studio" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/dsi-studio/RKhr-GX3yFA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to dsi-studio+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/dsi-studio/62310260-5b67-4fd4-b354-f8f96ae777a7n%40googlegroups.com.

Debarun De

unread,
Jun 3, 2021, 12:29:08 PM6/3/21
to DSI Studio
Interesting, I tried redownloading the software using the http://dsi-studio.labsolver.org/dsi-studio-download link for windows(the google drive link to be particular), and the version provided is the May 15 2021 version. Am I using the wrong link to download the newest version of dsi-studio?

Frank Yeh

unread,
Jun 3, 2021, 12:50:10 PM6/3/21
to dsi-s...@googlegroups.com
Sorry it is my mistake. I committed the update again. It should June
version at the google drive link.
Best regards,
Frank
> You received this message because you are subscribed to the Google Groups "DSI Studio" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to dsi-studio+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/dsi-studio/6f439f20-2d39-448b-869d-3aa8ac194833n%40googlegroups.com.

Debarun De

unread,
Jun 3, 2021, 1:10:21 PM6/3/21
to DSI Studio
Thanks for the continued help,

I have downloaded the June version, but now the line of code that I am trying to run from the batch file is crashing after it loads in the custom roa file.

Here is the log.txt output:

DSI Studio Jun  2 2021, Fang-Cheng Yeh
source=C:\Users\debar\Documents\dsi_studio_64\dsi_studio_64\100206.src.gz.gqi.1.7.fib.gz
action=trk
loading C:\Users\debar\Documents\dsi_studio_64\dsi_studio_64\100206.src.gz.gqi.1.7.fib.gz...
otsu_threshold=0.6
fa_threshold=0
dt_threshold=0.2
turning_angle=0
step_size=0
smoothing=0
min_length=30
max_length=300
method=0
initial_dir=0
interpolation=0
seed_plan=0
random_seed=0
check_ending=0
tip_iteration=0
seed_count=100000
thread_count=4
roa=10:Arcuate_Fasciculus_R
read region from 10:Arcuate_Fasciculus_R
searching 10 from the atlas pool...
loading 10...
loading atlas 10 from the atlas list.
running normalization

Here is the code:

dsi_studio.exe --action=trk --source=C:\Users\debar\Documents\dsi_studio_64\dsi_studio_64\100206.src.gz.gqi.1.7.fib.gz --track_id=Arcuate_Fasciculus_R --seed_count=100000 --tip_iteration=0 --roa=10:Arcuate_Fasciculus_R  --output=C:\Users\debar\Documents\Batch\1.tt.gz --export=stat > log.txt

Thanks again,

Frank Yeh

unread,
Jun 3, 2021, 1:15:21 PM6/3/21
to dsi-s...@googlegroups.com
You may need to remove the --roa parameter.
Frank
> To view this discussion on the web visit https://groups.google.com/d/msgid/dsi-studio/48b26a9d-589f-49b1-8f6b-b5abb2941b07n%40googlegroups.com.

Debarun De

unread,
Jun 3, 2021, 1:23:58 PM6/3/21
to DSI Studio
for the june version, is the --roa parameter changed from the may version? I just tested the code without the --roa parameter and it works now but I need to include a region of avoidance for what I am trying to accomplish (within the batch script).

Thanks.

Frank Yeh

unread,
Jun 3, 2021, 1:28:25 PM6/3/21
to dsi-s...@googlegroups.com
The ROA parameter will exclude any track that go to the assigned region.
I am not sure the role of adding it here, especially when AF_R is the
tracking target.
Also, the --roa has to assign the atlas name or a NIFTI file name. The
parameters assigned will not work.
Hope this helps.
Frank
> To view this discussion on the web visit https://groups.google.com/d/msgid/dsi-studio/2d2b8eb5-b1c0-4697-9810-43102c039b61n%40googlegroups.com.

Debarun De

unread,
Jun 3, 2021, 2:56:06 PM6/3/21
to DSI Studio
I also tried the command without the track_id parameter and with the FreeSurferDKT atlas for an roa and it still did not work, is this an issue with the parameters I inputted?

log.txt output:
DSI Studio Jun  2 2021, Fang-Cheng Yeh
source=C:\Users\debar\Documents\dsi_studio_64\dsi_studio_64\100206.src.gz.gqi.1.7.fib.gz
action=trk
loading C:\Users\debar\Documents\dsi_studio_64\dsi_studio_64\100206.src.gz.gqi.1.7.fib.gz...
otsu_threshold=0.6
fa_threshold=0
dt_threshold=0.2
turning_angle=0
step_size=0
smoothing=0
min_length=30
max_length=300
method=0
initial_dir=0
interpolation=0
seed_plan=0
random_seed=0
check_ending=0
tip_iteration=0
seed_count=100000
thread_count=4
roa=FreeSurferDKT:Arcuate_Fasciculus_R
read region from FreeSurferDKT:Arcuate_Fasciculus_R
searching FreeSurferDKT from the atlas pool...
loading atlas FreeSurferDKT from the atlas list.
running normalization

Code:
dsi_studio.exe --action=trk --source=C:\Users\debar\Documents\dsi_studio_64\dsi_studio_64\100206.src.gz.gqi.1.7.fib.gz --seed_count=100000 --tip_iteration=0 --output=C:\Users\debar\Documents\Batch\1.tt.gz --roa=FreeSurferDKT:Arcuate_Fasciculus_R --export=stat > log.txt

Frank Yeh

unread,
Jun 3, 2021, 3:05:08 PM6/3/21
to dsi-s...@googlegroups.com
FreeSurferDKT does not have a region called Arcuate_Fasciculus_R
You may check each atlas's region at [Step T3a][Atlas]
I should fix DSI Studio to report this.
Frank
> To view this discussion on the web visit https://groups.google.com/d/msgid/dsi-studio/cd9b44c4-ae14-415b-b9eb-296a09463835n%40googlegroups.com.

Frank Yeh

unread,
Jun 3, 2021, 3:06:26 PM6/3/21
to dsi-s...@googlegroups.com
It seems that the pipeline was not finished yet at "running normalization"
Reply all
Reply to author
Forward
0 new messages