Command Line Documentation¶
This page is a more exhaustive coverage of running DOSMA from the command line.
Help menus for different scans and actions are shown. In the code blocks, code under the In header is what was
typed into the terminal window. Text under the Out header is the help menu output for that specific module.
To run the code, start a new session.
qDESS¶
Help menu for qDESS.
In:
---------
dosma qdess --help
Out:
---------
usage: DOSMA qdess [-h] [--fc] [--men] [--tc] [--pc]
{segment,generate_t2_map,t2} ...
optional arguments:
-h, --help show this help message and exit
--fc analyze femoral cartilage
--men analyze meniscus
--tc analyze tibial cartilage
--pc analyze patellar cartilage
subcommands:
qdess subcommands
{segment,generate_t2_map,t2}
segment generate automatic segmentation
generate_t2_map (t2) generate T2 map
Segmentation¶
Automatically segment tissues.
In:
---------
dosma qdess segment --help
Out:
---------
usage: DOSMA qdess segment [-h] --weights_dir WEIGHTS_DIR
[--model [{oai-unet2d}]] [--batch_size [B]] [--rms]
optional arguments:
-h, --help show this help message and exit
--weights_dir WEIGHTS_DIR
path to directory with weights
--model [{oai-unet2d}]
Model to use for segmentation. Choices: ['oai-unet2d']
--batch_size [B] batch size for inference. Default: 16
--rms, --use_rms use root mean square (rms) of two echos for
segmentation. Default: False
T2 Estimation¶
Generate T2 maps using two echos.
In:
---------
dosma qdess generate_t2_map --help
Out:
---------
usage: DOSMA qdess generate_t2_map [-h] [--suppress_fat] [--suppress_fluid]
[--beta [BETA]] [--gl_area [GL_AREA]]
[--tg [TG]]
optional arguments:
-h, --help show this help message and exit
--suppress_fat suppress computation on low SNR fat regions. Default:
False
--suppress_fluid suppress computation on fluid regions. Default: False
--beta [BETA] constant for calculating fluid-nulled image
(S1-beta*S2). Default: 1.2
--gl_area [GL_AREA] GL Area. Defaults to value in dicom tag '0x001910b6'.
--tg [TG] Gradient time (in microseconds). Defaults to value in
dicom tag '0x001910b7'
CubeQuant¶
Help menu for CubeQuant.
In:
---------
dosma cubequant --help
Out:
---------
usage: DOSMA cubequant [-h] [--fc] [--men] [--tc] [--pc]
{interregister,generate_t1_rho_map,t1_rho} ...
optional arguments:
-h, --help show this help message and exit
--fc analyze femoral cartilage
--men analyze meniscus
--tc analyze tibial cartilage
--pc analyze patellar cartilage
subcommands:
cubequant subcommands
{interregister,generate_t1_rho_map,t1_rho}
interregister register to another scan
generate_t1_rho_map (t1_rho)
generate T1-rho map
Interregister¶
Register CubeQuant scan to a target scan. Currently optimized for registering to qDESS target.
In:
---------
dosma cubequant interregister --help
Out:
---------
usage: DOSMA cubequant interregister [-h] --tp TARGET_PATH
[--tm [TARGET_MASK_PATH]]
optional arguments:
-h, --help show this help message and exit
--tp TARGET_PATH, --target TARGET_PATH, --target_path TARGET_PATH
path to target image in nifti format (.nii.gz)
--tm [TARGET_MASK_PATH], --target_mask [TARGET_MASK_PATH], --target_mask_path [TARGET_MASK_PATH]
path to target mask in nifti format (.nii.gz).
Default: None
T1\({\rho}\) Estimation¶
Compute T1\({\rho}\) map using mono-exponential fitting.
In:
---------
dosma cubequant generate_t1_rho_map --help
Out:
---------
usage: DOSMA cubequant generate_t1_rho_map [-h] [--mask_path [MASK_PATH]]
optional arguments:
-h, --help show this help message and exit
--mask_path [MASK_PATH]
Mask used for fitting select voxels in nifti format
(.nii.gz). Default: None
MAPSS¶
Help menu for MAPSS.
In:
---------
dosma mapss --help
Out:
---------
usage: DOSMA mapss [-h] [--fc] [--men] [--tc] [--pc]
{generate_t1_rho_map,t1_rho,generate_t2_map,t2} ...
optional arguments:
-h, --help show this help message and exit
--fc analyze femoral cartilage
--men analyze meniscus
--tc analyze tibial cartilage
--pc analyze patellar cartilage
subcommands:
mapss subcommands
{generate_t1_rho_map,t1_rho,generate_t2_map,t2}
generate_t1_rho_map (t1_rho)
generate T1-rho map using mono-exponential fitting
generate_t2_map (t2)
generate T2 map using mono-exponential fitting
T1\({\rho}\) Estimation¶
Compute T1\({\rho}\) map using mono-exponential fitting.
In:
---------
dosma mapss generate_t1_rho_map --help
Out:
---------
usage: DOSMA mapss generate_t1_rho_map [-h] [--mask [MASK_PATH]]
optional arguments:
-h, --help show this help message and exit
--mask [MASK_PATH], --mp [MASK_PATH], --mask_path [MASK_PATH]
mask filepath (.nii.gz) to reduce computational time
for fitting. Not required if loading data (ie. `--l`
flag) for tissue with mask. Default: None
T2 Estimation¶
Compute T2 map using mono-exponential fitting.
In:
---------
dosma mapss generate_t2_map --help
Out:
---------
usage: DOSMA mapss generate_t2_map [-h] [--mask [MASK_PATH]]
optional arguments:
-h, --help show this help message and exit
--mask [MASK_PATH], --mp [MASK_PATH], --mask_path [MASK_PATH]
mask filepath (.nii.gz) to reduce computational time
for fitting. Not required if loading data (ie. `--l`
flag) for tissue with mask.. Default: None
UTE Cones¶
Help menu for UTE Cones.
In:
---------
dosma cubequant --help
Out:
---------
usage: DOSMA cones [-h] [--fc] [--men] [--tc] [--pc]
{interregister,generate_t2_star_map,t2_star} ...
optional arguments:
-h, --help show this help message and exit
--fc analyze femoral cartilage
--men analyze meniscus
--tc analyze tibial cartilage
--pc analyze patellar cartilage
subcommands:
cones subcommands
{interregister,generate_t2_star_map,t2_star}
interregister register to another scan
generate_t2_star_map (t2_star)
generate T2-star map
Interregister¶
Register Cones scan to a target scan. Currently optimized for registering to qDESS target.
In:
---------
dosma cones interregister --help
Out:
---------
usage: DOSMA cones interregister [-h] --tp TARGET_PATH
[--tm [TARGET_MASK_PATH]]
optional arguments:
-h, --help show this help message and exit
--tp TARGET_PATH, --target TARGET_PATH, --target_path TARGET_PATH
path to target image in nifti format (.nii.gz)
--tm [TARGET_MASK_PATH], --target_mask [TARGET_MASK_PATH], --target_mask_path [TARGET_MASK_PATH]
path to target mask in nifti format (.nii.gz).
Default: None
T2* Estimation¶
Compute T2* map using mono-exponential fitting.
In:
---------
dosma cones generate_t2_star_map --help
Out:
---------
usage: DOSMA cones generate_t2_star_map [-h] [--mask_path [MASK_PATH]]
optional arguments:
-h, --help show this help message and exit
--mask_path [MASK_PATH]
Mask used for fitting select voxels - in nifti format
(.nii.gz). Default: None
### MSK Knee ``` usage: DOSMA knee [-h] [–ml] [–pid [PID]] [–fc] [–men] [–tc] [–t2]
[–t1_rho] [–t2_star]
- optional arguments:
- -h, --help
show this help message and exit
- --ml
defines slices in sagittal direction going from medial -> lateral
–pid [PID] specify pid –fc analyze femoral cartilage –men analyze meniscus –tc analyze tibial cartilage –t2 quantify t2 –t1_rho quantify t1_rho –t2_star quantify t2_star
If no quantitative value flag (e.g. –t2, –t1_rho, –t2_star) is specified, all quantitative values will be calculated by default.
If no tissue flag (e.g. –fc) is specified, all tissues will be calculated by default.