| Name | trksnapshot JSON | 
            
| Version | 
                  0.1.5
                   
                  JSON | 
            
 | download  | 
            
| home_page | None  | 
            
| Summary | Tractometry Visualization Tool | 
            | upload_time | 2025-09-05 23:15:48 | 
            | maintainer | None | 
            
            | docs_url | None | 
            | author | None | 
            
            | requires_python | >=3.10 | 
            
            
            | license | MIT License
        
        Copyright (c) 2024, Yixue Feng
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE. | 
            | keywords | 
                
                    tractometry
                
                     tractography
                
                     diffusion mri
                
                     white matter
                 | 
            | VCS | 
                
                     | 
                
            
            | bugtrack_url | 
                
                 | 
             
            
            | requirements | 
                
                  No requirements were recorded.
                
             | 
            
| Travis-CI | 
                
                   No Travis.
                
             | 
            | coveralls test coverage | 
                
                   No coveralls.
                
             | 
        
        
            
            # trksnapshot
## Installation
 `pip install trksnapshot` ([project page]([https://pypi.org/project/trksnapshot))
## 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*](https://doi.org/10.1002/alz.14371) were created with this script. Here's one of the figures:
<img src="assets/atlas_bundles.jpg" alt="bundle_atlas" width="800">
## Usage
[**RECOMMENDED**] To visualization bundle(s) with default pial surfaces (in MNI space)
```bash
trksnapshot \
      -i /path_to_tractogram/bundle*.trk \
      -glass default_pial \
      -show
```
You may also provide your own pial surface files
```bash
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)
```bash
trksnapshot \
      -i /path_to_tractogram/bundle*.trk \
      -glass default_glass \
      -show
```
To visualization bundle with pial surfaces with BUAN output
```bash
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
](https://doi.org/10.1002/alz.14371)
2. [FURY: advanced scientific visualization](10.21105/joss.03384)
            
         
        Raw data
        
            {
    "_id": null,
    "home_page": null,
    "name": "trksnapshot",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "tractometry, tractography, diffusion MRI, white matter",
    "author": null,
    "author_email": "Yixue Wendy Feng <yixuewendy.f@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/dd/ee/20bb2881d8211457e3066946d993f563d16481426659740aacad8a6e0def/trksnapshot-0.1.5.tar.gz",
    "platform": null,
    "description": "# trksnapshot\n\n## Installation\n `pip install trksnapshot` ([project page]([https://pypi.org/project/trksnapshot))\n\n## Description\n**trksnapshot** is a CLI for creating bundle visualizations (created using FURY and DIPY). It supports  \n1. 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).\n2. Plotting bundle with glass brain and pial surfaces.\n3. Saving custom camera settings to produce consistent plots.\n4. Saving snapshot images for publication-ready figures!\n\nAll bundle visualizations in our recent work [*Microstructural mapping of neural pathways in Alzheimer's disease using macrostructure-informed normative tractometry*](https://doi.org/10.1002/alz.14371) were created with this script. Here's one of the figures:\n\n<img src=\"assets/atlas_bundles.jpg\" alt=\"bundle_atlas\" width=\"800\">\n\n## Usage\n\n[**RECOMMENDED**] To visualization bundle(s) with default pial surfaces (in MNI space)\n```bash\ntrksnapshot \\\n      -i /path_to_tractogram/bundle*.trk \\\n      -glass default_pial \\\n      -show\n```\nYou may also provide your own pial surface files\n```bash\ntrksnapshot \\\n      -i /path_to_tractogram/bundle*.trk \\\n      -glass /path_to_surfaces/pial_left.nii /path_to_surfaces/pial_right.nii \\\n      -show\n```\n\nTo visualization bundle(s) with default glass brain (must be in MNI space)\n```bash\ntrksnapshot \\\n      -i /path_to_tractogram/bundle*.trk \\\n      -glass default_glass \\\n      -show\n```\n\nTo visualization bundle with pial surfaces with BUAN output\n```bash\ntrksnapshot \\\n      -i /path_to_tractogram/bundle.trk \\\n      -f /path_to_buan_results/pvals.npy \\\n      -ctitle pvalues -auto -cbar /path_to_output_folder/cbar.png \\\n      -glass /path_to_surfaces/pial_left.gii.gz /path_to_surfaces/pial_right.gii.gz\n      -show \\\n      -o /path_to_output_folder/bundle.png\n```\n\n## Citations\n1. [Microstructural mapping of neural pathways in Alzheimer's disease using macrostructure-informed normative tractometry\n](https://doi.org/10.1002/alz.14371)\n2. [FURY: advanced scientific visualization](10.21105/joss.03384)\n",
    "bugtrack_url": null,
    "license": "MIT License\n        \n        Copyright (c) 2024, Yixue Feng\n        \n        Permission is hereby granted, free of charge, to any person obtaining a copy\n        of this software and associated documentation files (the \"Software\"), to deal\n        in the Software without restriction, including without limitation the rights\n        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n        copies of the Software, and to permit persons to whom the Software is\n        furnished to do so, subject to the following conditions:\n        \n        The above copyright notice and this permission notice shall be included in all\n        copies or substantial portions of the Software.\n        \n        THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n        SOFTWARE.",
    "summary": "Tractometry Visualization Tool",
    "version": "0.1.5",
    "project_urls": {
        "Homepage": "https://github.com/wendyfyx/trksnapshot",
        "Issues": "https://github.com/wendyfyx/trksnapshot/issues"
    },
    "split_keywords": [
        "tractometry",
        " tractography",
        " diffusion mri",
        " white matter"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "cd5779662874a50f9a71ea36e69e7c897e2efc96c16220461ee9830d1eba7976",
                "md5": "561b194586cfbe30c99b74e3438331a6",
                "sha256": "10d06ce2e9bc929a407e65c70a4e64367b72a2b49d6b0f4b8972ecb7feb98ded"
            },
            "downloads": -1,
            "filename": "trksnapshot-0.1.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "561b194586cfbe30c99b74e3438331a6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 8326,
            "upload_time": "2025-09-05T23:15:47",
            "upload_time_iso_8601": "2025-09-05T23:15:47.838287Z",
            "url": "https://files.pythonhosted.org/packages/cd/57/79662874a50f9a71ea36e69e7c897e2efc96c16220461ee9830d1eba7976/trksnapshot-0.1.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "ddee20bb2881d8211457e3066946d993f563d16481426659740aacad8a6e0def",
                "md5": "615462607030bb117eb1c1e65b9e1d5b",
                "sha256": "84ecdd1b1123ee098fdca2b47c15059276e6f8e699118cd93d20110cb30b4187"
            },
            "downloads": -1,
            "filename": "trksnapshot-0.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "615462607030bb117eb1c1e65b9e1d5b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 8975,
            "upload_time": "2025-09-05T23:15:48",
            "upload_time_iso_8601": "2025-09-05T23:15:48.977253Z",
            "url": "https://files.pythonhosted.org/packages/dd/ee/20bb2881d8211457e3066946d993f563d16481426659740aacad8a6e0def/trksnapshot-0.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-05 23:15:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "wendyfyx",
    "github_project": "trksnapshot",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "trksnapshot"
}