Skip to main content

Sort Dicom

A very simple script that sorts DICOM files bassed on their series description and time of acquisition.

That is DICOMs with the following series descriptions:

  • ACR_T1 :: Acquired at 12:00:00
  • ACR_T2 :: Acquired at 12:05:00
  • RF_NOISE :: Acquired at 12:10:00
  • RF_NOISE :: Acquired at 12:15:00
  • ACR_T2 :: Acquired at 12:20:00

would be grouped into the directory structure:

ACR/
    ACR_T1_120000.dcm
    ACR_T2_120500.dcm
    ACR_T2_122000.dcm
RF/
    RF_NOISE_121000.dcm
    RF_NOISE_121500.dcm

Installation

pip install sortdicom

Usage

usage: sortdicom.cmd [-h] [-o OUT] data_path

Sorts DICOMs into directories based on their series description.

positional arguments:
  data_path          Path to the data directory containing DICOM files.

options:
  -h, --help         show this help message and exit
  -o OUT, --out OUT  Path to stored the grouped DICOM files.

License

This project is licensed under the GNU GPL v3 license which can be found here

Contributing

Contributions welcome - please open an issue and/or pull request.

Metadata

Release files for sortdicom 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sortdicom 0.5.0
File Size Uploaded Provenance Actions
sortdicom-0.5.0.tar.gz 20.6 kB Without provenance Details for sortdicom-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sortdicom 0.5.0
File Interpreter ABI Platform Actions
sortdicom-0.5.0-py3-none-any.whl Python 3 none any Details for sortdicom-0.5.0-py3-none-any.whl

Total release size: 38.0 kB

Release files / sortdicom-0.5.0.tar.gz

Download URL sortdicom-0.5.0.tar.gz
Size 20.6 kB
Tags Source
SHA-256 checksum
How to use checksums
240dc5baaa183b26537100ecf8be76810b6bae3fd5d583a3a250e7c6b540f565
BLAKE2b-256 checksum
How to use checksums
5188b7e89ad6dd2f7416c9b224f780cf9c1e3d8e8e89f39c90b6ffc0a47fd19c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.5 Windows/11

Release files / sortdicom-0.5.0-py3-none-any.whl

Download URL sortdicom-0.5.0-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
853b3a7d05c910479d40331ac26d72847418768396c057821bd252e5be61f1b0
BLAKE2b-256 checksum
How to use checksums
57f395eb0553ba0b5f5241cdc61625ec915005ac20b2891a581fc7ffa757a9a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.5 Windows/11

Security for sortdicom 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page