Skip to content

CLI Usage

Get basic project info

$ mdai project info --project-id MwBeWjNr

Project MwBeWjNr - Test Project
--------------------------------------------------
Description:
Private:    YES
Created:    2018-10-07 19:10:16
Updated:    2018-10-07 19:11:39

Get list of project datasets

$ mdai project list-datasets --project-id MwBeWjNr

Project MwBeWjNr: Test Project
--------------------------------------------------
Datasets:
ID         Name      Type    Source   Created               Updated               Processing
D_NbrqAB   Head CT   DICOM   upload   2018-10-07 19:11:39   2018-10-07 19:11:39

Load DICOM into dataset

$ mdai dataset load --dataset-id D_NbrqAB dicom_dir

Preparing to upload 'dicom_dir' to DICOM dataset D_NbrqAB...
File count: 11
Total size: 5.52 MB

Uploading:
100% [==================================================] 11/11 [0.0s<0.0s, 478/s]
Completed. No errors.

Done uploading for batch id 1e6ddfed-a32f-4cd4-8113-c683b9122134.
Run `mdai dataset progress -i D_NbrqAB` to track progress.

Check progress of DICOM processing for dataset

$ mdai dataset progress --dataset-id D_NbrqAB

Dataset D_NbrqAB: Head CT
--------------------------------------------------
Type: DICOM
Source: upload
Processing progress for worker batch id 1e6ddfed-a32f-4cd4-8113-c683b9122134

Status                                FINISHED
Subtask: process uploaded files
  # Completed                         11
  # Remaining                         0
  # Errors                            0
Subtask: generate series thumbnails
  # Completed                         1
  # Remaining                         0
  # Errors                            0
Started                               2018-10-07 19:13:36
Elapsed time                          1
Percent complete                      100%

Get project dataset info

$ mdai dataset info --dataset-id D_NbrqAB

Dataset D_NbrqAB: Head CT
--------------------------------------------------
Type          DICOM
Source        upload
Description
Created       2018-10-07 19:11:39
Updated       2018-10-07 19:14:50
# Studies     1
# Series      1
# Images      11