Tractometry Visualization Tool
Project description
trksnapshot
trksnapshot is a CLI for creating bundle visualizations (created using FURY and DIPY). It supports
- 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).
- Supports plotting bundle with glass brain and pial surfaces.
- Rotate the camera however you like and save camera settings to produce consistent plots.
- Save 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:
Example Commands
[RECOMMENDED] To visualization bundle(s) with default pial surfaces (in MNI space)
python snapshot_bundle.py \
-i /path_to_tractogram/bundle*.trk \
-glass default_pial \
-show
You may also provide your own pial surface files
python snapshot_bundle.py \
-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)
python snapshot_bundle.py \
-i /path_to_tractogram/bundle*.trk \
-glass default_glass \
-show
To visualization bundle with pial surfaces with BUAN output
python snapshot_bundle.py \
-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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trksnapshot-0.1.tar.gz.
File metadata
- Download URL: trksnapshot-0.1.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b12007f396cb2922fe26f92898168d86bba4b19e9b38cd1adb17bf4f239ad0f8
|
|
| MD5 |
4af54172efa322f31d9edadb4e85336c
|
|
| BLAKE2b-256 |
5a16c99788c41b1dc443992afcbb148dd9964687cf20cb684adf3cfc7b9bb70c
|
File details
Details for the file trksnapshot-0.1-py3-none-any.whl.
File metadata
- Download URL: trksnapshot-0.1-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51cfa65b003d87ed99f9f4998ef6a27beb49826de9f2921ab425ed81034528f0
|
|
| MD5 |
aa9a78ef1762e4da8c798ee2ce9874ed
|
|
| BLAKE2b-256 |
c824e08e4b4fcf3d82ee1f44b0cdfff74eac8d0db85be0f51dd8e11fec943e77
|