Usage
CLI Usage
Info
Get basic project info
Example:
Get list of project datasets
Example:
Get dataset info
Example:
Creating projects and datasets
Create new project
Example:
Create new dataset
Example:
Clone existing dataset
Example:
Loading DICOM resources
Load DICOM into dataset (upload
source only)
All files and folders under the specified path will be included, including any symlinked files or folders.
Example:
Load DICOM into dataset (google-cloud-storage
or amazon-s3
source only)
For datasets created with source google-cloud-storage
or amazon-s3
, provide the bucket name (with optional file prefix to filter on).
Bucket permissions must be maintained for the corresponding MD.ai external data service account with at least the Storage Object Viewer role. See the web UI for the service account email, or see the resulting error message for this command when permissions are not present or sufficient.
Example:
Check progress of DICOM processing for dataset
Example:
Deleting DICOM resources
Delete existing dataset
Example:
Delete existing studies/series/instances from dataset by UIDs
Delete studies:
Delete series:
Delete instances:
Example:
User management
Add users
Example:
Get list of users
List users in project with their user id, name, email, and role.
Example:
Get list of assignments
List user assignments in project with their user id, name, label group restrictions, and exams list (dicomStudyRestriction
).
Example:
Add --json
to get output in JSON format:
Add/update assignments
This command will assign a range of exams and specific label group(s) to a user programmatically. Users need to be invited to the project first in order to have a user id. The following values need to be known:
- project id
- user id
- dataset id, if specific exams are to be assigned
- label group number, if specific label groups are to be assigned
Exam assignments are tied to a specific dataset so it must be provided together with a dataset id. For multiple datasets, multiple commands can be issued (one for each dataset).
Example (generic):
Example (specific):
Assignments cannot be made for project admin users. Invite the user with an alternate email address (which will create a separate user with a separate user id) if an assignment needs to be made for that user.
In order to remove/reset assignments or parts of an assignment, use an empty string. For example:
Models
Check model info
Example:
Clone model
Example:
Update model
Example:
Change model name:
Set model autorun inference to yes:
Delete model
Example:
Create model task
Example:
Clone model outputs as annotations
Example:
Project starter packs with models
List available models
Currently supported models for starter packs:
Create new project with selected models
Example:
Add model to project
Example:
De-identification (De-ID)
Create De-ID task
Creates a DeID task that can be found in the De-ID
panel on the UI. Can be used to create both pixel redaction and dicom tag redaction tasks.
Example:
- To run the entire De-identification workflow (including adding the latest De-ID model to the project, running infernece, and redacting all the model outputs by running the De-ID task) using one single command:
- To just run a part of the workflow where you want to redact manually created or inferenced labels you can choose to add the label IDs to redact:
- To create a dicom tag redaction task with the default tag redaction config file:
- To create a dicom tag redaction tasl the utilizes your own config file for tags:
Get task info
Example
Export default dicom tag redaction config
Example