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.3.tar.gz (84.7 kB view details)

Uploaded Source

Built Distribution

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

trx_python-0.2.3-py3-none-any.whl (44.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trx-python-0.2.3.tar.gz
  • Upload date:
  • Size: 84.7 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.3.tar.gz
Algorithm Hash digest
SHA256 8937b5732a4fc84e0535e7d00804250fb4194564825f4bbe7994880718944e28
MD5 d9088c2af153d18362db4900268e15b3
BLAKE2b-256 73e5fe4d5a2a01ee7616f3bab53ca24cc6c753a92bfe189bb1933feab62bf15b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trx_python-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 44.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b91ccc8551427da474defb982a9cfbb539de0768a6af93be237571b89565160f
MD5 4480f73cd2e553388f3530a0e582ede9
BLAKE2b-256 953b474e1c7f3d88ab6725cef5994999c59bb7001909bbda53951cedab3fd97e

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