Mechanistically driven transnidal hemodynamic manipulations enhance simulated endovascular transvenous treatments for brain AVMs.
3 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 5 matches
- [1] § Methods › AVM electrical network model ↔ pseudocode.py, lines 30 to 93 · score 0.77 · Euclidean distance, adjacent columns, closest, horizontal, nearest, unconnected · block
oscr:b:KMXN0MM9QXBJQ-0· Report a mismatch - [2] § Methods › Hemodynamic simulations ↔ pseudocode.py, lines 96 to 143 · score 0.74 · external pressure sources, steady state, Kirchhoff, loop, EMF, laws · block
oscr:b:BGDSMW21DXETG-U· Report a mismatch - [3] § Methods › AVM electrical network model ↔ pseudocode.py, lines 30 to 93 · score 0.68 · plexiform vessels, AVM nidus, fistulous, nidus architectures, interconnected, variability · block
oscr:b:KMXN0MM9QXBJQ-0· Report a mismatch - [4] § Methods › AVM hemodynamics ↔ pseudocode.py, lines 96 to 143 · score 0.60 · Hagen Poiseuille, blood flow, law, resistance, network, vasculature · block
oscr:b:BGDSMW21DXETG-U· Report a mismatch - [5] § Methods › Simulations of TRENSH and its variations › TRENSH at different systemic arterial hypotension levels and CVPs ↔ pseudocode.py, lines 146 to 177 · score 0.54 · post injection, directed graph, baseline, filled, physiologically, intranidal · block
oscr:b:Q3B3EHAE5TEFA-Z· 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
Python · 177 lines · 6.9 KB · no license · 5 matches
- """This file contains Python-style pseudocode for the brain arteriovenous malformation simulation. It is not meant to be compiled/run."""
- def main():
- for _ in range(NUM_NIDI):
- # Generate nidus architecture
- compartments = random_normal_int(3, 6)
- columns = random_normal_int(3, 7)
- nidus = create_nidus(compartments, columns)
- # Define feeders and drainers
- feeders = get_feeders(nidus)
- # For each occlusion scenario
- for occluded_feeder in [None] + feeders:
- nidus = apply_occlusion(nidus, occluded_feeder)
- # Simulate all injection scenarios
- for scenario in INJECTION_SCENARIOS:
- flows, pressures, graph = simulate(nidus, scenario)
- # Evaluate physiological outcomes
- stats = get_stats(graph)
- export(stats)
- def create_nidus(compartments: int, columns: int) -> Graph:
- """Generates a synthetic AVM nidus as a vascular graph.
- The generated architecture consists of interconnected compartments and columns
- of vessels, including plexiform and a central fistulous path. Intercompartmental
- vessels are also added to mimic anatomical variability.
- Args:
- compartments: Number of horizontal vascular compartments in the nidus.
- columns: Number of vertical columns (proxy for spatial progression from feeder to drainer).
- Returns:
- An undirected graph representing the AVM nidus architecture.
- """
- # Initialize an empty undirected graph with predefined feeders and drainers
- nidus = initialize_graph()
- # Create nodes in a grid of [columns × compartments]
- layout = create_node_layout(compartments, columns)
- # Add intranidal plexiform vessels between adjacent columns within each compartment
- for c in range(columns - 1):
- for k in range(compartments):
- A = layout[c][k] # Nodes in compartment k, column c
- B = layout[c + 1][k] # Nodes in same compartment, next column
- randomly_pair_nodes(nidus, A, B, vessel_type="plexiform")
- # Connect each leftmost node to its nearest arterial feeder (by Euclidean distance)
- for node in get_leftmost_nodes(layout):
- feeder = get_closest_feeder(node)
- add_edge(nidus, feeder, node, vessel_type="plexiform")
- # Connect each rightmost node to its nearest draining vein
- for node in get_rightmost_nodes(layout):
- drainer = get_closest_drainer(node)
- add_edge(nidus, node, drainer, vessel_type="plexiform")
- # Add any unconnected feeder or drainer to its closest nidus node
- for feeder in remaining_unconnected_feeders():
- nearest = get_closest_nidus_node(feeder)
- add_edge(nidus, feeder, nearest, vessel_type="plexiform")
- for drainer in remaining_unconnected_drainers():
- nearest = get_closest_nidus_node(drainer)
- add_edge(nidus, nearest, drainer, vessel_type="plexiform")
- # Add intercompartmental vessels
- for _ in range(2 * compartments * columns):
- src_col, src_comp = random_column_and_compartment()
- target_col = sample_nearby_column(src_col)
- target_comp = choose_different_compartment(src_comp)
- src_node = random.choice(layout[src_col][src_comp])
- target_node = random.choice(layout[target_col][target_comp])
- add_edge(nidus, src_node, target_node, vessel_type="plexiform")
- # Add a continuous intranidal fistulous path from AF2 to DV2 through the center compartment
- mid_comp = compartments // 2
- path_nodes = [choose_node(layout[c][mid_comp]) for c in range(columns)]
- add_edge(nidus, "AF2", path_nodes[0], vessel_type="fistulous")
- for i in range(len(path_nodes) - 1):
- add_edge(nidus, path_nodes[i], path_nodes[i + 1], vessel_type="fistulous")
- add_edge(nidus, path_nodes[-1], "DV2", vessel_type="fistulous")
- return nidus
- def simulate(nidus: Graph, scenario: Scenario) -> tuple[list[float], list[float], Graph]:
- """Solves for vessel flow and pressure under a given set of EMF inputs.
- Builds a system of linear equations based on Kirchhoff’s laws to model steady-state
- blood flow through the vascular network, then computes pressure gradients using
- Hagen-Poiseuille’s law. Returns a directed graph with physiological flow directions.
- Args:
- nidus: The vascular network to simulate, represented as a graph.
- scenario: A physiological condition defining EMFs and boundary pressures.
- Returns:
- flows: A list of computed flow values for each vessel (mL/min).
- pressures: Corresponding pressure drops across each vessel (mmHg).
- graph: A directed version of the input graph with flow and pressure attributes.
- """
- # Get list of all vessels as directed edges
- vessels = get_all_vessels(nidus)
- # Get external pressure sources (EMFs) for this scenario
- pressure_inputs = scenario.get_external_pressures()
- # Initialize a system of linear equations to solve for flow in each vessel
- equations = []
- # Add one equation per node - conservation of flow
- # ∑ Q_in - ∑ Q_out = 0
- for node in nidus.nodes:
- equations.append(flow_conservation_equation(node, vessels))
- # Add one equation per loop (cycle) - conservation of pressure
- # ∑ R_j Q_j = ∑ EMF_i
- for cycle in get_cycle_basis(nidus):
- equations.append(pressure_loop_equation(cycle, pressure_inputs))
- # Solve the linear system for flows
- flows = solve_linear_system(equations)
- # Compute pressure drop in each vessel: ΔP = R × Q
- pressures = []
- for vessel, flow in zip(vessels, flows):
- resistance = nidus.get_resistance(vessel)
- pressures.append(resistance * flow)
- # Build a directed graph with flow and pressure attributes
- graph = create_flow_graph(nidus, vessels, flows, pressures)
- return flows, pressures, graph
- def get_stats(graph: Graph) -> dict:
- """Extracts physiological and structural metrics from a flow simulation.
- Aggregates flow, pressure, and anatomical statistics across different vessel types.
- If an injection was performed, calculates the extent of intranidal filling.
- Args:
- graph: Directed graph output from `simulate()` with flow and pressure attributes.
- Returns:
- A dictionary of physiological and architectural metrics.
- """
- stats = dict()
- # Tally flow and pressure stats for each edge
- for edge in graph.edges():
- update_stats(stats, edge)
- # Estimate rupture risk using log-pressure scaling
- # risk = log(P / Pmin) / log(Pmax / Pmin)
- add_rupture_risk_to_stats(stats, graph)
- # Forward BFS from injection location within nidus
- reached_nodes = bfs(graph, start_from=graph.get_injection_location())
- # Post-injection analysis using flow directions from baseline graph
- reached_nodes = bfs(graph.without_injection(), start_from=reached_nodes)
- stats["filling"] = reached_nodes / graph.get_num_intranidal_vessels()
- return stats
pseudocode.py at commit 1717109, no license · at the source
Overview
- Division of Neuroimaging and Neurointervention, Department of Radiology, Stanford University School of Medicine, Stanford, CA USA
- Division of Interventional Neuroradiology, Department of Radiological Sciences, David Geffen School of Medicine at UCLA, Los Angeles, CA USA
- Arizona State University, Tempe, AZ USA
- MD Program, Weill Cornell Medicine, New York, NY USA
- Department of Neurosurgery, Stanford University School of Medicine, Stanford, CA USA
- Department of Bioengineering, Stanford University Schools of Engineering and Medicine, Stanford, CA USA
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–synchroniz
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
171710945771b041c2eeebc36a92553615908510, 6 April 2025Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
2 files
- pseudocode.py, Python, 177 lines, 5 matches
- README.md, Text, 5 lines
Code availability
The analysis code for algorithms of theoretical AVM model simulations is available at: https://
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
- figshare:29143385, at figshare; found in “Data availability”
Data availability
The computational model datasets needed to reproduce the simulation figures are available in Figshare (10.6084/
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://
BibTeX
@article{massoud2026mech
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/
url = {https://
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/
VL - 6
IS - 1
SP - 312
SN - 2730-664X
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"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":
"volume": "6",
"issue": "1",
"page": "312",
"DOI": "10.1038/
"PMID": "41927722",
"PMCID": "PMC13216285",
"ISSN": "2730-664X",
"publisher": "Nature Publishing Group",
"URL": "https://
"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: BiomedicinesIn common: stroke, 5 references
- [2] doi:10.1038/s41598-023-42961-x [code]
- Non-inferiority of deep learning ischemic stroke segmentation on non-contrast CT within 16-hours compared to expert neuroradiologists.Journal: Scientific reportsIn common: stroke, author Jeremy J Heit
- [3] doi:10.1038/s41598-022-16219-x
- A rationally identified panel of microRNAs targets multiple oncogenic pathways to enhance chemotherapeutic effects in glioblastoma models.Journal: Scientific reportsIn common: author Tarik F Massoud
- [4] doi:10.3390/biomedicines13061451 [code]
- Functional Enrichment Analysis of Rare Mutations in Patients with Brain Arteriovenous Malformations.Journal: BiomedicinesIn common: stroke, 1 reference
- [5] doi:10.3390/diagnostics13010047
- Effect of Targeted Embolization on Seizure Outcomes in Patients with Brain Arteriovenous Malformations.Journal: Diagnostics (Basel, Switzerland)In common: stroke, 1 reference
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: 1 repository of the authors' code, each at its verified commit and with its license, 1 script, and 5 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:2dcfd0b770c7e21c…
Add the badge to the code's README
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 -->
[](https://openscicode.org/badge/doi/10.1038/s43856-026-01555-0)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s43856-026-01555-0.svg
:target: https://openscicode.org/badge/doi/10.1038/s43856-026-01555-0
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s43856-026-01555-0"><img src="https://openscicode.org/badge/doi/10.1038/s43856-026-01555-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.
