--cmd is not used/recognized

8 views
Skip to first unread message

Josh Neudorf

unread,
Jul 17, 2026, 9:22:07 AM (9 days ago) Jul 17
to DSI Studio
Hi Frank,

I am trying to use the --cmd flag on the --action=rec step and it gives the error: "--cmd is not used/recognized". Is the --cmd flag still available? We are trying to apply a b-table flip but are not able to without this --cmd flag as far as I am aware.

Thanks,
Josh Neudorf

Josh Neudorf

unread,
Jul 17, 2026, 8:15:54 PM (8 days ago) Jul 17
to DSI Studio
Hi Frank,

Following up to share the fix my student found:

The error appears only if a reconstructed .fz file is already present in the directory, hence why overwrite was necessary. Given that, still the error should explain necessity of overwrite flag and not about cmd. I'm explaining below:
  • This code works for reconstruction and b-table correction
    • `dsi_studio --action=rec --source=*.sz --cmd="[Step T2][B-table][Check B-table]"`
  • But if a corresponding reconstructed .fz is file is already presented, reconstruction gets interrupted without creating the .fz file with this error:
    • │ ├──overwrite=0 │ ├──output file exist at "/home/cumminelab/drive_4tb/PREDYS/data/derivatives/test_qsi-dsi/sub-01_space-ACPC_desc-preproc_dwi.gqi.fz" │ └──⏱1s327ms └──⏱1s327ms ❗--cmd is not used/recognized.
  • But running this did not give any errors and successfully runs reconstruction with b-table correction and replaced the previous .fz file 
    • `dsi_studio --action=rec --source=*.sz --cmd="[Step T2][B-table][Check B-table]" --overwrite=1`
Best wishes,
Josh Neudorf

Frank Yeh

unread,
Jul 18, 2026, 1:20:25 PM (8 days ago) Jul 18
to dsi-s...@googlegroups.com

Hi Josh,

Thank you for tracking this down and sharing the details. You are right—the error message is misleading when the output file already exists and overwrite is disabled. I will revise it so that it reports the existing output file and the need for --overwrite=1, rather than saying that --cmd is not recognized.

Best,
Frank

On Fri, 17 Jul 2026 14:50:06 -0700 (PDT), Josh Neudorf jneu...@ualberta.ca wrote:

Hi Frank,

Following up to share the fix my student found:

The error appears only if a reconstructed .fz file is already present in the directory, hence why overwrite was necessary. Given that, still the error should explain necessity of overwrite flag and not about cmd. I’m explaining below:

  • This code works for reconstruction and b-table correction

  • dsi_studio --action=rec --source=*.sz --cmd="[Step T2][B-table][Check B-table]"

  • But if a corresponding reconstructed .fz is file is already presented, reconstruction gets interrupted without creating the .fz file with this error:

  • │ ├──overwrite=0 │ ├──output file exist at “/home/cumminelab/drive_4tb/PREDYS/data/derivatives/test_qsi-dsi/sub-01_space-ACPC_desc-preproc_dwi.gqi.fz” │ └──⏱1s327ms └──⏱1s327ms ❗–cmd is not used/recognized.

  • But running this did not give any errors and successfully runs reconstruction with b-table correction and replaced the previous .fz file

  • dsi_studio --action=rec --source=*.sz --cmd="[Step T2][B-table][Check B-table]" --overwrite=1

Best wishes,

Josh Neudorf

On Friday, July 17, 2026 at 7:22:07 AM UTC-6 Josh Neudorf wrote:

Hi Frank,

I am trying to use the --cmd flag on the --action=rec step and it gives the error: “–cmd is not used/recognized”. Is the --cmd flag still available? We are trying to apply a b-table flip but are not able to without this --cmd flag as far as I am aware.

Thanks,

Josh Neudorf

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 visit https://groups.google.com/d/msgid/dsi-studio/9bdc0a79-7599-4852-bc74-1e91d3a7d127n%40googlegroups.com.

Josh Neudorf

unread,
Jul 20, 2026, 11:00:21 AM (6 days ago) Jul 20
to fran...@gmail.com, dsi-s...@googlegroups.com
Wonderful - thank you Frank. 

Best, 
Josh

Josh Neudorf, PhD
Assistant Professor, Psychology, Athabasca University 
Adjunct Professor, Psychology, University of Alberta
Adjunct Professor, Communication Sciences and Disorders, University of Alberta
Faculty Member, Neuroscience and Mental Health Institute (NMHI), University of Alberta
Affiliate Member, Institute for Neuroscience and Neurotechnology (INN), Simon Fraser University
Consulting Editor, Cortex 

From: dsi-s...@googlegroups.com <dsi-s...@googlegroups.com> on behalf of Frank Yeh <fran...@gmail.com>
Sent: Saturday, 18 July 2026 11:19:46
To: dsi-s...@googlegroups.com <dsi-s...@googlegroups.com>
Subject: [dsi-studio] Re: --cmd is not used/recognized
 
--
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/Kt1Gm1imVP8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dsi-studio+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dsi-studio/CAG_Qrt%2BPDjwimsVj%3DUAqhmt2fY2BrJTPKzZnnmUZ-6VGOdkHQw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages