Skip to main content

Tractometry Visualization Tool

Project description

trksnapshot

Installation

pip install trksnapshot (project page)

Description

trksnapshot is a CLI for creating bundle visualizations (created using FURY and DIPY). It supports

  1. Visualizing 3D bundles in an interactive window with custom color options and camera view. These include per-bundle color and along-tract color using BUAN (for tractometry results).
  2. Plotting bundle with glass brain and pial surfaces.
  3. Saving custom camera settings to produce consistent plots.
  4. Saving snapshot images for publication-ready figures!

All bundle visualizations in our recent work Microstructural mapping of neural pathways in Alzheimer's disease using macrostructure-informed normative tractometry were created with this script. Here's one of the figures:

bundle_atlas

Usage

[RECOMMENDED] To visualization bundle(s) with default pial surfaces (in MNI space)

trksnapshot \
      -i /path_to_tractogram/bundle*.trk \
      -glass default_pial \
      -show

You may also provide your own pial surface files

trksnapshot \
      -i /path_to_tractogram/bundle*.trk \
      -glass /path_to_surfaces/pial_left.nii /path_to_surfaces/pial_right.nii \
      -show

To visualization bundle(s) with default glass brain (must be in MNI space)

trksnapshot \
      -i /path_to_tractogram/bundle*.trk \
      -glass default_glass \
      -show

To visualization bundle with pial surfaces with BUAN output

trksnapshot \
      -i /path_to_tractogram/bundle.trk \
      -f /path_to_buan_results/pvals.npy \
      -ctitle pvalues -auto -cbar /path_to_output_folder/cbar.png \
      -glass /path_to_surfaces/pial_left.gii.gz /path_to_surfaces/pial_right.gii.gz
      -show \
      -o /path_to_output_folder/bundle.png

Citations

  1. Microstructural mapping of neural pathways in Alzheimer's disease using macrostructure-informed normative tractometry
  2. FURY: advanced scientific visualization

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

trksnapshot-0.1.5.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

trksnapshot-0.1.5-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file trksnapshot-0.1.5.tar.gz.

File metadata

  • Download URL: trksnapshot-0.1.5.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for trksnapshot-0.1.5.tar.gz
Algorithm Hash digest
SHA256 84ecdd1b1123ee098fdca2b47c15059276e6f8e699118cd93d20110cb30b4187
MD5 615462607030bb117eb1c1e65b9e1d5b
BLAKE2b-256 ddee20bb2881d8211457e3066946d993f563d16481426659740aacad8a6e0def

See more details on using hashes here.

File details

Details for the file trksnapshot-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: trksnapshot-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for trksnapshot-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 10d06ce2e9bc929a407e65c70a4e64367b72a2b49d6b0f4b8972ecb7feb98ded
MD5 561b194586cfbe30c99b74e3438331a6
BLAKE2b-256 cd5779662874a50f9a71ea36e69e7c897e2efc96c16220461ee9830d1eba7976

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