Skip to main content

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


Download files

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

Source Distribution

trx-python-0.2.5.tar.gz (85.4 kB view details)

Uploaded Source

Built Distribution

trx_python-0.2.5-py3-none-any.whl (44.9 kB view details)

Uploaded Python 3

File details

Details for the file trx-python-0.2.5.tar.gz.

File metadata

  • Download URL: trx-python-0.2.5.tar.gz
  • Upload date:
  • Size: 85.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for trx-python-0.2.5.tar.gz
Algorithm Hash digest
SHA256 2acecf6db5fd49ae08d6313a8e6ce7fe748e8f3e3591849342fa7f2fd941e2d0
MD5 2da5bab3f6506e077b4cc3ffc1e78061
BLAKE2b-256 a9ede05a182b6356e1769ce6353f4bfa6514cc8d754a2dd462e839c2a75a2fa6

See more details on using hashes here.

File details

Details for the file trx_python-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: trx_python-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 44.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for trx_python-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 abf2d06857af7245a66e3c6cefdb6926219c077a6fe6b6f1b2797fba0668f4db
MD5 276a57f3aa00fe02d48dd4859809ab50
BLAKE2b-256 a7fca7bdbb348e4047138fcc4d6d2eb12e5186058f7610254e99881e1f5b5a2a

See more details on using hashes here.

Supported by

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