Python wrappers 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file transformix-1.0.2.tar.gz
.
File metadata
- Download URL: transformix-1.0.2.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 197b3eb56b1e4abc05adf91ed855e68e3bbea286ac3ea1cf05fd1327ff28225c |
|
MD5 | 0c491a400250f2a22a66a5ad4bdbd967 |
|
BLAKE2b-256 | 9648ccd63ec86ab0f77d3d79c2dd83d7587c152aed625464a1c6738db5eb8cac |
File details
Details for the file transformix-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: transformix-1.0.2-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25d0aa90acfb0a44196acc7c510cce1a68523f83c0a21f38a540e14b511bc0f1 |
|
MD5 | 4995bcdc5a1447c6bd8749e5fc179e1e |
|
BLAKE2b-256 | d1db58f814858443d2e8bf86d2d48600f70f4c9a3410568fdbfa8321571d5f1a |