A rapid streamline-based extension of Tractfinder for white matter tract segmentation.
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Python · 103 lines · 3.5 KB · no license
- # Copyright (c) 2008-2019 the MRtrix3 contributors.
- #
- # This Source Code Form is subject to the terms of the Mozilla Public
- # License, v. 2.0. If a copy of the MPL was not distributed with this
- # file, You can obtain one at http://mozilla.org/MPL/2.0/.
- #
- # Covered Software is provided under this License on an "as is"
- # basis, without warranty of any kind, either expressed, implied, or
- # statutory, including, without limitation, warranties that the
- # Covered Software is free of defects, merchantable, fit for a
- # particular purpose or non-infringing.
- # See the Mozilla Public License v. 2.0 for more details.
- #
- # For more details, see http://www.mrtrix.org/.
- import os, sys
- try:
- # since importlib code below only works on Python 3.5+
- # https://stackoverflow.com/a/50395128
- if sys.version_info < (3,5):
- raise ImportError
- import importlib.util
- def imported(lib_path):
- try:
- spec = importlib.util.spec_from_file_location('mrtrix3', os.path.join (lib_path, 'mrtrix3', '__init__.py'))
- module = importlib.util.module_from_spec (spec)
- sys.modules[spec.name] = module
- spec.loader.exec_module (module)
- return True
- except (ImportError, FileNotFoundError):
- return False
- except ImportError:
- try:
- import imp
- except ImportError:
- print ('failed to import either imp or importlib module!')
- sys.exit(1)
- def imported(lib_path):
- success = False
- fp = None
- try:
- fp, pathname, description = imp.find_module('mrtrix3', [ lib_path ])
- imp.load_module('mrtrix3', fp, pathname, description)
- success = True
- except ImportError:
- pass
- finally:
- if fp:
- fp.close()
- return success
- # First: check the MRTRIX_HOME environment variable
- if imported (os.path.join (os.environ['MRTRIX_HOME'], 'lib')) \
- if 'MRTRIX_HOME' in os.environ else False:
- pass
- # Can the MRtrix3 Python modules be found based on their relative location to this file?
- # Note that this includes the case where this file is a softlink within an external module,
- # which provides a direct link to the core installation
- elif not imported (os.path.normpath (os.path.join ( \
- os.path.dirname (os.path.realpath (__file__)), os.pardir, 'lib') )):
- # If this file is a duplicate, which has been stored in an external module,
- # we may be able to figure out the location of the core library using the
- # build script.
- # case 1: build is a symbolic link:
- if not imported (os.path.join (os.path.dirname (os.path.realpath ( \
- os.path.join (os.path.dirname(__file__), os.pardir, 'build'))), 'lib')):
- # case 2: build is a file containing the path to the core build script:
- try:
- with open (os.path.join (os.path.dirname(__file__), os.pardir, 'build')) as fp:
- for line in fp:
- build_path = line.split ('#',1)[0].strip()
- if build_path:
- break
- except IOError:
- pass
- if not imported (os.path.join (os.path.dirname (build_path), 'lib')):
- # Last resort: find the MRtrix3 library via mrconvert on the PATH
- import shutil
- _mrconvert = shutil.which ('mrconvert')
- if not (_mrconvert and imported (os.path.normpath (os.path.join (
- os.path.dirname (os.path.realpath (_mrconvert)), os.pardir, 'lib')))):
- sys.stderr.write('''
- ERROR: Unable to locate MRtrix3 Python modules
- For detailed instructions, please refer to:
- https://mrtrix.readthedocs.io/en/latest/tips_and_tricks/external_modules.html
- ''')
- sys.stderr.flush()
- sys.exit(1)
mrtrix3.py at commit 2475f4b, no license · at the source
Overview
- Developmental Imaging and Biophysics Section, UCL GOS Institute of Child Health, London, United Kingdom
- Software Engineering and Artificial Intelligence Science Technology Platform, The Francis Crick Institute, London, United Kingdom
- Department of Neurosurgery, Great Ormond Street Hospital for Children, London, United Kingdom
Abstract
Accurate delineation of white matter tracts is critical in the pre-operative assessment of paediatric brain tumour patients, where preservation of eloquent pathways directly influences surgical planning and functional outcomes. Tractfinder is a recently introduced automated method for white matter tract segmentation in tumour patients, but its voxel-based (mask) outputs limit compatibility with streamline-based tractography tools, visualisation workflows, and downstream analytical frameworks. Here we introduce Tractfinder-constrained Tractography (TcT), a streamline-based extension that constrains probabilistic tractography to the probability maps produced by Tractfinder, generating streamline representations while preserving the speed and automation that make Tractfinder clinically appealing. We evaluated TcT in ten pre-operative paediatric patients with supratentorial tumours, targeting three clinically relevant tracts – the corticospinal tract, arcuate fasciculus, and optic radiation. Spatial agreement between TcT and conventional tractography was assessed using Bundle Adjacency (BA). Mean BA scores across all three tracts ranged from 2.1 to 2.6 mm, comparing favourably against published inter-protocol benchmarks for conventional probabilistic tractography (4.3 mm), and approaching within-protocol variability. The TcT pipeline was fully automated, required no manual region-of-interest placement, and completed in approximately 5–15 min per subject compared to 1–2 h for conventional tractography. These results demonstrate that TcT produces streamline-based tract segmentations with good spatial agreement to conventional tractography, while offering substantially reduced processing time and operator burden.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above.
tractfinder/tractfinder
2475f4bd82013cb3e265c5aee9a294636273cd7d, 5 June 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
7 files
- bin/
mrtrix3.py , Python, 103 lines - bin/
tractfinder.py , Python, 34 lines - lib/
tractfinder/ , Python, 12 lines__init__.py - lib/
tractfinder/ , Python, 288 linesimage.py - lib/
tractfinder/ , Python, 89 linesutils.py - lib/
tractfinder/ , Python, 377 linesvirtue.py - README.md, Text, 194 lines
fionaEyoung/tractfinder
2475f4bd82013cb3e265c5aee9a294636273cd7d, 5 June 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
7 files
- bin/
mrtrix3.py , Python, 103 lines - bin/
tractfinder.py , Python, 34 lines - lib/
tractfinder/ , Python, 12 lines__init__.py - lib/
tractfinder/ , Python, 288 linesimage.py - lib/
tractfinder/ , Python, 89 linesutils.py - lib/
tractfinder/ , Python, 377 linesvirtue.py - README.md, Text, 194 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 12 scripts, each with its path and the digest of its content;
- no match between paragraphs and code yet;
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data availability statement
Scripts for running Tractfinder and generating custom tract atlases are available at: https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 2, 28 September 2026
- Funding: added National Institute for Health and Care Research; CHILDREN with CANCER UK: 23-353; Great Ormond Street Institute of Child Health
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 6 authors, 5 keywords, 18 references.
Cite
This paper
Kanel, D., Young, F., Seunarine, K. K., Clark, C. A., Aquilina, K., & Clayden, J. D. (2026). A rapid streamline-based extension of Tractfinder for white matter tract segmentation. Frontiers in neuroimaging, 5, 1873040. https://
BibTeX
@article{kanel2026rapid,
author = {Kanel, Dana and Young, Fiona and Seunarine, Kiran K and Clark, Chris A and Aquilina, Kristian and Clayden, Jonathan D},
title = {{A rapid streamline-based extension of Tractfinder for white matter tract segmentation}},
journal = {Frontiers in neuroimaging},
year = {2026},
month = jul,
volume = {5},
pages = {1873040},
publisher = {Frontiers Media SA},
issn = {2813-1193},
doi = {10.3389/
url = {https://
pmid = {42519527},
pmcid = {PMC13381243}
}
RIS
TY - JOUR
AU - Kanel, Dana
AU - Young, Fiona
AU - Seunarine, Kiran K
AU - Clark, Chris A
AU - Aquilina, Kristian
AU - Clayden, Jonathan D
TI - A rapid streamline-based extension of Tractfinder for white matter tract segmentation
T2 - Frontiers in neuroimaging
J2 - Front Neuroimaging
PY - 2026
DA - 2026/
VL - 5
SP - 1873040
SN - 2813-1193
PB - Frontiers Media SA
DO - 10.3389/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.3389/
"type": "article-journal",
"title": "A rapid streamline-based extension of Tractfinder for white matter tract segmentation",
"container-title": "Frontiers in neuroimaging",
"author": [
{
"family": "Kanel",
"given": "Dana"
},
{
"family": "Young",
"given": "Fiona"
},
{
"family": "Seunarine",
"given": "Kiran K"
},
{
"family": "Clark",
"given": "Chris A"
},
{
"family": "Aquilina",
"given": "Kristian"
},
{
"family": "Clayden",
"given": "Jonathan D"
}
],
"container-title-short":
"volume": "5",
"page": "1873040",
"DOI": "10.3389/
"PMID": "42519527",
"PMCID": "PMC13381243",
"ISSN": "2813-1193",
"publisher": "Frontiers Media SA",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
6
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1002/hbm.70491 [code]
- Multi-Centre Reproducibility of DTI and NODDI in White Matter Tracts Segmented Using TractFinder Across Three MRI Scanners of the Same Model.Journal: Human brain mappingIn common: MRtrix3, methods / tools, structural MRI / diffusion, 7 references
- [2] doi:10.1162/imag.a.1325 [code]
- Decoding everyday levels of musical training from subcortical white-matter architecture.Journal: Imaging neuroscience (Cambridge, Mass.)In common: MRtrix3, SciPy, NumPy, structural MRI / diffusion, 6 references
- [3] doi:10.1162/imag.a.1153 [code]
- TRAMFIX: TRavelling Across Melbourne for FIXel-based analysis (a reproducibility and reliability study).Journal: Imaging neuroscience (Cambridge, Mass.)In common: MRtrix3, SciPy, NumPy, methods / tools, structural MRI / diffusion, 5 references
- [4] doi:10.1162/imag.a.1303
- Composite reaction time and variability correlate with whole-brain white-matter characteristics.Journal: Imaging neuroscience (Cambridge, Mass.)In common: structural MRI / diffusion, 9 references
- [5] doi:10.1038/s41586-026-10631-3 [code]
- A prognostic human brain network for diffuse midline glioma.Journal: NatureIn common: SciPy, NumPy, other condition, 3 references, author Kristian Aquilina
- [6] doi:10.1093/cercor/bhag132 [code]
- Spatiotemporal white-matter development across early childhood.Journal: Cerebral cortex (New York, N.Y. : 1991)In common: MRtrix3, scikit-image, NumPy, structural MRI / diffusion, 4 references
- [7] doi:10.1186/s12916-026-04770-7 [code]
- Impairment of brain short association fibers across clinical stages in amyotrophic lateral sclerosis: a new biomarker mirroring disease progression.Journal: BMC medicineIn common: scikit-image, SciPy, NumPy, structural MRI / diffusion, other condition, 5 references
- [8] doi:10.1002/mrm.70336 [code]
- Offline Reconstruction of Diffusion MRI Acquisitions for Comparison Between Complex PCA-Based and AI-Based Denoising.Journal: Magnetic resonance in medicineIn common: MRtrix3, SciPy, NumPy, methods / tools, structural MRI / diffusion, 4 references
- [9] doi:10.1162/imag.a.1183 [code]
- Learning-based segmentation of diffusion-weighted MR images with arbitrary &
lt;i& gt;q& lt;/ i& gt;-space samplings. Journal: Imaging neuroscience (Cambridge, Mass.)In common: scikit-image, SciPy, NumPy, methods / tools, structural MRI / diffusion, 5 references - [10] doi:10.1038/s41467-026-71918-7 [code]
- Developmental disinhibition gates language lateralization in childhood.Journal: Nature communicationsIn common: MRtrix3, SciPy, NumPy, 5 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 2 repositories of the authors' code, each at its verified commit and with its license, 12 scripts, and 0 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:566e306b6e19ba90…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
