# pytransformix
A python3 wrapper for `transformix`, a command-line utility provided as part of the package [elastix](https://elastix.dev/index.php)
Currently runs on MacOS and Linux.
## Installation
### Step 1
**Either** `pip install` from [PyPI](https://pypi.org/project/transformix/):
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](https://elastix.dev/download.php) by first downloading it from the [releases page](https://github.com/SuperElastix/elastix/releases). 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](https://github.com/jasper-tms/pytransformix/issues) and I can try to help.
Raw data
{
"_id": null,
"home_page": "https://github.com/jasper-tms/pytransformix",
"name": "transformix",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Jasper Phelps",
"author_email": "jasper.s.phelps@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/96/48/ccd63ec86ab0f77d3d79c2dd83d7587c152aed625464a1c6738db5eb8cac/transformix-1.0.2.tar.gz",
"platform": null,
"description": "# pytransformix\n\nA python3 wrapper for `transformix`, a command-line utility provided as part of the package [elastix](https://elastix.dev/index.php)\n\nCurrently runs on MacOS and Linux.\n\n\n## Installation\n### Step 1\n**Either** `pip install` from [PyPI](https://pypi.org/project/transformix/):\n\n pip install transformix\n\n**or** first `git clone` the repo and then `pip install` from your clone:\n\n cd ~/repos # Or wherever on your computer you want to download this code to\n git clone https://github.com/jasper-tms/pytransformix.git\n cd pytransformix\n pip install .\n\n### Step 2\nInstall [elastix](https://elastix.dev/download.php) by first downloading it from the [releases page](https://github.com/SuperElastix/elastix/releases). Operating system compatibility notes:\n- Ubuntu 22.04: Use elastix-5.1.0 or the latest version.\n- Ubuntu 20.04: Use elastix-5.0.1\n- Ubuntu 18.04: Use elastix-5.0.0\n- Ubuntu 16.04: Use elastix-4.9.0\n- MacOS: elastix-5.0.1 worked on Big Sur, and I haven't tested other combinations. Probably safe to download the latest version.\n\nThen 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\n\n export PATH=$HOME/software/elastix-5.0.1-linux/bin:$PATH\n export LD_LIBRARY_PATH=$HOME/software/elastix-5.0.1-linux/lib${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}\n export DYLD_LIBRARY_PATH=$HOME/software/elastix-5.0.1-linux/lib${DYLD_LIBRARY_PATH+:$DYLD_LIBRARY_PATH}\n\nto 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](https://github.com/jasper-tms/pytransformix/issues) and I can try to help.\n\n\n",
"bugtrack_url": null,
"license": "GNU GPL v3",
"summary": "Python wrappers for transformix",
"version": "1.0.2",
"project_urls": {
"Homepage": "https://github.com/jasper-tms/pytransformix"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d1db58f814858443d2e8bf86d2d48600f70f4c9a3410568fdbfa8321571d5f1a",
"md5": "4995bcdc5a1447c6bd8749e5fc179e1e",
"sha256": "25d0aa90acfb0a44196acc7c510cce1a68523f83c0a21f38a540e14b511bc0f1"
},
"downloads": -1,
"filename": "transformix-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4995bcdc5a1447c6bd8749e5fc179e1e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 17060,
"upload_time": "2024-10-02T22:05:08",
"upload_time_iso_8601": "2024-10-02T22:05:08.766996Z",
"url": "https://files.pythonhosted.org/packages/d1/db/58f814858443d2e8bf86d2d48600f70f4c9a3410568fdbfa8321571d5f1a/transformix-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9648ccd63ec86ab0f77d3d79c2dd83d7587c152aed625464a1c6738db5eb8cac",
"md5": "0c491a400250f2a22a66a5ad4bdbd967",
"sha256": "197b3eb56b1e4abc05adf91ed855e68e3bbea286ac3ea1cf05fd1327ff28225c"
},
"downloads": -1,
"filename": "transformix-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "0c491a400250f2a22a66a5ad4bdbd967",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 16499,
"upload_time": "2024-10-02T22:05:10",
"upload_time_iso_8601": "2024-10-02T22:05:10.218785Z",
"url": "https://files.pythonhosted.org/packages/96/48/ccd63ec86ab0f77d3d79c2dd83d7587c152aed625464a1c6738db5eb8cac/transformix-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-02 22:05:10",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "jasper-tms",
"github_project": "pytransformix",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "transformix"
}