Skip to main content

A Python wrapper for transformix

Project description

pytransformix

A python3 wrapper for transformix, a command-line utility provided as part of the package elastix

Currently runs on MacOS and Linux.

Installation

Step 1

Either pip install from PyPI:

pip install transformix

or first git clone the repo and then pip install from your clone:

cd ~/repos  # Or wherever on your computer you want to download this code to
git clone https://github.com/jasper-tms/pytransformix.git
cd pytransformix
pip install .

Step 2

Install elastix by first downloading it from the releases page. Operating system compatibility notes:

  • Ubuntu 22.04: Use elastix-5.1.0 or the latest version.
  • Ubuntu 20.04: Use elastix-5.0.1
  • Ubuntu 18.04: Use elastix-5.0.0
  • Ubuntu 16.04: Use elastix-4.9.0
  • MacOS: elastix-5.0.1 worked on Big Sur, and I haven't tested other combinations. Probably safe to download the latest version.

Then extract the .zip or .tar.gz file you downloaded and put the folder somewhere on your computer. Then add that folder's bin subdirectory to your shell PATH and that folder's lib subdirectory to your shell LD_LIBRARY_PATH. For example, if you put the folder at ~/software/elastix-5.0.1-linux, then add these three lines of text

export PATH=$HOME/software/elastix-5.0.1-linux/bin:$PATH
export LD_LIBRARY_PATH=$HOME/software/elastix-5.0.1-linux/lib${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}
export DYLD_LIBRARY_PATH=$HOME/software/elastix-5.0.1-linux/lib${DYLD_LIBRARY_PATH+:$DYLD_LIBRARY_PATH}

to your shell config file (~/.bashrc for bash on Linux, ~/.bash_profile for bash on Mac, or ~/.zshrc for zsh on Mac). Then open up a new terminal and run elastix. If you see Use "elastix --help" for information about elastix-usage., you're good to go. If not, feel free to open an issue and I can try to help.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

transformix-1.1.0.tar.gz (42.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

transformix-1.1.0-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

Details for the file transformix-1.1.0.tar.gz.

File metadata

  • Download URL: transformix-1.1.0.tar.gz
  • Upload date:
  • Size: 42.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for transformix-1.1.0.tar.gz
Algorithm Hash digest
SHA256 38c9fd9e9624e0e8728169f0b3eac61ea9a6c5d91522f9c39c64bc7ace0cbcbf
MD5 7b17147440c0d9a8405dd850acfbee37
BLAKE2b-256 9acbb3cc910a3be894a712cff304d26b131144a13ce308785fe2f580e9fdc140

See more details on using hashes here.

File details

Details for the file transformix-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: transformix-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 30.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for transformix-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1236e2df8f9afb25e3963ab1b013fa6c72504cd886a1d249604ca22afa65d6aa
MD5 d5803b179393d7ed1c1f6bb0999b127b
BLAKE2b-256 18d58514453afad6c8fa4332071e0603ae6d2a60faa7bfc5c89352b2db8eb002

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page