Reconstruction of Axonal Projections of Single Neurons Using PointTree.
The 2 matches · 1 of them tie a paragraph to a whole file, not to given lines: a weak match, whose lines are not tinted
- [1] § Procedure ↔ BigImgPredict_bak.py, the whole file · a weak match · score 0.59 · imgPath, modelPath, savePath, segmentation
- [2] § Procedure ↔ BigImgPredict.py, lines 15–68 · score 0.58 · imgPath, modelPath, savePath
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 · 78 lines · 3.2 KB · MIT · 1 match
- '''大图预测'''
- import json
- import os
- import shutil
- os.environ['KMP_DUPLICATE_LIB_OK']='True'
- import time, torch
- import numpy as np
- import tifffile, os
- from os.path import join
- from ModelPredictPy import ModelPredictClass
- if __name__ == '__main__':
- imgPath = r"D:\qxz\MyProject\KKMarkCellBody\Code\BrainSegNewQxz\SegmentProblem\DataSet\img"
- modelPath = r'./ModelSave/exp006/supernet_00010.pth'
- # testTxt = r'test.txt'
- savePath = r'D:\qxz\MyProject\KKMarkCellBody\Code\BrainSegNewQxz\SegmentProblem\DataSet\mask'
- bigImgSize = np.array([512, 512, 512], dtype=np.int32)
- imgSize = np.array([128, 128, 128], dtype=np.int32)
- batchSize = 1
- fieldLen = 16
- device = torch.device('cuda:0')
- # cfgPath = join(savePath, 'info.json')
- # saveRes = join(savePath, 'result')
- # if os.path.isdir(savePath): shutil.rmtree(savePath)
- # os.makedirs(savePath)
- # if os.path.isdir(saveRes): shutil.rmtree(saveRes)
- # os.makedirs(saveRes)
- saveRes = savePath
- os.makedirs(saveRes, exist_ok=True)
- model = ModelPredictClass(modelPath, fieldLen=fieldLen, device=device) # 预测类
- # with open(join(rootPath, testTxt), 'r') as f:
- # ls = f.read().strip().split('\n')
- # imgPath = join(rootPath, 'images')
- ls = os.listdir(imgPath)
- saveInfo = []
- for name in ls:
- oriImg = tifffile.imread(join(imgPath, name))
- if oriImg.ndim != 3: continue
- # oriImg_eq = exposure.equalize_hist(oriImg, nbins=oriImg.max() - oriImg.min())
- # newImg = np.zeros_like(oriImg)
- maskBigImg = np.zeros(bigImgSize[::-1], dtype=np.uint8)
- sliceNumber = bigImgSize // imgSize
- count = 0
- newName = os.path.splitext(name)[0]
- for nz in range(sliceNumber[2]):
- for ny in range(sliceNumber[1]):
- for nx in range(sliceNumber[0]):
- s1 = time.time()
- sp = imgSize * [nx, ny, nz]
- ep = sp + imgSize
- img = oriImg[sp[2]: ep[2], sp[1]: ep[1], sp[0]: ep[0]]
- # img_eq = oriImg_eq[sp[2]: ep[2], sp[1]: ep[1], sp[0]: ep[0]]
- # img = np.array([img, img_eq], dtype=np.float32)
- # newImg[sp[2]: ep[2], sp[1]: ep[1], sp[0]: ep[0]] = img
- mask = model(img)
- maskBigImg[sp[2]: ep[2], sp[1]: ep[1], sp[0]: ep[0]] = mask
- print(count, time.time() - s1)
- count += 1
- # tifffile.imwrite(join(savePath, '%s_%s_0.tif' % (newName, str(count).zfill(5))), img)
- # tifffile.imwrite(join(savePath, '%s_%s_1.tif' % (newName, str(count).zfill(5))), mask)
- # print('%s_%s_1.tif' % (newName, str(count).zfill(5)), mask.sum())
- # break
- # break
- # break
- # tifffile.imwrite(join(savePath, '%s_0.tif' % newName), oriImg[:bigImgSize[2], :bigImgSize[1], :bigImgSize[0]])
- maskBigImg[maskBigImg < 103] = 0
- tifffile.imwrite(join(saveRes, '%s.tif' % newName), maskBigImg)
- # saveInfo.append([join(saveRes, '%s.tif' % newName), join(imgPath, name), ''])
- # with open(cfgPath, 'w') as f:
- # f.write(json.dumps(saveInfo))
BigImgPredict_bak.py at commit d85598b, under MIT · at the source
Overview
- Britton Chance Center for Biomedical Photonics, Wuhan National Laboratory for Optoelectronics, Huazhong University of Science and Technology, Wuhan, Hubei, China
- MOE Key Laboratory for Biomedical Photonics, Wuhan National Laboratory for Optoelectronics, Huazhong University of Science and Technology, Wuhan, Hubei, China
Abstract
The morphology of single-neuron axonal projections is critical for deciphering neural circuitry and information flow in the brain. Yet, manually reconstructing these complex, long-range projections from high-throughput whole-brain imaging data remains an exceptionally labor-intensive and time-consuming task. Here, we developed a points assignment-based method for axonal reconstruction, named PointTree. PointTree enables the precise identification of the individual axons from densely packed axonal population using a minimal information flow tree model to suppress the snowball effect of reconstruction errors. In this protocol, we have elaborated on how to configure the required environment for PointTree software, prepare suitable data for it, and run the software. This protocol can assist neuroscience researchers in more easily and rapidly obtaining the reconstruction results of neuronal axons.
Key features
• Optimized for mapping long-range axons that connect distant brain regions in dense or crossover scenarios.
• Enables high-fidelity (F1-score > 80%) reconstruction of hundreds of GB of large-volume imaging data.
• Compatible with LSM, fMOST, and HD-fMOST systems for diverse neuroimaging datasets.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above, with 2 matches between paragraphs and lines of code.
FateUBW0227/Seg_Net
d85598bbd0e7abe42c6c19c956eac22e78cb4594, 20 January 2026Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
26 files
- AfterMake.py, Python, 15 lines
- BigImgPredict.py, Python, 68 lines, 1 match
- BigImgPredict_bak.py, Python, 78 lines, 1 match
- BigSwcUtil.py, Python, 493 lines
- DataLoader.py, Python, 37 lines
- GenerateJson.py, Python, 34 lines
- LossPy.py, Python, 152 lines
- MaskToSwc.py, Python, 34 lines
- ModelPredictPy.py, Python, 59 lines
- MyUtil.py, Python, 44 lines
- Net.py, Python, 110 lines
- PreMakeData.py, Python, 134 lines
- Predict.py, Python, 129 lines
- Train.py, Python, 81 lines
- Util.py, Python, 800 lines
- dark_transforms.py, Python, 268 lines
- meanPR.py, Python, 17 lines
- models/
UnetModel.py , Python, 228 lines - models/
UnetModel2-old.py , Python, 315 lines - models/
UnetModel2.py , Python, 278 lines - models/
UnetModel3.py , Python, 245 lines - models/
UnetModel4.py , Python, 285 lines - models/
model.py , Python, 9 lines - test.py, Python, 16 lines
- LICENSE, License, 21 lines
- README.md, Text, 78 lines
gtreesoftware/gtree
d5dc04e9cf74b874be27de1683ef466d8cb7ae57, 13 January 2021Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
3 files
- ReorganizeSWC/
BreakAndClusterOtherSwc. , Python, 89 linespy - LICENSE, License, 21 lines
- README.md, Text, 42 lines
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;
- 25 scripts, each with its path and the digest of its content;
- 2 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- 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
Datasets cited
- zenodo:15589145, at Zenodo; found in the text, “Validation of protocol”
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 1, 30 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 5 keywords, 1 funder, 11 references.
Cite
This paper
Cai, L., Qu, X., Wang, J., Shen, Y., & Quan, T. (2026). Reconstruction of Axonal Projections of Single Neurons Using PointTree. Bio-protocol, 16(5), e5616. https://
BibTeX
@article{cai2026reconstr
author = {Cai, Lin and Qu, Xuzhong and Wang, Junwei and Shen, Yuan and Quan, Tingwei},
title = {{Reconstruction of Axonal Projections of Single Neurons Using PointTree}},
journal = {Bio-protocol},
year = {2026},
month = mar,
volume = {16},
number = {5},
pages = {e5616},
publisher = {Bio-protocol, LLC},
issn = {2331-8325},
doi = {10.21769/
url = {https://
pmid = {41847379},
pmcid = {PMC12989286}
}
RIS
TY - JOUR
AU - Cai, Lin
AU - Qu, Xuzhong
AU - Wang, Junwei
AU - Shen, Yuan
AU - Quan, Tingwei
TI - Reconstruction of Axonal Projections of Single Neurons Using PointTree
T2 - Bio-protocol
J2 - Bio Protoc
PY - 2026
DA - 2026/
VL - 16
IS - 5
SP - e5616
SN - 2331-8325
PB - Bio-protocol, LLC
DO - 10.21769/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.21769/
"type": "article-journal",
"title": "Reconstruction of Axonal Projections of Single Neurons Using PointTree",
"container-title": "Bio-protocol",
"author": [
{
"family": "Cai",
"given": "Lin"
},
{
"family": "Qu",
"given": "Xuzhong"
},
{
"family": "Wang",
"given": "Junwei"
},
{
"family": "Shen",
"given": "Yuan"
},
{
"family": "Quan",
"given": "Tingwei"
}
],
"container-title-short":
"volume": "16",
"issue": "5",
"page": "e5616",
"DOI": "10.21769/
"PMID": "41847379",
"PMCID": "PMC12989286",
"ISSN": "2331-8325",
"publisher": "Bio-protocol, LLC",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
5
]
]
}
}
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.1186/s40708-026-00298-x [code]
- SegAnyNeuron: a neural image segmentation network with strong generalization performance by modeling image intensity variation.Journal: Brain informaticsIn common: tifffile, PyTorch, SciPy, 2 other tools, 5 references
- [2] doi:10.1364/boe.605322 [code]
- Generalized plaque digitization framework for multi-dimensional mesoscopic images.Journal: Biomedical optics expressIn common: tifffile, OpenCV, scikit-image, 4 other tools, 1 reference
- [3] doi:10.1016/j.crmeth.2026.101476 [code]
- Unsupervised deep learning enables blur-free resolution enhancement in two-photon microscopy.Journal: Cell reports methodsIn common: tifffile, OpenCV, scikit-image, 4 other tools, 1 reference
- [4] doi:10.1038/s41467-026-73476-4 [code]
- Developmental molecular signatures define de novo cortico-brainstem circuit for skilled forelimb movement.Journal: Nature communicationsIn common: tifffile, OpenCV, scikit-image, 3 other tools, 1 reference
- [5] doi:10.1038/s41467-026-76956-9 [code]
- Innervated human cardiac muscle model reveals sympathetic drivers of KCNH2-associated arrhythmias.Journal: Nature communicationsIn common: tifffile, OpenCV, scikit-image, 4 other tools
- [6] doi:10.21037/qims-2026-0792 [code]
- An nnU-Net-based framework with adaptive feature representation for 3D brain tumor segmentation.Journal: Quantitative imaging in medicine and surgeryIn common: tifffile, OpenCV, scikit-image, 4 other tools
- [7] doi:10.1016/j.isci.2026.117010 [code]
- Deep learning-assisted mapping of dendritic spines using sequential 2D two-photon calcium imaging.Journal: iScienceIn common: tifffile, OpenCV, scikit-image, 4 other tools
- [8] doi:10.1371/journal.pcbi.1014571 [code]
- SynAPSeg: A novel dataset and image analysis framework for deep learning-based synapse detection and quantification.Journal: PLoS computational biologyIn common: tifffile, OpenCV, scikit-image, 4 other tools
- [9] doi:10.1371/journal.pcbi.1013441 [code]
- Large vision model framework for automated C. elegans analysis: From static morphometry to dynamic neural activity.Journal: PLoS computational biologyIn common: tifffile, OpenCV, scikit-image, 4 other tools
- [10] doi:10.3389/fnins.2026.1870124 [code]
- An end-to-end pipeline for automated fetal brain segmentation and biometry from 3D SSFP MRI.Journal: Frontiers in neuroscienceIn common: tifffile, OpenCV, scikit-image, 4 other tools
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, 25 scripts, and 2 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:7f3780925ab80225…
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.
