Question about --mask / --apply_mask with --action=rec in DSI Studio

3 views
Skip to first unread message

Julian Cramer

unread,
Jul 24, 2026, 10:05:58 AM (yesterday) Jul 24
to DSI Studio

Hi Frank,

We're using DSI Studio in an automated DTI pipeline for mouse and have a question about applying masks in CLI mode.

Our reconstruction command looks something like this:

dsi_studio \
  --action=rec \
  --source=<dwi.sz> \
  --mask=<AIDAmri_BET_mask.nii.gz> \
  --apply_mask \
  --method=1 \
  --other_output=all \
  --output=<output.fz> \
  --check_btable=0 \
  --make_isotropic=0

According to the log, the mask is opened correctly:

mask=<AIDAmri_BET_mask.nii.gz>

open <AIDAmri_BET_mask.nii.gz>

Nevertheless, the FA/MD/AD/RD NIfTI files exported later with --action=exp do not appear to be strictly limited to this mask. We continue to find non-zero values outside the BET mask in the exported maps. Most importantly, there seems to be an issue with the BET/masking performed by DSI Studio itself; please see the attached image.

We are currently using:

DSI Studio Hou version, Jul 21 2026.

Thank you very much and best regards,

Julian

Screenshot from 2026-07-24 11-04-42.png


Frank Yeh

unread,
Jul 24, 2026, 1:07:06 PM (yesterday) Jul 24
to cramer....@gmail.com, DSI Studio
Sorry about the bug. Could you post the log output of CLI? I will check to see if anything goes wrong.
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 visit https://groups.google.com/d/msgid/dsi-studio/cbe2c287-50dd-4bae-823f-3fa548b24d9dn%40googlegroups.com.

Frank Yeh

unread,
Jul 24, 2026, 3:00:46 PM (yesterday) Jul 24
to cramer....@gmail.com, DSI Studio
I committed a fix. Please update DSI Studio and see if the new update works for you.
Frank
Reply all
Reply to author
Forward
0 new messages