OSCR

Mechanistically driven transnidal hemodynamic manipulations enhance simulated endovascular transvenous treatments for brain AVMs.

Code ↔ Paper

5 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 5 matches
  1. [1] § Methods › AVM electrical network model ↔ pseudocode.py, lines 30–93 · score 0.77 · Euclidean distance, adjacent columns, closest, horizontal, nearest, unconnected
  2. [2] § Methods › Hemodynamic simulations ↔ pseudocode.py, lines 96–143 · score 0.74 · external pressure sources, steady state, Kirchhoff, loop, EMF, laws
  3. [3] § Methods › AVM electrical network model ↔ pseudocode.py, lines 30–93 · score 0.68 · plexiform vessels, AVM nidus, fistulous, nidus architectures, interconnected, variability
  4. [4] § Methods › AVM hemodynamics ↔ pseudocode.py, lines 96–143 · score 0.60 · Hagen Poiseuille, blood flow, law, resistance, network, vasculature
  5. [5] § Methods › Simulations of TRENSH and its variations › TRENSH at different systemic arterial hypotension levels and CVPs ↔ pseudocode.py, lines 146–177 · score 0.54 · post injection, directed graph, baseline, filled, physiologically, intranidal

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 · 177 lines · 6.9 KB · no license · 5 matches

  1. """This file contains Python-style pseudocode for the brain arteriovenous malformation simulation. It is not meant to be compiled/run."""
  2. def main():
  3. for _ in range(NUM_NIDI):
  4. # Generate nidus architecture
  5. compartments = random_normal_int(3, 6)
  6. columns = random_normal_int(3, 7)
  7. nidus = create_nidus(compartments, columns)
  8. # Define feeders and drainers
  9. feeders = get_feeders(nidus)
  10. # For each occlusion scenario
  11. for occluded_feeder in [None] + feeders:
  12. nidus = apply_occlusion(nidus, occluded_feeder)
  13. # Simulate all injection scenarios
  14. for scenario in INJECTION_SCENARIOS:
  15. flows, pressures, graph = simulate(nidus, scenario)
  16. # Evaluate physiological outcomes
  17. stats = get_stats(graph)
  18. export(stats)
  19. def create_nidus(compartments: int, columns: int) -> Graph:
  20. """Generates a synthetic AVM nidus as a vascular graph.
  21. The generated architecture consists of interconnected compartments and columns
  22. of vessels, including plexiform and a central fistulous path. Intercompartmental
  23. vessels are also added to mimic anatomical variability.
  24. Args:
  25. compartments: Number of horizontal vascular compartments in the nidus.
  26. columns: Number of vertical columns (proxy for spatial progression from feeder to drainer).
  27. Returns:
  28. An undirected graph representing the AVM nidus architecture.
  29. """
  30. # Initialize an empty undirected graph with predefined feeders and drainers
  31. nidus = initialize_graph()
  32. # Create nodes in a grid of [columns × compartments]
  33. layout = create_node_layout(compartments, columns)
  34. # Add intranidal plexiform vessels between adjacent columns within each compartment
  35. for c in range(columns - 1):
  36. for k in range(compartments):
  37. A = layout[c][k] # Nodes in compartment k, column c
  38. B = layout[c + 1][k] # Nodes in same compartment, next column
  39. randomly_pair_nodes(nidus, A, B, vessel_type="plexiform")
  40. # Connect each leftmost node to its nearest arterial feeder (by Euclidean distance)
  41. for node in get_leftmost_nodes(layout):
  42. feeder = get_closest_feeder(node)
  43. add_edge(nidus, feeder, node, vessel_type="plexiform")
  44. # Connect each rightmost node to its nearest draining vein
  45. for node in get_rightmost_nodes(layout):
  46. drainer = get_closest_drainer(node)
  47. add_edge(nidus, node, drainer, vessel_type="plexiform")
  48. # Add any unconnected feeder or drainer to its closest nidus node
  49. for feeder in remaining_unconnected_feeders():
  50. nearest = get_closest_nidus_node(feeder)
  51. add_edge(nidus, feeder, nearest, vessel_type="plexiform")
  52. for drainer in remaining_unconnected_drainers():
  53. nearest = get_closest_nidus_node(drainer)
  54. add_edge(nidus, nearest, drainer, vessel_type="plexiform")
  55. # Add intercompartmental vessels
  56. for _ in range(2 * compartments * columns):
  57. src_col, src_comp = random_column_and_compartment()
  58. target_col = sample_nearby_column(src_col)
  59. target_comp = choose_different_compartment(src_comp)
  60. src_node = random.choice(layout[src_col][src_comp])
  61. target_node = random.choice(layout[target_col][target_comp])
  62. add_edge(nidus, src_node, target_node, vessel_type="plexiform")
  63. # Add a continuous intranidal fistulous path from AF2 to DV2 through the center compartment
  64. mid_comp = compartments // 2
  65. path_nodes = [choose_node(layout[c][mid_comp]) for c in range(columns)]
  66. add_edge(nidus, "AF2", path_nodes[0], vessel_type="fistulous")
  67. for i in range(len(path_nodes) - 1):
  68. add_edge(nidus, path_nodes[i], path_nodes[i + 1], vessel_type="fistulous")
  69. add_edge(nidus, path_nodes[-1], "DV2", vessel_type="fistulous")
  70. return nidus
  71. def simulate(nidus: Graph, scenario: Scenario) -> tuple[list[float], list[float], Graph]:
  72. """Solves for vessel flow and pressure under a given set of EMF inputs.
  73. Builds a system of linear equations based on Kirchhoff’s laws to model steady-state
  74. blood flow through the vascular network, then computes pressure gradients using
  75. Hagen-Poiseuille’s law. Returns a directed graph with physiological flow directions.
  76. Args:
  77. nidus: The vascular network to simulate, represented as a graph.
  78. scenario: A physiological condition defining EMFs and boundary pressures.
  79. Returns:
  80. flows: A list of computed flow values for each vessel (mL/min).
  81. pressures: Corresponding pressure drops across each vessel (mmHg).
  82. graph: A directed version of the input graph with flow and pressure attributes.
  83. """
  84. # Get list of all vessels as directed edges
  85. vessels = get_all_vessels(nidus)
  86. # Get external pressure sources (EMFs) for this scenario
  87. pressure_inputs = scenario.get_external_pressures()
  88. # Initialize a system of linear equations to solve for flow in each vessel
  89. equations = []
  90. # Add one equation per node - conservation of flow
  91. # ∑ Q_in - ∑ Q_out = 0
  92. for node in nidus.nodes:
  93. equations.append(flow_conservation_equation(node, vessels))
  94. # Add one equation per loop (cycle) - conservation of pressure
  95. # ∑ R_j Q_j = ∑ EMF_i
  96. for cycle in get_cycle_basis(nidus):
  97. equations.append(pressure_loop_equation(cycle, pressure_inputs))
  98. # Solve the linear system for flows
  99. flows = solve_linear_system(equations)
  100. # Compute pressure drop in each vessel: ΔP = R × Q
  101. pressures = []
  102. for vessel, flow in zip(vessels, flows):
  103. resistance = nidus.get_resistance(vessel)
  104. pressures.append(resistance * flow)
  105. # Build a directed graph with flow and pressure attributes
  106. graph = create_flow_graph(nidus, vessels, flows, pressures)
  107. return flows, pressures, graph
  108. def get_stats(graph: Graph) -> dict:
  109. """Extracts physiological and structural metrics from a flow simulation.
  110. Aggregates flow, pressure, and anatomical statistics across different vessel types.
  111. If an injection was performed, calculates the extent of intranidal filling.
  112. Args:
  113. graph: Directed graph output from `simulate()` with flow and pressure attributes.
  114. Returns:
  115. A dictionary of physiological and architectural metrics.
  116. """
  117. stats = dict()
  118. # Tally flow and pressure stats for each edge
  119. for edge in graph.edges():
  120. update_stats(stats, edge)
  121. # Estimate rupture risk using log-pressure scaling
  122. # risk = log(P / Pmin) / log(Pmax / Pmin)
  123. add_rupture_risk_to_stats(stats, graph)
  124. # Forward BFS from injection location within nidus
  125. reached_nodes = bfs(graph, start_from=graph.get_injection_location())
  126. # Post-injection analysis using flow directions from baseline graph
  127. reached_nodes = bfs(graph.without_injection(), start_from=reached_nodes)
  128. stats["filling"] = reached_nodes / graph.get_num_intranidal_vessels()
  129. return stats

pseudocode.py at commit 1717109, no license · at the source

Overview

  1. Division of Neuroimaging and Neurointervention, Department of Radiology, Stanford University School of Medicine, Stanford, CA USA
  2. Division of Interventional Neuroradiology, Department of Radiological Sciences, David Geffen School of Medicine at UCLA, Los Angeles, CA USA
  3. Arizona State University, Tempe, AZ USA
  4. MD Program, Weill Cornell Medicine, New York, NY USA
  5. Department of Neurosurgery, Stanford University School of Medicine, Stanford, CA USA
  6. Department of Bioengineering, Stanford University Schools of Engineering and Medicine, Stanford, CA USA
Institutions: University of California, Los Angeles (United States); Stanford Medicine (United States); Stanford University (United States); Arizona State University (United States); Weill Cornell Medicine (United States)
Journal: Communications medicine, volume 6, issue 1, article 312
Dates: received 20 May 2025; accepted 12 March 2026; published online 3 April 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s43856-026-01555-0 · PMID 41927722 · PMCID PMC13216285 · OpenAlex W7148505863
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: computational modeling (no new data) (modality), stroke (population)
Methods: Statistics, Smoothing, state filtering, decompositions
Keywords: Blood flow, Stroke
Topic: Vascular Malformations Diagnosis and Treatment (Neurology, Medicine), according to OpenAlex
Funding: National Institutes of Health (1r01hl052352-01a1)
Citations: not cited yet (Europe PMC); 58 references in the paper

Abstract

Background: Treatment strategies for plexiform brain arteriovenous malformations (bAVMs) have evolved to include minimally invasive transvenous embolization. Since its conceptualization as “transvenous retrograde nidus sclerotherapy under controlled hypotension” (TRENSH), this approach has shown curative potential for highly selected small bAVMs when using adhesive embolic agents. Further innovation is required to extend safety and efficacy to larger, more complex bAVMs. We conceived and evaluated a set of theoretical hemodynamic manipulations within the venous outflow of bAVMs designed to augment nidus retropermeation during simulated TRENSH.

Methods: We used two complementary experimental platforms. First, we developed a computational bAVM model to simulate hemodynamic variations during TRENSH, including: (1) degrees of controlled arterial hypotension; (2) effects of temporary balloon occlusion of arterial feeders; (3) differing draining vein (DV) retrograde injection pressures; (4) use of alternative DVs for retroinjection; (5) elevation of central venous pressure (CVP) during injection; and (6) cardiac-cycle–synchronized diastolic retroinjection. Second, we used a carotid–jugular fistula rete mirabile AVM model in six pigs to evaluate combinations of induced hypotension and venous hypertension, simulating raised CVP to enhance retropermeation during TRENSH-like maneuvers.

Results: Here we show that CVP elevation, retrograde injection through dominant DVs, maximally safe transvenous injection pressures, and a distinct strategy of synchronized diastolic-phase DV retroinjection each increase nidus retropermeation in experimental simulations.

Conclusions: These theoretical TRENSH-derived venous manipulation strategies may offer adjunctive benefit for future transvenous treatment of large bAVMs. The findings provide a conceptual foundation for further validation studies to determine their translational feasibility and potential incorporation into advanced clinical TRENSH paradigms.

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

kellenvu/massoud-avm

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: 171710945771b041c2eeebc36a92553615908510, 6 April 2025
Languages: Python (1)
Size: 2 files, 1 script
Software Heritage: not archived
Found in: “Code availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
2 files

Code availability

The analysis code for algorithms of theoretical AVM model simulations is available at: https://github.com/kellenvu/massoud-avm.

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

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;
  • 1 script, each with its path and the digest of its content;
  • 5 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

Data availability

The computational model datasets needed to reproduce the simulation figures are available in Figshare (10.6084/m9.figshare.29143385). The raw outputs from each individual computational simulation are available from the corresponding author upon reasonable request. The data for the pig AVM model simulations are as presented in the “Results” section and the Supplementary Information.

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 Institutes of Health: 1r01hl052352-01a1

Version 1, 28 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 2 keywords, 57 references.

Cite

This paper

Massoud, T. F., Vu, B. C., Vu, K. V., Heit, J. J., & Dhawan, S. S. (2026). Mechanistically driven transnidal hemodynamic manipulations enhance simulated endovascular transvenous treatments for brain AVMs. Communications medicine, 6(1), 312. https://doi.org/10.1038/s43856-026-01555-0

BibTeX

@article{massoud2026mechanistically,
author = {Massoud, Tarik F and Vu, Bryce C and Vu, Kellen Vo and Heit, Jeremy J and Dhawan, Siddhant Suri},
title = {{Mechanistically driven transnidal hemodynamic manipulations enhance simulated endovascular transvenous treatments for brain AVMs}},
journal = {Communications medicine},
year = {2026},
month = apr,
volume = {6},
number = {1},
pages = {312},
publisher = {Nature Publishing Group},
issn = {2730-664X},
doi = {10.1038/s43856-026-01555-0},
url = {https://doi.org/10.1038/s43856-026-01555-0},
pmid = {41927722},
pmcid = {PMC13216285}
}

RIS

TY - JOUR
AU - Massoud, Tarik F
AU - Vu, Bryce C
AU - Vu, Kellen Vo
AU - Heit, Jeremy J
AU - Dhawan, Siddhant Suri
TI - Mechanistically driven transnidal hemodynamic manipulations enhance simulated endovascular transvenous treatments for brain AVMs
T2 - Communications medicine
J2 - Commun Med (Lond)
PY - 2026
DA - 2026/04/03
VL - 6
IS - 1
SP - 312
SN - 2730-664X
PB - Nature Publishing Group
DO - 10.1038/s43856-026-01555-0
UR - https://doi.org/10.1038/s43856-026-01555-0
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s43856-026-01555-0",
"type": "article-journal",
"title": "Mechanistically driven transnidal hemodynamic manipulations enhance simulated endovascular transvenous treatments for brain AVMs",
"container-title": "Communications medicine",
"author": [
{
"family": "Massoud",
"given": "Tarik F"
},
{
"family": "Vu",
"given": "Bryce C"
},
{
"family": "Vu",
"given": "Kellen Vo"
},
{
"family": "Heit",
"given": "Jeremy J"
},
{
"family": "Dhawan",
"given": "Siddhant Suri"
}
],
"container-title-short": "Commun Med (Lond)",
"volume": "6",
"issue": "1",
"page": "312",
"DOI": "10.1038/s43856-026-01555-0",
"PMID": "41927722",
"PMCID": "PMC13216285",
"ISSN": "2730-664X",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s43856-026-01555-0",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
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.3390/biomedicines14081829
Transvenous Embolisation-Based Strategies for Brain Arteriovenous Malformations: Systematic Review and Meta-Analysis.
Journal: Biomedicines
In common: stroke, 5 references
[2] doi:10.1111/ejn.70604 [code]
The Role of the Glutamate-Glutamine Cycle in Synaptic Transmission During Ischemia and Recovery.
Journal: The European journal of neuroscience
In common: computational modeling (no new data), stroke
[3] doi:10.1371/journal.pcbi.1013113 [code]
Systems biology analysis of vasodynamics in mouse cerebral arterioles during resting state and functional hyperemia.
Journal: PLoS computational biology
In common: computational modeling (no new data), stroke
[4] doi: [code]
Going deeper with morphologically detailed neural networks by simulation-based gradient propagation
Journal: Frontiers in computational neuroscience
In common: computational modeling (no new data)
[5] doi:10.1007/s00422-026-01061-5 [code]
Modeling synaptic interactions between mammalian breathing and swallowing central pattern generators.
Journal: Biological cybernetics
In common: computational modeling (no new data)
[6] doi:10.1371/journal.pcbi.1014752 [code]
Hierarchical feature binding in a spiking neural network model of the primate ventral visual pathway.
Journal: PLoS computational biology
In common: computational modeling (no new data)
[7] doi:10.1371/journal.pcbi.1014701 [code]
Computer models predict differential dendritic vulnerability with ischemia and spreading depression.
Journal: PLoS computational biology
In common: computational modeling (no new data)
[8] doi:10.1093/nc/niag046 [code]
Awareness of being: a computational neurophenomenological model of mindfulness, mind-wandering, and meta-attentional control.
Journal: Neuroscience of consciousness
In common: computational modeling (no new data)
[9] doi:10.1126/sciadv.aef2894 [code]
Human cortical networks trade communication efficiency for computational reliability.
Journal: Science advances
In common: computational modeling (no new data)
[10] doi:10.1371/journal.pcbi.1014730 [code]
A unified model of short- and long-term plasticity: Effects on network connectivity and information capacity.
Journal: PLoS computational biology
In common: computational modeling (no new data)

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.