modify

Modify the contents of a squirrel package

Overview

The tool modifies the contents of existing squirrel packages.

Example Usage

List available variables for the pipeline object

bash> squirrel modify --variablelist study

Variable      Type       Required   Description                                                                                                   
AgeAtStudy    number     *          Subject's age in years at the time of the study                                                               
Datetime      datetime   *          Date of the study                                                                                             
DayNumber     number                For repeated studies and clinical trials, this indicates the day number of this study in relation to time 0   
Description   string     *          Study description                                                                                             
Equipment     string                Equipment name, on which the imaging session was collected                                                    
Height        number                Height in m of the subject at the time of the study                                                           
Modality      string     *          Defines the type of data. See table of supported modalities                                                   
Notes         string                Any notes about the study                                                                                     
StudyNumber   number     *          Study number. May be sequential or correspond to NiDB assigned study number                                   
StudyUID      string                DICOM field StudyUID                                                                                          
TimePoint     number                Similar to day number, but this should be an ordinal number                                                   
VisitType     string                Type of visit. ex: Pre, Post                                                                                  
Weight        number                Weight in kg of the subject at the time of the study 

Modify an existing subject to update the data of birth, sex, and gender

Options

--operation

--operation <operation> can be one of the following

Operation
Description
Associated options

add

Add objects to the package

--object --objectid --subjectid --studynum --datapath --objectdata

remove

Remove objects from the package

--object --objectid --subjectid --studynum

update

Update existing objects within the package

--datapath

--object --objectid --objectdata

splitbymodality

Split the package by modality, into new packages for each of the existing modalities.

removephi

Remove PHI

--object

--object <object> can be one of the following

  • package

  • subject

  • study

  • series

  • analysis

  • intervention

  • observation

  • experiment

  • pipeline

  • groupanalysis

  • datadictionary

--datapath

--datapath <path> is the path to the new object data. Path can contain a wildcard such as /path/to/data/*.dcm.

--objectid

--objectid <id> is the ID or name of an existing object in a package.

--subjectid

--subjectid <id> is the ID of a subject. This option specifies the parent subject when working on study, series, analysis, intervention, and observation objects.

--studynum

--studynum <num> is the study number. This option is used in combination with --subjectid, and specifies the parent study when working on series and analysis objects.

--objectdata

--objectdata <data> is a URL-style string which specifies the new object meta-data.

--variablelist

--variablelist <object> displays the possible meta-data variables available for the specified object.

Last updated