datalad-hirni-import-dcm

Synopsis

datalad-hirni-import-dcm [-h] [-d PATH] [--subject SUBJECT] [--anon-subject ANON_SUBJECT] [--properties PATH or JSON string] PATH [ACQUISITION ID]

Description

Import a DICOM archive into a study raw dataset.

This creates a subdataset with the DICOM files under ACQUISITION ID/dicoms. Furthermore a study specification will automatically be prefilled, based on the metadata in DICOM headers.

Options

PATH

path or URL of the dicom archive to be imported. Constraints: value must be a string

ACQUISITION ID

acquisition identifier for the imported DICOM files. If not specified, an attempt will be made to derive ACQUISITION_ID from DICOM headers. Constraints: value must be a string [Default: None]

-h, –help, –help-np

show this help message. –help-np forcefully disables the use of a pager for displaying the help message

-d PATH, –dataset PATH

specify the dataset to import the DICOM archive into. If no dataset is given, an attempt is made to identify the dataset based on the current working directory and/or the PATH given. Constraints: Value must be a Dataset or a valid identifier of a Dataset (e.g. a path) [Default: None]

–subject SUBJECT

subject identifier. If not specified, an attempt will be made to derive SUBJECT from DICOM headers. Constraints: value must be a string [Default: None]

–anon-subject ANON_SUBJECT

an anonymized subject identifier. This is needed for anonymized conversion via spec2bids –anonymize and will be stored in the specification snippet for the imported DICOMs. Hence it can be added later and isn’t mandatory for the import. Constraints: value must be a string [Default: None]

–properties PATH or JSON string

a JSON string or a path to a JSON file, to provide overrides/additions for the to be created specification snippet. Constraints: value must be a string [Default: None]

Authors

datalad is developed by DataLad developers <team@datalad.org>.