Getting Started

This section will guide you through installing, setting up, and launching xregGUI.

The critical components for the software include (1) the GUI and (2) the xreg executables

Getting the GUI: from Source

  1. Clone the repository:

    git clone https://github.com/jhu-bigss/xreg_ws.git
    cd xreg_ws
    
  2. Install Python dependencies:

    pip install -r requirements.txt
    
  3. Set the ``XREG_BUILD_DIR`` environment variable:

    This should point to the directory containing your xreg binaries.

    export XREG_BUILD_DIR=/path/to/xreg/build
    
  4. Prepare your working directory:

    Organize your data as follows:

    xreg_ws/
      gui/
      meta_data/
        XrayDICOM/
        landmarks/
        models/
      outputs/
      configs/
      logs/
    

Getting the GUI: from a Pre-built Distribution

  1. We provide a pre-built distribution for the GUI. You can download it from the release page from the github repository. [link](https://github.com/jhu-bigss/xreg_ws/releases/)

  2. Unzip the package and run the executable.

Getting the xreg executables: build from Source

  1. The xreg repository is located at: https://github.com/jhu-bigss/xreg, please follow the instructions in the README.md file to build the xreg executables.

    git clone https://github.com/jhu-bigss/xreg.git
    
  2. Alternatively, we provide a docker build script to build the xreg executables. Currently only a docker configuration for Ubuntu 22.04 is provided.

    cd xreg/docker_ubuntu_22.04
    chmod +x ./example_commands.sh
    ./example_commands.sh
    

Getting the xreg executables: from a Pre-built Distribution

  1. This works the same as the GUI from a pre-built distribution, please navigate to the release page from the github repository. [link](https://github.com/jhu-bigss/xreg/releases/)

  2. Unzip the package and run the executable. The executable is located in the build/ directory.

Note

If you encounter issues, check the Troubleshooting section.