Skip to content

[DOC] Add Optic tract example#143

Merged
36000 merged 4 commits into
tractometry:mainfrom
36000:oton_example
Jan 15, 2026
Merged

[DOC] Add Optic tract example#143
36000 merged 4 commits into
tractometry:mainfrom
36000:oton_example

Conversation

@36000

@36000 36000 commented Jan 12, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings January 12, 2026 20:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds documentation and functionality for tracking the optic tract and posterior optic nerve in pyAFQ. The example demonstrates how to customize pyAFQ for tracking relatively small bundles using custom ROIs, specialized tractography parameters, and custom PVE maps.

Changes:

  • Added a comprehensive example script showing optic tract tracking workflow
  • Modified multi-axial model to apply brain mask to predictions
  • Enhanced template loading to support tractography (.trk) files
  • Added new optic tract/nerve template fetching and loading functions

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
examples/howto_examples/optic_tract.py New example demonstrating optic tract tracking with custom parameters and PVE maps
AFQ/tasks/structural.py Updated mx_model to mask predictions and accept unmasked T1 input
AFQ/data/fetch.py Added support for .trk files in template loading and new optic tract template fetchers

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread AFQ/data/fetch.py Outdated
Comment thread AFQ/data/fetch.py Outdated
Comment thread AFQ/data/fetch.py Outdated
Comment thread examples/howto_examples/optic_tract.py Outdated
@36000

36000 commented Jan 12, 2026

Copy link
Copy Markdown
Collaborator Author

@arokem this is ready for review/merge

@36000 36000 added this to the pyAFQ 3.0 milestone Jan 12, 2026
Comment thread examples/howto_examples/optic_tract.py Outdated
Co-authored-by: Ariel Rokem <arokem@gmail.com>
@36000
36000 merged commit cef09b5 into tractometry:main Jan 15, 2026
2 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants