Experiments with new file format for tractography
Project description
trx-python
This is a Python implementation of the trx file-format for tractography data.
For details, please visit the documentation web-page at https://tee-ar-ex.github.io/trx-python/.
To install this, you can run:
pip install trx-python
Or, to install from source:
git clone https://github.com/tee-ar-ex/trx-python.git
cd trx-python
pip install .
Temporary Directory
The TRX file format uses memmaps to limit RAM usage. When dealing with large files this means several gigabytes could be required on disk (instead of RAM).
By default, the temporary directory on Linux and MacOS is /tmp
and on Windows it should be C:\WINDOWS\Temp
.
If you wish to change the directory add the following variable to your script or to your .bashrc or .bash_profile:
export TRX_TMPDIR=/WHERE/I/WANT/MY/TMP/DATA
(a)
OR
export TRX_TMPDIR=use_working_dir
(b)
The provided folder must already exists (a). use_working_dir
will be the directory where the code is being executed from (b).
The temporary folders should be automatically cleaned. But, if the code crash unexpectedly, make sure the folders are deleted.
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 trx_python-0.3.tar.gz
.
File metadata
- Download URL: trx_python-0.3.tar.gz
- Upload date:
- Size: 85.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 193e3282eaf03610c7e1b848aec04ddb9498fad3a7b684b30ca358e06751fbfd |
|
MD5 | f2765cbb9ab1d3acd12a5adb9cc4f4a9 |
|
BLAKE2b-256 | 3e653379c8239eb1f869283153c8aaf7de6b7716ad73fff4691a5c914314ec5f |
File details
Details for the file trx_python-0.3-py3-none-any.whl
.
File metadata
- Download URL: trx_python-0.3-py3-none-any.whl
- Upload date:
- Size: 45.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b00efb1024022a7835cc8b36e024a4ea575f19ce3fae81deb50b709fc8abcb49 |
|
MD5 | 47e4180cc4921cbecde5f6133348b696 |
|
BLAKE2b-256 | 573bfe226b78c9e2fa501a3115d132832aee9a6a08e16692fbd9f237a4e99e3e |