Installation Instructions

PACSIFIER can be installed in several ways, ordered from simplest to most flexible:

  1. Option 1: Pre-built Docker Image (Recommended) — Pre-built Docker image from Quay.io (recommended for most users)

  2. Option 2: Install via pip — Install via pip from PyPI

  3. Option 3: Build Docker Image Locally — Build the Docker image locally

  4. Option 4: Install from Source (For Developers) — Install from source (for developers)

Option 2: Install via pip

PACSIFIER is published on PyPI:

pip install pacsifier

Important

When installing via pip, you must also install DCMTK on your system for DICOM network communication:

  • Linux (Ubuntu-based): sudo apt install dcmtk

  • Windows (WSL): Same command within your WSL environment

  • macOS: brew install dcmtk

For more details, see the DCMTK documentation.

Verify the installation:

pacsifier --help

Option 3: Build Docker Image Locally

If you need the latest development version or want to customize the Docker image, you can build it from the repository:

git clone https://github.com/TranslationalML/pacsifier.git
cd pacsifier
make build-docker

Inspect the built image:

docker images | grep pacsifier

Test the image:

docker run --rm pacsifier:latest pacsifier --version

Note

DCMTK is included inside the Docker image. You do not need to install it separately.

Option 4: Install from Source (For Developers)

For developing or customizing PACSIFIER:

  1. Install DCMTK (required for DICOM network communication):

    sudo apt install dcmtk
    

    For other operating systems, see the DCMTK documentation.

  2. Clone the repository:

    git clone https://github.com/TranslationalML/pacsifier.git
    cd pacsifier
    
  3. Create a Python environment (Python >= 3.10 required):

    Using conda with a manual environment:

    conda create -n pacsifier_minimal python=3.10
    conda activate pacsifier_minimal
    

    Or using the provided environment file:

    conda env create -f environment/environment_minimal_202401.yml
    conda activate pacsifier_minimal
    

    Or using venv:

    python3 -m venv venv
    source venv/bin/activate
    
  4. Install PACSIFIER in editable mode:

    pip install -e .
    

    For full development (documentation, tests, linting):

    pip install -e ".[all]"
    
  5. Verify the installation:

    pacsifier --help
    

    This should display the help message for PACSIFIER, confirming the installation was successful.