OSCR

Construction and simulation of a path-valued model of dendrite development.

Code ↔ Paper

4 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 4 matches
  1. [1] § Numerical simulation › Segment discretisation ↔ segment_discretisation_3D.ipynb, lines 81 to 181 · score 0.64 · internal nodes, branching events, leaf nodes, growth process, Simulating, Segment · Report a mismatch
  2. [2] § Numerical simulation › Segment discretisation › Example simulations ↔ segment_discretisation_3D.ipynb, lines 81 to 181 · score 0.64 · internal node branches, growth angles, segment discretisation, growth process, branching rate, soma · Report a mismatch
  3. [3] § Properties › Graph structure › Proof ↔ time_discretisation.ipynb, lines 105 to 219 · score 0.62 · sibling branch, parent branch, branch node, inactive, retracting · Report a mismatch
  4. [4] § Model construction › Branching process › Adding branches ↔ time_discretisation.ipynb, lines 105 to 219 · score 0.60 · branch occurs, parent branch, split, branching rate, removal, retraction · Report a mismatch

Paper

Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

Jupyter notebook · 181 lines · 6.9 KB · no license · 2 matches

  1. # %%
  2. import numpy as np
  3. import matplotlib.pyplot as plt
  4. import networkx as nx
  5. from mpl_toolkits.mplot3d import Axes3D
  6. # %%
  7. ### Setting model parameters
  8. L = 0.5 # Length scale of the system (denoted \varepsilon in paper)
  9. alpha = 1/L**2 # Leaf node activity rate
  10. beta = 2*L # Branching rate
  11. beta_soma = 0.5*L # Soma branching rate
  12. n = np.ceil(1/L).astype(int) # Number of segement added for new branches
  13. angle_noise = 0.25 # Noise in growth process (denoted \varsigma in paper)
  14. # %%
  15. ### Constructing the initial neuron
  16. # Begin with empty graph
  17. G = nx.DiGraph()
  18. # Add root node (representing the soma)
  19. G.add_node(0, pos=(0, 0, 0), theta1=0, theta2=0)
  20. ### Node attributes:
  21. # pos: 3D position of the node in space
  22. # theta1: growth angle in the xy-plane (azimuthal angle)
  23. # theta2: growth angle in the z-direction (polar angle)
  24. # If other features are required these should be included as additional node attributes.
  25. # Set parameters for initial branches
  26. num_branches = 3
  27. num_nodes_per_branch = np.ceil(5/L).astype(int)
  28. # Create initial branches
  29. for b in range(num_branches):
  30. for i in range(num_nodes_per_branch):
  31. index = b*num_nodes_per_branch + i
  32. if i==0:
  33. # Select random initial growth angles for each branch
  34. theta1 = np.random.uniform(0, 2*np.pi)
  35. theta2 = np.random.uniform(0, 2*np.pi)
  36. # Initial branches all emmanate from the soma (node 0)
  37. pos = G.nodes[0]['pos'] + L*np.array([np.cos(theta1)*np.cos(theta2), np.sin(theta1)*np.cos(theta2), np.sin(theta2)])
  38. else:
  39. # Subsequent nodes grow from the previous node in the branch, with some noise in the growth angles
  40. theta1 = G.nodes[index]['theta1'] + angle_noise*np.sqrt(L)*np.random.normal()
  41. theta2 = G.nodes[index]['theta2'] + angle_noise*np.sqrt(L)*np.random.normal()
  42. pos = G.nodes[index]['pos'] + L*np.array([np.cos(theta1)*np.cos(theta2), np.sin(theta1)*np.cos(theta2), np.sin(theta2)])
  43. # Add node and edges to the graph
  44. G.add_node(index + 1, pos=pos, theta1=theta1, theta2=theta2)
  45. if i == 0:
  46. G.add_edge(0, index + 1)
  47. else:
  48. G.add_edge(index, index + 1)
  49. # %%
  50. def draw_3d_graph(G, ax, node_size=10):
  51. # Get positions from spatial information in graph
  52. pos = {n: G.nodes[n]['pos'] for n in G.nodes()}
  53. # Plot nodes
  54. xs = [pos[n][0] for n in G.nodes()]
  55. ys = [pos[n][1] for n in G.nodes()]
  56. zs = [pos[n][2] for n in G.nodes()]
  57. ax.scatter(xs, ys, zs, s=node_size, color='black')
  58. # Plot edges
  59. for u, v in G.edges():
  60. x = [pos[u][0], pos[v][0]]
  61. y = [pos[u][1], pos[v][1]]
  62. z = [pos[u][2], pos[v][2]]
  63. ax.plot(x, y, z, color='black')
  64. # Add larger node for the soma
  65. ax.scatter([0], [0], [0], s=100, color='black')
  66. # %%
  67. T = 32 # Total simulation time
  68. t = 0 # Initialize time
  69. print_every = 10 # How often to plot the graph
  70. last_print = 0 # Time of last plot (initially set to 0)
  71. # Set up 2x2 grid of 3D plots to show growth over time
  72. fig, ax = plt.subplots(2, 2, figsize=(8,8),sharex=True, sharey=True, subplot_kw={'projection': '3d'})
  73. axs_order = [ax[0,0], ax[0,1], ax[1,0], ax[1,1]]
  74. axs_id = 0
  75. # Plot initial conditions
  76. draw_3d_graph(G, axs_order[0], node_size=1)
  77. axs_order[axs_id].set_title(f'Time: {t:.2f}')
  78. last_print = t
  79. # Main simulation loop implementing Gillespie algorithm
  80. while t < T:
  81. ### Calculate event rates
  82. # Growth/retraction on leaf nodes
  83. leaf_nodes = [n for n in G.nodes if G.out_degree(n) == 0]
  84. rate_leaf = alpha*len(leaf_nodes)
  85. # Branching from internal nodes
  86. common_nodes = [n for n in G.nodes if G.out_degree(n) == 1]
  87. total_length = L*(len(leaf_nodes) + len(common_nodes))
  88. # Adapt the following rate_branching if using a different branching rate.
  89. rate_branching = beta*len(common_nodes)/total_length if total_length > 0 else 0
  90. # Branching from soma
  91. rate_soma_branching = beta_soma
  92. # Sum rates
  93. total_rate = rate_leaf + rate_branching + rate_soma_branching
  94. if total_rate == 0:
  95. break
  96. # Determine next event time
  97. dt = np.random.exponential(1/total_rate)
  98. t += dt
  99. # Draw random number to determine event type
  100. r = np.random.rand()
  101. if r < rate_leaf/total_rate:
  102. # Extension or retraction event
  103. leaf = np.random.choice(leaf_nodes)
  104. if np.random.rand() < 0.5:
  105. # Remove the leaf node
  106. G.remove_node(leaf)
  107. else:
  108. ### Add new branch to the leaf node
  109. # Determine growth angles and position (Adapt this if using a different growth process)
  110. theta1 = G.nodes[leaf]['theta1'] + angle_noise*np.sqrt(L)*np.random.normal()
  111. theta2 = G.nodes[leaf]['theta2'] + angle_noise*np.sqrt(L)*np.random.normal()
  112. pos = G.nodes[leaf]['pos'] + L*np.array([np.cos(theta1)*np.cos(theta2), np.sin(theta1)*np.cos(theta2), np.sin(theta2)])
  113. # Add new node
  114. new_index = max(G.nodes) + 1
  115. G.add_node(new_index, pos=pos, theta1=theta1, theta2=theta2)
  116. # Connect to the graph
  117. G.add_edge(leaf, new_index)
  118. elif r < (rate_leaf + rate_branching)/total_rate:
  119. ### Branching event
  120. # Determine which node branches
  121. common_node = np.random.choice(common_nodes)
  122. for idx in range(n):
  123. # Determine growth angles and position (Adapt this if using a different growth process)
  124. theta1 = G.nodes[common_node]['theta1'] + angle_noise*np.sqrt(L)*np.random.normal() + (idx==0)*np.random.uniform(-np.pi/2, np.pi/2)
  125. theta2 = G.nodes[common_node]['theta2'] + angle_noise*np.sqrt(L)*np.random.normal()
  126. pos = G.nodes[common_node]['pos'] + L*np.array([np.cos(theta1)*np.cos(theta2), np.sin(theta1)*np.cos(theta2), np.sin(theta2)])
  127. # Add new node
  128. new_index = max(G.nodes) + 1
  129. G.add_node(new_index, pos=pos, theta1=theta1, theta2=theta2)
  130. # Connect to the graph
  131. G.add_edge(common_node, new_index)
  132. else:
  133. ### Soma branching event
  134. # Determine growth angles and position (Adapt this if using a different growth process)
  135. theta1 = np.random.uniform(0, 2*np.pi)
  136. theta2 = np.random.uniform(-np.pi/2, np.pi/2)
  137. pos = G.nodes[0]['pos'] +L*np.array([np.cos(theta1)*np.cos(theta2), np.sin(theta1)*np.cos(theta2), np.sin(theta2)])
  138. # Add new node
  139. new_index = max(G.nodes) + 1
  140. G.add_node(new_index, pos=pos, theta1=theta1, theta2=theta2)
  141. # Connect to the graph
  142. G.add_edge(0, new_index)
  143. if t >= last_print + print_every:
  144. # Update axes id so plot in next subplot
  145. axs_id += 1
  146. # Plot current graph state
  147. draw_3d_graph(G, axs_order[axs_id], node_size=1)
  148. axs_order[axs_id].set_title(f'Time: {t:.2f}')
  149. last_print = t
  150. # plt.savefig('dendrite_growth.png',bbox_inches='tight')

segment_discretisation_3D.ipynb at commit 706852b, no license · at the source

Overview

Authors: Andrew Nugent1,2, Karen M Page1,3, Alexey Zaikin1, Laura C Andreae2
ORCID iDs: Andrew Nugent
  1. Department of Mathematics, University College London, London, UK
  2. Centre for Developmental Neurobiology, King’s College London, London, UK
  3. Institute for the Physics of Living Systems (IPLS), University College London, London, UK
Institutions: King's College London (United Kingdom); University College London (United Kingdom)
Journal: Journal of mathematical biology, volume 93, issue 6, article 78
Dates: received 3 June 2026; accepted 6 November 2026; published online 18 November 2026; in print 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1007/s00285-026-02493-0 · PMID 43049959 · PMCID PMC13782033 · OpenAlex W7163345679
Open access: hybrid, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: computational modeling (no new data) (modality), human (organism), computational (subfield)
Methods: Preprocessing, Graphs, Statistics
Keywords: Neuroscience, Stochastic processes, Branching morphogenesis
MeSH: Dendrites*, Models, Neurological*, Animals, Computer Simulation, Humans, Mathematical Concepts, Nerve Net, Neurodevelopment, Stochastic Processes, Synapses (* major topic)
Topic: Stochastic processes and statistical mechanics (Mathematical Physics, Mathematics), according to OpenAlex
Funding: Leverhulme Trust (RPG-2024- 360)
Citations: not cited yet (Europe PMC); 55 references in the paper

Abstract

Neurons receive information through their dendrites. During development, when synaptic connections are forming, dendrites grow, retract, and branch. The resulting dendritic tree shapes the structure of the broader neural network. Crucially, retraction and branching make it necessary to track whole dendritic paths rather than only their endpoints. While this is handled implicitly in some existing simulations, here we construct an explicitly path-valued stochastic process for dendrite growth. Combining this with a branching process, using ideas from measure-valued branching particle systems, we show that the model produces the typical tree structures of real dendrites. To complement this analytical work, we also outline several methods for numerical simulation, including time discretisations at different temporal scales and an approximation using a dynamic graph. This provides both a more rigorous mathematical framework and more structured simulation methods for modelling dendrite development.

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 4 matches between paragraphs and lines of code.

AJNugent2/Dendrite-simulations

License: none: the authors keep all their rights
State: the link answers, verified on 21 November 2026
Evidence: files inventoried
Commit: 706852b2f11a6af4d2e2d5de2b6381663ceb236f, 12 May 2026
Languages: Jupyter (2)
Size: 3 files, 2 scripts
Software Heritage: not archived
Found in: the text, “Example simulations”
Holds: 2 notebooks
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Matplotlib (2 files), NetworkX (2 files), NumPy (2 files)
Availability: 1 check, the latest on 21 November 2026: the link answers
  • 21 November 2026: the link answers
2 files

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;
  • 2 scripts, each with its path and the digest of its content;
  • 4 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 Availability Statement

No data was used in the preparation of this manuscript.

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, 21 November 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 4 authors, 3 keywords, 10 MeSH terms, 1 funder, 32 references.

Cite

This paper

Nugent, A., Page, K. M., Zaikin, A., & Andreae, L. C. (2026). Construction and simulation of a path-valued model of dendrite development. Journal of mathematical biology, 93(6), 78. https://doi.org/10.1007/s00285-026-02493-0

BibTeX

@article{nugent2026construction,
author = {Nugent, Andrew and Page, Karen M and Zaikin, Alexey and Andreae, Laura C},
title = {{Construction and simulation of a path-valued model of dendrite development}},
journal = {Journal of mathematical biology},
year = {2026},
month = nov,
volume = {93},
number = {6},
pages = {78},
publisher = {Springer Science+Business Media},
issn = {0303-6812},
doi = {10.1007/s00285-026-02493-0},
url = {https://doi.org/10.1007/s00285-026-02493-0},
pmid = {43049959},
pmcid = {PMC13782033}
}

RIS

TY - JOUR
AU - Nugent, Andrew
AU - Page, Karen M
AU - Zaikin, Alexey
AU - Andreae, Laura C
TI - Construction and simulation of a path-valued model of dendrite development
T2 - Journal of mathematical biology
J2 - J Math Biol
PY - 2026
DA - 2026/11/18
VL - 93
IS - 6
SP - 78
SN - 0303-6812
PB - Springer Science+Business Media
DO - 10.1007/s00285-026-02493-0
UR - https://doi.org/10.1007/s00285-026-02493-0
LA - en
ER -

CSL-JSON

{
"id": "10.1007/s00285-026-02493-0",
"type": "article-journal",
"title": "Construction and simulation of a path-valued model of dendrite development",
"container-title": "Journal of mathematical biology",
"author": [
{
"family": "Nugent",
"given": "Andrew"
},
{
"family": "Page",
"given": "Karen M"
},
{
"family": "Zaikin",
"given": "Alexey"
},
{
"family": "Andreae",
"given": "Laura C"
}
],
"container-title-short": "J Math Biol",
"volume": "93",
"issue": "6",
"page": "78",
"DOI": "10.1007/s00285-026-02493-0",
"PMID": "43049959",
"PMCID": "PMC13782033",
"ISSN": "0303-6812",
"publisher": "Springer Science+Business Media",
"URL": "https://doi.org/10.1007/s00285-026-02493-0",
"language": "en",
"issued": {
"date-parts": [
[
2026,
11,
18
]
]
}
}

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.1126/sciadv.abn0080 [code]
Dynamic instability of dendrite tips generates the highly branched morphologies of sensory neurons.
Journal: Science advances
In common: 8 references
[2] doi:10.1038/s41467-025-60800-7 [code]
Neurons exploit stochastic growth to rapidly and economically build dense dendritic arbors.
Journal: Nature communications
In common: 7 references
[3] doi:10.1007/s00285-024-02144-2 [code]
Calibration of stochastic, agent-based neuron growth models with approximate Bayesian computation.
Journal: Journal of mathematical biology
In common: computational, 6 references
[4] doi:10.1007/s12021-024-09696-0 [code]
Computational Generation of Long-range Axonal Morphologies.
Journal: Neuroinformatics
In common: NetworkX, Matplotlib, NumPy, computational modeling (no new data), 4 references
[5] doi:10.3389/fninf.2023.1212384 [code]
Efficient simulation of neural development using shared memory parallelization.
Journal: Frontiers in neuroinformatics
In common: Matplotlib, NumPy, computational modeling (no new data), 5 references
[6] doi:10.1038/s41467-025-62030-3 [code]
Generating brain-wide connectome using synthetic axonal morphologies.
Journal: Nature communications
In common: NetworkX, Matplotlib, NumPy, 4 references
[7] doi:10.1371/journal.pcbi.1011267 [code]
A biologically inspired repair mechanism for neuronal reconstructions with a focus on human dendrites.
Journal: PLoS computational biology
In common: 5 references
[8] doi:10.7554/elife.87527 [code]
Dendritic growth and synaptic organization from activity-independent cues and local activity-dependent plasticity.
Journal: eLife
In common: 5 references
[9] doi:10.1007/s12021-026-09795-0 [code]
Temporal Topology Provides an Interpretable Framework for Neuronal Morphogenesis.
Journal: Neuroinformatics
In common: Matplotlib, NumPy, 4 references
[10] doi:10.1016/j.isci.2023.108222 [code]
Controlling morpho-electrophysiological variability of neurons with detailed biophysical models.
Journal: iScience
In common: NetworkX, Matplotlib, NumPy, computational, computational modeling (no new data), 2 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.

Add the badge to the code's README

OSCR: the badge of this paper

If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.

Markdown
<!-- oscr-badge:start -->
[![OSCR](https://openscicode.org/badge/doi/10.1007/s00285-026-02493-0.svg)](https://openscicode.org/badge/doi/10.1007/s00285-026-02493-0)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1007/s00285-026-02493-0.svg
   :target: https://openscicode.org/badge/doi/10.1007/s00285-026-02493-0
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1007/s00285-026-02493-0"><img src="https://openscicode.org/badge/doi/10.1007/s00285-026-02493-0.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge 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: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Report a mismatch between the code and the paper · Report a code error (signed in)

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Report a reproduction failure (signed in)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.