split_dicom
split_dicom#
- qx_utilities.dicom.split_dicom.split_dicom(folder=None, _log=None)#
split_dicom [folder=inbox]Sort out DICOM images from different sessions.
Parameters
- --folder (str, default 'inbox'):
The folder that contains the DICOM files to be sorted out.
Notes
The command is used when DICOM images from different sessions are mixed in the same folder and need to be sorted out. Specifically, the command inspects the specified folder (folder) and its subfolders for the presence of DICOM files. For each DICOM file it finds, it checks, what session id the file belongs to. In the specified folder it then creates a subfolder for each of the found sessions and moves all the DICOM files in the right sessions' subfolder.
Examples
qunex split_dicom \ --folder=dicommess
