Command Line Issue: Generate src/nifti file from DICOM

158 views
Skip to first unread message

xitch

unread,
Jan 2, 2022, 12:10:18 AM1/2/22
to DSI Studio
Hi Dr. Yeh,

I got an issue when I tried to use --action=src to generate src/nifti from DICOM files. The error is "cannot find b-table from the header. You may need to load an external b-table using--b_table or --bval and --bvec." But I can successfully generate src and nifti files by operating GUI (use [Batch processing][Step B2c: DICOM to SRC] and select the renamed folder from  [Batch processing][Step B1b: Rename DICOM in Subfolders]). Do you know what's going on? Thanks!

Sincerely,
XT

Frank Yeh

unread,
Jan 2, 2022, 12:39:22 PM1/2/22
to dsi-s...@googlegroups.com
Could you post the full log output?
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/f93ec8ad-8b92-4897-96b3-01c53639cb99n%40googlegroups.com.

xitch

unread,
Jan 2, 2022, 7:50:49 PM1/2/22
to DSI Studio
Thanks for your quick reply! Sure. Here's my full output

Running on compute node: argon-itf-bx47-39.hpc.
In directory: /Shared/lss_kahwang_hpc/ThalHi_Diffusion
Starting on: Sun Jan 2 18:46:00 CST 2022
DSI Studio "Chen" Dec 28 2021
source=/Shared/lss_kahwang_hpc/ThalHi_Diffusion/Processed_Data/20210625_F021Y_10002
action=src
load files in directory /Shared/lss_kahwang_hpc/ThalHi_Diffusion/Processed_Data/20210625_F021Y_10002
search recursively in the subdir
a total of 36675 files found in the directory
reading 3PlaneLocSSFSE_i1.dcm

cannot find b-table from the header. You may need to load an external b-table using--b_table or --bval and --bvec.
Warning: --recursive is not used. Please check command line syntax.

Please let me know if you need more information. Thanks!

xitch

unread,
Jan 2, 2022, 7:58:02 PM1/2/22
to DSI Studio
And also my code below:

singularity exec /Shared/lss_kahwang_hpc/opt/dsi_studio_argon/dsistudio_latest.sif dsi_studio --action=src --source=${input} --recursive=1

在2022年1月2日星期日 UTC-6 11:39:22<Frank Yeh> 写道:

Frank Yeh

unread,
Jan 3, 2022, 9:46:04 AM1/3/22
to dsi-s...@googlegroups.com
You may need to rename DICOM files first and only include DWI when creating the SRC file. 

Frank Yeh

unread,
Jan 3, 2022, 9:53:41 AM1/3/22
to dsi-s...@googlegroups.com
or you may wait until I fix DSI Studio to hadle it. Should be ready in one hour or two.
Frank

xitch

unread,
Jan 3, 2022, 10:45:12 AM1/3/22
to dsi-s...@googlegroups.com

I have renamed it with command line (—action=ren). The input of the code above is the renamed folder. I also tried to generate src/nifti file from DICOM with GUI operation(I chose the renamed folder generated by command line). It works. But when I used the command line(—action =src), it didn’t work. 

Frank Yeh

unread,
Jan 3, 2022, 11:03:46 AM1/3/22
to dsi-s...@googlegroups.com
I updated DSI Studio. Please see if the updated version works for you.
Frank

xitch

unread,
Jan 3, 2022, 3:41:42 PM1/3/22
to dsi-s...@googlegroups.com
I tried the latest version. It didn't give me the same error message. But I didn't see any new file was generated after running it. And the command was terminated pretty fast, unlike GUI. I thought something is wrong?
Below is the output log. Thanks!


DSI Studio "Chen" Jan  3 2022
source=/mnt/nfs/lss/lss_kahwang_hpc/ThalHi_Diffusion/Processed_Data/20210625_F021Y_10002
action=src
load files in directory /mnt/nfs/lss/lss_kahwang_hpc/ThalHi_Diffusion/Processed_Data/20210625_F021Y_10002

search recursively in the subdir
process folder

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

Frank Yeh <fran...@gmail.com> 于2022年1月3日周一 10:03写道:

Frank Yeh

unread,
Jan 3, 2022, 4:05:56 PM1/3/22
to dsi-s...@googlegroups.com
assign --source=/mnt/nfs/lss/lss_kahwang_hpc/ThalHi_Diffusion/Processed_Data/ should solve the problem.
Frank

xitch

unread,
Jan 3, 2022, 6:39:56 PM1/3/22
to dsi-s...@googlegroups.com
It works! Thank you so much!
XT

Frank Yeh <fran...@gmail.com> 于2022年1月3日周一 15:05写道:
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/m7M9wt19BxU/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/CAG_Qrt%2BBOiSyQqboJVvHZnHbHypboc4Ph%3D_VoOPgkjjNQ87MPA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages