OSCR

A data-driven framework linking the connectome to spatial gene expression gradients inspired by chemoaffinity theory.

Code ↔ Paper

2 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 2 matches
  1. [1] § Results › Reconstructing Connectome Structure Using Wiring PI. ↔ src/classes/ReconstructionResults.m, lines 1–20 · score 0.65 · ROC curve, binary connection matrices, FPR, TPR, predictive, thresholds
  2. [2] § Results › Comparison of Globally and Locally Randomized Neural Connection Patterns. ↔ src/classes/RandomConnectomeTestVisualizer.m, lines 80–122 · score 0.56 · globally randomized model, locally randomized model, correlation coefficients, components, connection

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

MATLAB · 229 lines · 8.8 KB · MIT · 1 match

  1. classdef ReconstructionResults
  2. % ReconstructionResults
  3. % Computes connection reconstruction accuracy using wiring PI.
  4. properties
  5. Parameters ReconstructionParameters
  6. PIDistanceMatrix % Matrix of |PIs(xs) - PIt(xt)| differences
  7. Thresholds % Threshold values used
  8. TPR % True positive rate per threshold
  9. FPR % False positive rate per threshold
  10. Precision % Precision per threshold
  11. Recall % Recall per threshold (same as TPR)
  12. AUC_ROC % Area under ROC curve
  13. AUC_PR % Area under PR curve
  14. ROCPoints % [FPR, TPR] pairs
  15. PRPoints % [Recall, Precision] pairs
  16. PredictedMatrices % Cell array of predicted binary connection matrices per threshold (optional)
  17. end
  18. methods
  19. function obj = ReconstructionResults(reconstructionParameters)
  20. arguments
  21. reconstructionParameters ReconstructionParameters
  22. end
  23. obj.Parameters = reconstructionParameters;
  24. end
  25. function obj = compute(obj,wiringPIPairs,trueConnMat,domainMask,options)
  26. arguments
  27. obj ReconstructionResults
  28. wiringPIPairs WiringPIPairs
  29. trueConnMat (:,:) logical
  30. domainMask (:,:) logical
  31. options.StoreMatrixTag (1,1) logical = 0;
  32. options.ArbitralPIDistanceMatrix = [];
  33. end
  34. dimPI = obj.Parameters.DimPI;
  35. thresholds = obj.Parameters.getThresholds();
  36. if ~isempty(options.ArbitralPIDistanceMatrix)
  37. obj.PIDistanceMatrix = options.ArbitralPIDistanceMatrix;
  38. else
  39. sourcePI = wiringPIPairs.WiringPISource;
  40. targetPI = wiringPIPairs.WiringPITarget;
  41. obj.PIDistanceMatrix = obj.computePIDistanceMatrix(sourcePI, targetPI, dimPI);
  42. end
  43. [TPRs, FPRs, Precisions, Recalls, predMats] = obj.computeROC(obj.PIDistanceMatrix, thresholds, trueConnMat, domainMask);
  44. obj.TPR = TPRs;
  45. obj.FPR = FPRs;
  46. obj.Precision = Precisions;
  47. obj.Recall = Recalls;
  48. obj.Thresholds = thresholds;
  49. % ROC
  50. [auc_ROC, FPRSorted, TPRSorted] = obj.computeAUC(FPRs,TPRs);
  51. obj.AUC_ROC = auc_ROC;
  52. obj.ROCPoints = [FPRSorted, TPRSorted];
  53. % Precision-Recall
  54. [auc_PR, RecallSorted, PrecisionSorted] = obj.computeAUC(Recalls,Precisions);
  55. obj.AUC_PR = auc_PR;
  56. obj.PRPoints = [RecallSorted, PrecisionSorted];
  57. % optional: save predicted matrix
  58. if options.StoreMatrixTag
  59. obj.PredictedMatrices = predMats;
  60. else
  61. obj.PredictedMatrices = {};
  62. end
  63. end
  64. function hAx = plotROC(obj, options)
  65. arguments
  66. obj ReconstructionResults
  67. options.ParentAxes = [];
  68. options.PlotThresholds = [];
  69. options.PlotColor = [0 0.4470 0.7410];
  70. options.LineWidth = 1;
  71. options.LineStyle = "-";
  72. options.ScatterMarker = ".";
  73. options.ScatterColor = [0.8500 0.3250 0.0980];
  74. options.ScatterSize = 24;
  75. options.TitleOff = false;
  76. options.ReturnAx = 0;
  77. end
  78. % Get axes
  79. hAx = getOrCreateAxes(options.ParentAxes);
  80. % plot ROC
  81. ax = plot(hAx,obj.FPR, obj.TPR, 'Color',options.PlotColor,'LineStyle',options.LineStyle, ...
  82. 'LineWidth',options.LineWidth,'Marker',"none");
  83. xlabel(hAx, 'FPR');
  84. ylabel(hAx, 'TPR');
  85. if options.TitleOff == false
  86. title(hAx, sprintf('ROC Curve (AUC = %.3f)', obj.AUC_ROC));
  87. end
  88. box on
  89. axis square
  90. xlim([0,1])
  91. ylim([0,1])
  92. xticks([0,0.5,1])
  93. yticks([0,0.5,1])
  94. if ~isempty(options.PlotThresholds)
  95. thresholdIndices = obj.getThresholdIndices(options.PlotThresholds);
  96. plotFPR = obj.FPR(thresholdIndices);
  97. plotTPR = obj.TPR(thresholdIndices);
  98. hold on
  99. scatter(hAx,plotFPR,plotTPR,options.ScatterSize,options.ScatterColor,'filled');
  100. end
  101. if options.ReturnAx == 1
  102. hAx = ax;
  103. end
  104. end
  105. function plotPR(obj, options)
  106. arguments
  107. obj ReconstructionResults
  108. options.ParentAxes = [];
  109. options.PlotThresholds = [];
  110. options.PlotColor = [0 0.4470 0.7410];
  111. options.LineWidth = 1;
  112. options.LineStyle = "-";
  113. options.ScatterMarker = ".";
  114. options.ScatterColor = [0.8500 0.3250 0.0980];
  115. options.ScatterSize = 24;
  116. end
  117. % Get axes
  118. hAx = getOrCreateAxes(options.ParentAxes);
  119. % plot ROC
  120. plot(hAx,obj.Recall, obj.Precision, 'Color',options.PlotColor,'LineStyle',options.LineStyle, ...
  121. 'LineWidth',options.LineWidth,'Marker',"none");
  122. xlabel(hAx, 'Recall');
  123. ylabel(hAx, 'Precision');
  124. title(hAx, sprintf('ROC Curve (AUC = %.3f)', obj.AUC_ROC));
  125. box on
  126. axis square
  127. xlim([0,1])
  128. ylim([0,1])
  129. xticks([0,0.5,1])
  130. yticks([0,0.5,1])
  131. if ~isempty(options.PlotThresholds)
  132. thresholdIndices = obj.getThresholdIndices(options.PlotThresholds);
  133. plotRecall = obj.Recall(thresholdIndices);
  134. plotPrecision = obj.Precision(thresholdIndices);
  135. hold on
  136. scatter(hAx,plotRecall,plotPrecision,options.ScatterSize,options.ScatterColor,'filled');
  137. end
  138. end
  139. function threshholdIndices = getThresholdIndices(obj,threshholdsList)
  140. arguments
  141. obj ReconstructionResults
  142. threshholdsList
  143. end
  144. nThreshold = numel(threshholdsList);
  145. threshholdIndices = zeros(size(threshholdsList));
  146. for n = 1:nThreshold
  147. id = find(obj.Thresholds == threshholdsList(n));
  148. if isempty(id)
  149. error("the selected threshold was not found")
  150. end
  151. threshholdIndices(n) = id;
  152. end
  153. end
  154. end
  155. methods (Static)
  156. function diffMatrix = computePIDistanceMatrix(sourcePI, targetPI, D)
  157. diffMatrix = zeros(height(sourcePI),height(targetPI));
  158. for d = 1:D
  159. diffMatrix = diffMatrix + abs(sourcePI(:, d) - targetPI(:, d)');
  160. end
  161. diffMatrix = diffMatrix / max(diffMatrix,[],'all');
  162. end
  163. function [TPRs, FPRs, Precisions, Recalls, predMats] = computeROC(piDiffMatrix, thresholds, trueConnMatrix, domainMask)
  164. arguments
  165. piDiffMatrix (:,:) double
  166. thresholds (:,1) double
  167. trueConnMatrix (:,:) logical
  168. domainMask (:,:) logical
  169. end
  170. trueFlat = trueConnMatrix(domainMask);
  171. numThresholds = numel(thresholds);
  172. TPRs = zeros(1, numThresholds);
  173. FPRs = zeros(1, numThresholds);
  174. Precisions = zeros(1, numThresholds);
  175. Recalls = zeros(1, numThresholds);
  176. predMats = cell(1, numThresholds);
  177. for i = 1:numThresholds
  178. th = thresholds(i);
  179. predMatrix = piDiffMatrix <= th;
  180. predFlat = predMatrix(domainMask);
  181. TP = sum(predFlat & trueFlat);
  182. FP = sum(predFlat & ~trueFlat);
  183. FN = sum(~predFlat & trueFlat);
  184. TN = sum(~predFlat & ~trueFlat);
  185. TPRs(i) = TP / (TP + FN);
  186. FPRs(i) = FP / (FP + TN);
  187. if TP + FP == 0
  188. eps = 0.001;
  189. else
  190. eps = 0;
  191. end
  192. Precisions(i) = TP / (TP + FP + eps); % eps to avoid division by zero
  193. Recalls(i) = TPRs(i);
  194. predMats{i} = predMatrix .* domainMask;
  195. end
  196. end
  197. function [auc, xSorted, ySorted] = computeAUC(x, y)
  198. [xSorted, idx] = sort(x);
  199. ySorted = y(idx);
  200. % Ensure left end (0)
  201. if xSorted(1) > 0
  202. xSorted = [0, xSorted];
  203. ySorted = [ySorted(1), ySorted];
  204. end
  205. % Ensure right end (1)
  206. if xSorted(end) < 1
  207. xSorted = [xSorted, 1];
  208. ySorted = [ySorted, ySorted(end)];
  209. end
  210. auc = trapz(xSorted, ySorted);
  211. end
  212. end
  213. end

ReconstructionResults.m at commit 3337b9b, under MIT · at the source

Overview

Authors: Jigen Koike1,2, Ken Nakae3,4, Riichiro Hira5, Yuichiro Yada2, Honda Naoki1,2,4,6
  1. Laboratory of Data-driven Biology, Graduate School of Integrated Sciences for Life, Hiroshima University, Higashihiroshima 739-8526, Japan
  2. Laboratory of Data-driven Biology, Nagoya University Graduate School of Medicine, Nagoya 466-8550, Japan
  3. Digital Twin Lab, Graduate School of Engineering, University of Fukui, Fukui 910-8507, Japan
  4. The Exploratory Research Center on Life and Living Systems (ExCELLS), National Institutes of Natural Sciences, Okazaki 444-8787, Japan
  5. Department of Physiology and Cell Biology, Graduate School of Medical and Dental Sciences, Institute of Science Tokyo, Tokyo 113-8519, Japan
  6. Center for One Medicine Innovative Translational Research (COMIT), Nagoya University, Nagoya 466-8550, Japan
Dates: received 24 June 2025; accepted 13 January 2026; published online 3 March 2026; in print 10 March 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1073/pnas.2516572123 · PMID 41774789 · PMCID PMC12974521 · OpenAlex W7133307816
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: genetics / omics (modality), mouse (organism), computational (subfield)
Keywords: connectome, transcriptome, chemoaffinity theory, neural wiring, canonical correlation analysis (CCA)
MeSH: Brain*, Connectome*, Animals, Axons, Mice, Spatial Transcriptomics, Transcriptome (* major topic)
Journal subjects: Biological Sciences, Neuroscience
Topic: Single-cell and spatial transcriptomics (Molecular Biology, Biochemistry, Genetics and Molecular Biology), according to OpenAlex
Citations: not cited yet (Europe PMC); 96 references in the paper

Abstract

Understanding how brain-wide neural circuits are genetically wired remains a fundamental question in neuroscience. While Sperry’s chemoaffinity theory [Sperry, Proc. Natl. Acad. Sci. U.S.A. 50, 703–710 (1963)] posits that molecular gradients provide positional cues for axonal projections, its application has been largely limited to localized sensory systems. Here, we present SPERRFY (Spatial Positional Encoding for Reconstructing Rules of axonal Fiber connectivitY), a data-driven framework that operationalizes Sperry’s theory at the whole-brain scale. By integrating connectomic data with spatial transcriptomic profiles from the Allen Mouse Brain Atlas, SPERRFY infers latent positional gradients that underlie axonal wiring. Using canonical correlation analysis (CCA), we extract top gradient pairs that align with observed neural connectivity patterns, capturing both global (interregional) and local (intraregional) organizational principles. Connectivity reconstruction based on these gradients shows strong predictive performance, and permutation-based null models confirm the biological relevance of the inferred structures. Furthermore, SPERRFY can screen for candidate genes that may contribute to positional wiring information, providing molecular insight into the developmental logic of brain-wide circuitry. Our results extend Sperry’s foundational theory beyond the sensory domain, offering a unified, data-driven framework for understanding genetically encoded connectivity across the entire brain.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above, with 2 matches between paragraphs and lines of code.

JigenKoike/SPERRFY

License: MIT
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 3337b9b9aedf68476f906cefdd7e8ea7479b93b5, 18 November 2025
Languages: MATLAB (70), Jupyter (3)
Size: 857 files, 73 scripts
Software Heritage: not archived
Found in: the text, “Materials and Methods”
Holds: README, license file, 8 notebooks
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
75 files

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:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 73 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

No dataset and no data link were found in the paper.

Data, Materials, and Software Availability

Source code for analysis data have been deposited in GitHub (https://github.com/JigenKoike/SPERRFY). Study data are included in the article and/or SI Appendix (http://www.pnas.org/lookup/doi/10.1073/pnas.2516572123#supplementary-materials). Previously published data were used for this work (24, 32, 33).

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 1, 30 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 5 keywords, 7 MeSH terms, 4 funders, 94 references.

Cite

This paper

Koike, J., Nakae, K., Hira, R., Yada, Y., & Naoki, H. (2026). A data-driven framework linking the connectome to spatial gene expression gradients inspired by chemoaffinity theory. Proceedings of the National Academy of Sciences of the United States of America, 123(10), e2516572123. https://doi.org/10.1073/pnas.2516572123

BibTeX

@article{koike2026data,
author = {Koike, Jigen and Nakae, Ken and Hira, Riichiro and Yada, Yuichiro and Naoki, Honda},
title = {{A data-driven framework linking the connectome to spatial gene expression gradients inspired by chemoaffinity theory}},
journal = {Proceedings of the National Academy of Sciences of the United States of America},
year = {2026},
month = mar,
volume = {123},
number = {10},
pages = {e2516572123},
publisher = {National Academy of Sciences},
issn = {0027-8424},
doi = {10.1073/pnas.2516572123},
url = {https://doi.org/10.1073/pnas.2516572123},
pmid = {41774789},
pmcid = {PMC12974521}
}

RIS

TY - JOUR
AU - Koike, Jigen
AU - Nakae, Ken
AU - Hira, Riichiro
AU - Yada, Yuichiro
AU - Naoki, Honda
TI - A data-driven framework linking the connectome to spatial gene expression gradients inspired by chemoaffinity theory
T2 - Proceedings of the National Academy of Sciences of the United States of America
J2 - Proc Natl Acad Sci U S A
PY - 2026
DA - 2026/03/03
VL - 123
IS - 10
SP - e2516572123
SN - 0027-8424
PB - National Academy of Sciences
DO - 10.1073/pnas.2516572123
UR - https://doi.org/10.1073/pnas.2516572123
LA - en
ER -

CSL-JSON

{
"id": "10.1073/pnas.2516572123",
"type": "article-journal",
"title": "A data-driven framework linking the connectome to spatial gene expression gradients inspired by chemoaffinity theory",
"container-title": "Proceedings of the National Academy of Sciences of the United States of America",
"author": [
{
"family": "Koike",
"given": "Jigen"
},
{
"family": "Nakae",
"given": "Ken"
},
{
"family": "Hira",
"given": "Riichiro"
},
{
"family": "Yada",
"given": "Yuichiro"
},
{
"family": "Naoki",
"given": "Honda"
}
],
"container-title-short": "Proc Natl Acad Sci U S A",
"volume": "123",
"issue": "10",
"page": "e2516572123",
"DOI": "10.1073/pnas.2516572123",
"PMID": "41774789",
"PMCID": "PMC12974521",
"ISSN": "0027-8424",
"publisher": "National Academy of Sciences",
"URL": "https://doi.org/10.1073/pnas.2516572123",
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
3
]
]
}
}

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.1038/s42003-026-10276-y [code]
The cellular correlates and adolescent reorganisation of cortical myelination networks in the common marmoset.
Journal: Communications biology
In common: BrainSMASH, Image Processing Toolbox, Statistics and Machine Learning Toolbox, 2 other tools, 4 references
[2] doi:10.7554/elife.106081 [code]
Heritability of movie-evoked brain activity and connectivity.
Journal: eLife
In common: BrainSMASH, fdr_bh (Benjamini-Hochberg FDR), Image Processing Toolbox, 3 other tools, genetics / omics, 2 references
[3] doi:10.1038/s41593-026-02359-0 [code]
The cross-site reproducibility of MRI morphometric phenotypes in psychiatric disorders.
Journal: Nature neuroscience
In common: BrainSMASH, fdr_bh (Benjamini-Hochberg FDR), Image Processing Toolbox, 3 other tools, 2 references
[4] doi:10.1371/journal.pcbi.1014673 [code]
Modeling the influences of non-local connectomic projections on geometrically constrained cortical dynamics.
Journal: PLoS computational biology
In common: Statistics and Machine Learning Toolbox, computational, 6 references
[5] doi:10.1038/s41593-026-02376-z [code]
A framework for comparative analysis of human and mouse cortical neuron dendrites in corresponding brain regions.
Journal: Nature neuroscience
In common: Image Processing Toolbox, Statistics and Machine Learning Toolbox, SciPy, 1 other tool, mouse, 4 references
[6] doi:10.1162/imag.a.1342 [code]
Hyperpolarized &lt;sup&gt;13&lt;/sup&gt;C-bicarbonate production correlates with excitatory neuron distribution in the human brain.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: BrainSMASH, SciPy, NumPy, genetics / omics, 3 references
[7] doi:10.1038/s41398-026-04025-2 [code]
Brain energetic landscapes shape state dysregulation in major depressive disorder: a morphological network controllability perspective.
Journal: Translational psychiatry
In common: BrainSMASH, Image Processing Toolbox, Statistics and Machine Learning Toolbox, 2 other tools, 2 references
[8] doi:10.1126/sciadv.aef2894 [code]
Human cortical networks trade communication efficiency for computational reliability.
Journal: Science advances
In common: SciPy, NumPy, 5 references
[9] doi:10.1073/pnas.2519586123 [code]
Personalized functional topography-based multisite brain age prediction modeling reveals divergent neurodevelopment in major depression.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: BrainSMASH, Image Processing Toolbox, Statistics and Machine Learning Toolbox, 2 other tools, genetics / omics, 1 reference
[10] doi:10.1038/s41467-026-75959-w [code]
Charting higher-order models of brain function beyond pairwise interactions.
Journal: Nature communications
In common: fdr_bh (Benjamini-Hochberg FDR), Statistics and Machine Learning Toolbox, SciPy, 1 other tool, 3 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.

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.