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.4.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.4-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trksnapshot-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 30cf5b81cbbe6eb76e02ef93123864e6e32c7a8464d8299c57f4d1d5fcc4c5d1
MD5 aa4db5094d7f633e3240a53993365092
BLAKE2b-256 1fed803ef5785cb3b84c8b85dd740d753325836c14092041e06827e6d80d0326

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trksnapshot-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 93924b5f84196b2de56f983fb31b40864c58a55f60dec29ece87029156796b47
MD5 a25ef514007cf36b18b843fc02d4702f
BLAKE2b-256 afc5054462049391229a9821732715950bdd920b3eba29e8c735ec46adab88e6

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