OSCR

Quantitative assessment of flow between cerebrospinal and interstitial fluid compartments in humans.

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 › Intrathecal Injections for Quantification of CSF-to-ISF Flow. ↔ ITexperiments.m, lines 14–68 · score 0.53 · tissue classes, ISF volume fraction, flow rates, subcortical, model
  2. [2] § Materials and Methods › A Model for CSF-to-ISF Inflow. ↔ ITexperiments.m, lines 14–68 · score 0.53 · tissue class, glymphatic flow, subcortical, modeling, ISF

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 · 127 lines · 4 KB · no license · 2 matches

  1. %% Code for the paper "Quantitative assessment of flow between cerebrospinal and interstitial fluid compartments in humans".
  2. %
  3. % Code-authors: Anders Wåhlin, Viktor Vigren Näslund, Anders Eklund
  4. %
  5. % gFlow is the function for estimating k1 and k2 from which CSF-to-ISF flow
  6. % rate and ISF volume fraction can be calculated.
  7. % getEstCt is a support function that calculates brain tissue concentrations given
  8. % a matrix of CSF concentrations (Nrois X time), as well as a given k1 and
  9. % k2 (or just as a function of k1 if extracellular volume fraction is fixed, using function suffix "_constantVe").
  10. %
  11. % Implementation below is all intrathecal Gd flow calculations from the paper.
  12. %% Main section
  13. clear all
  14. load dataset1.mat
  15. for pat = 1:14; %loop cases
  16. for tissueClass = 1:3 %loop tissue classes
  17. if tissueClass ==1 %Cortex, estimate ve
  18. it = dataset1(pat).it;
  19. concCSF = dataset1(pat).concCsf_Ctx;
  20. concTissue = dataset1(pat).concCtx;
  21. dt = dataset1(pat).dt;
  22. points=dataset1(pat).points;
  23. tissueVolume = dataset1(pat).volCtx
  24. k0 = zeros(1,2)
  25. fun1=@(k)ITmodel(k,it,concCSF,concTissue,dt,points); %fit the model
  26. [kest,fval,exitflag,output] = fminunc(fun1,k0);
  27. q(pat,tissueClass) = kest(1)*tissueVolume %Glymphatic flow rate
  28. ve(pat,tissueClass) = kest(1)/kest(2) %ISF volume fraction
  29. end
  30. if tissueClass ==2 %White matter, keep ve constant
  31. it = dataset1(pat).it;
  32. concCSF = dataset1(pat).concCsf_Wm;
  33. concTissue = dataset1(pat).concWm;
  34. dt = dataset1(pat).dt;
  35. points=dataset1(pat).points;
  36. tissueVolume = dataset1(pat).volWm
  37. k0 = zeros(1)
  38. fun1=@(k)ITmodel(k,it,concCSF,concTissue,dt,points,ve(pat,1)); %fit the model
  39. [kest,fval,exitflag,output] = fminunc(fun1,k0);
  40. q(pat,tissueClass) = kest(1)*tissueVolume %Glymphatic flow rate
  41. ve(pat,tissueClass) = ve(pat,1) %ISF volume fraction
  42. end
  43. if tissueClass ==3 %Subcortical, keep ve constant
  44. it = dataset1(pat).it;
  45. concCSF = dataset1(pat).concCsf_Subcor;
  46. concTissue = dataset1(pat).concSubcor;
  47. dt = dataset1(pat).dt;
  48. points=dataset1(pat).points;
  49. tissueVolume = dataset1(pat).volSubcor
  50. k0 = zeros(1)
  51. fun1=@(k)ITmodel(k,it,concCSF,concTissue,dt,points,ve(pat,1)); %fit the model
  52. [kest,fval,exitflag,output] = fminunc(fun1,k0);
  53. q(pat,tissueClass) = kest(1)*tissueVolume %Glymphatic flow rate
  54. ve(pat,tissueClass) = ve(pat,1) %ISF volume fraction
  55. end
  56. end
  57. end
  58. %% Support functions
  59. %%
  60. function estCt = getEstCt(k,it,ccsf,dt)
  61. % Estimates brain tissue concentrations provided a CSF concentrations
  62. % (Nrois X time), k1 and k2.
  63. % dt is the temporal resolution in hrs
  64. for i = 1:size(ccsf,1) %loop over ROIs
  65. estCt(i,:) = k(1)*convolution(ccsf(i,:)',exp(-k(2).*it'))*dt ;
  66. end
  67. end
  68. %%
  69. function estCt = getEstCt_constantVe(k,it,ccsf,dt,ve)
  70. % Estimates brain tissue concentrations provided a CSF concentrations
  71. % (Nrois X time), k1 and k2.
  72. % dt is the temporal resolution in hrs
  73. for i = 1:size(ccsf,1) %loop over ROIs
  74. estCt(i,:) = k(1)*convolution(ccsf(i,:)',exp(-k(1)/ve.*it'))*dt ;
  75. end
  76. end
  77. %%
  78. function sse = ITmodel(k,it,ccsf,ct,dt,points,ve)
  79. % Calculates the difference between measured (ct) and estimated brain tissue
  80. % concentrations provided CSF concentrations (ccsf), k1 and k2 (stored as a
  81. % vector k).
  82. % The vector points specifies time points where the difference is calculated, and dt is the temporal resolution in hrs
  83. switch nargin
  84. case 6 %ve estimated
  85. estCt = getEstCt(k,it,ccsf,dt);
  86. sse = sum(sum(((ct(:,points)-estCt(:,points)).^2)));
  87. case 7 %ve supplied
  88. estCt = getEstCt_constantVe(k,it,ccsf,dt,ve);
  89. sse = sum(sum(((ct(:,points)-estCt(:,points)).^2)));
  90. end
  91. end
  92. %%
  93. function c = convolution(a, b)
  94. c = conv2(a(:), b(:), 'full');
  95. c = c(1:size(a, 1));
  96. if isrow(a)
  97. c = c.';
  98. end
  99. end

ITexperiments.m at commit 12049d0, no license · at the source

Overview

Authors: Anders Wåhlin1,2,3, Sofia Behndig2,4, Johan Eriksson De Ryst5, Viktor Vigren Näslund2, Daniel Dahlgren Lindström2, Jan Axelsson2,3, Cecilia Björnfot2,3, Mikael Bylund2,3, Anders Garpebring2, Petter Holmlund1, Afroditi Lalou2, Klara Mogensen2, Daniel P. G. Nilsson6, Sara Qvarlander2, Pontus Söderström1, Tomas Vikner2,7, Krister Wiklund6, Magnus Andersson6,8, Katrine Riklund3,4, Jan Malm5, Anders Eklund2,3
  1. Department of Applied Physics and Electronics, Umeå University, Umeå S-90187, Sweden
  2. Department of Diagnostics and Intervention, Biomedical Engineering and Radiation Physics, Umeå University, Umeå S-90187, Sweden
  3. Umeå Center for Functional Brain Imaging, Umeå University, Umeå S-90187, Sweden
  4. Department of Diagnostics and Intervention, Diagnostic Radiology, Umeå University, Umeå S-90187, Sweden
  5. Department of Clinical Science, Neurosciences, Umeå University, Umeå S-90187, Sweden
  6. Department of Physics, Umeå University, Umeå S-90187, Sweden
  7. Department of Medical Physics, University of Wisconsin School of Medicine and Public Health, Madison, WI 53705-2275
  8. Umeå Centre for Microbial Research Umeå University, Umeå S-90187, Sweden
Dates: received 22 September 2025; accepted 30 March 2026; published online 29 April 2026; in print 5 May 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1073/pnas.2526239123 · PMID 42054362 · PMCID PMC13142984 · OpenAlex W7158741967
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: structural MRI / diffusion (modality), human (organism), other condition (population)
Methods: Connectivity, Statistics, fMRI & imaging
Keywords: cerebrospinal fluid, interstitial fluid, brain clearance, glymphatic system, flow
MeSH: Cerebrospinal Fluid*, Extracellular Fluid*, Hydrocephalus, Normal Pressure*, Aged, Brain, Female, Gadolinium, Glymphatic System, Humans, Magnetic Resonance Imaging, Male, Subarachnoid Space (* major topic)
Journal subjects: Biological Sciences, Neuroscience
Topic: Cerebrospinal fluid and hydrocephalus (Cellular and Molecular Neuroscience, Neuroscience), according to OpenAlex
Funding: Stiftelsen för Strategisk Forskning (SSF) (RMX18-0152); Vetenskapsrådet (2021-00711, 2022-04263); Hjärt-Lungfonden (20210653)
Citations: cited by 2 papers (Europe PMC); 64 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repository

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

anderswahlin/CSF-TISSUE-EXCHANGE

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 12049d02acd037bf167a9bb4cefa447802bcb52c, 5 April 2026
Languages: MATLAB (3)
Size: 8 files, 3 scripts
Software Heritage: not archived
Found in: “Data, Materials, and Software Availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Optimization Toolbox (3 files)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
4 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;
  • 3 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.

Code and data availability statement

The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1073/pnas.2526239123.

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, 21 authors, 5 keywords, 12 MeSH terms, 3 funders, 64 references.

Cite

This paper

Wåhlin, A., Behndig, S., Eriksson De Ryst, J., Vigren Näslund, V., Dahlgren Lindström, D., Axelsson, J., Björnfot, C., Bylund, M., Garpebring, A., Holmlund, P., Lalou, A., Mogensen, K., Nilsson, D. P. G., Qvarlander, S., Söderström, P., Vikner, T., Wiklund, K., Andersson, M., Riklund, K., . . . Eklund, A. (2026). Quantitative assessment of flow between cerebrospinal and interstitial fluid compartments in humans. Proceedings of the National Academy of Sciences of the United States of America, 123(18), e2526239123. https://doi.org/10.1073/pnas.2526239123

BibTeX

@article{wahlin2026quantitative,
author = {Wåhlin, Anders and Behndig, Sofia and Eriksson De Ryst, Johan and Vigren Näslund, Viktor and Dahlgren Lindström, Daniel and Axelsson, Jan and Björnfot, Cecilia and Bylund, Mikael and Garpebring, Anders and Holmlund, Petter and Lalou, Afroditi and Mogensen, Klara and Nilsson, Daniel P. G. and Qvarlander, Sara and Söderström, Pontus and Vikner, Tomas and Wiklund, Krister and Andersson, Magnus and Riklund, Katrine and Malm, Jan and Eklund, Anders},
title = {{Quantitative assessment of flow between cerebrospinal and interstitial fluid compartments in humans}},
journal = {Proceedings of the National Academy of Sciences of the United States of America},
year = {2026},
month = apr,
volume = {123},
number = {18},
pages = {e2526239123},
publisher = {National Academy of Sciences},
issn = {0027-8424},
doi = {10.1073/pnas.2526239123},
url = {https://doi.org/10.1073/pnas.2526239123},
pmid = {42054362},
pmcid = {PMC13142984}
}

RIS

TY - JOUR
AU - Wåhlin, Anders
AU - Behndig, Sofia
AU - Eriksson De Ryst, Johan
AU - Vigren Näslund, Viktor
AU - Dahlgren Lindström, Daniel
AU - Axelsson, Jan
AU - Björnfot, Cecilia
AU - Bylund, Mikael
AU - Garpebring, Anders
AU - Holmlund, Petter
AU - Lalou, Afroditi
AU - Mogensen, Klara
AU - Nilsson, Daniel P. G.
AU - Qvarlander, Sara
AU - Söderström, Pontus
AU - Vikner, Tomas
AU - Wiklund, Krister
AU - Andersson, Magnus
AU - Riklund, Katrine
AU - Malm, Jan
AU - Eklund, Anders
TI - Quantitative assessment of flow between cerebrospinal and interstitial fluid compartments in humans
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/04/29
VL - 123
IS - 18
SP - e2526239123
SN - 0027-8424
PB - National Academy of Sciences
DO - 10.1073/pnas.2526239123
UR - https://doi.org/10.1073/pnas.2526239123
LA - en
ER -

CSL-JSON

{
"id": "10.1073/pnas.2526239123",
"type": "article-journal",
"title": "Quantitative assessment of flow between cerebrospinal and interstitial fluid compartments in humans",
"container-title": "Proceedings of the National Academy of Sciences of the United States of America",
"author": [
{
"family": "Wåhlin",
"given": "Anders"
},
{
"family": "Behndig",
"given": "Sofia"
},
{
"family": "Eriksson De Ryst",
"given": "Johan"
},
{
"family": "Vigren Näslund",
"given": "Viktor"
},
{
"family": "Dahlgren Lindström",
"given": "Daniel"
},
{
"family": "Axelsson",
"given": "Jan"
},
{
"family": "Björnfot",
"given": "Cecilia"
},
{
"family": "Bylund",
"given": "Mikael"
},
{
"family": "Garpebring",
"given": "Anders"
},
{
"family": "Holmlund",
"given": "Petter"
},
{
"family": "Lalou",
"given": "Afroditi"
},
{
"family": "Mogensen",
"given": "Klara"
},
{
"family": "Nilsson",
"given": "Daniel P. G."
},
{
"family": "Qvarlander",
"given": "Sara"
},
{
"family": "Söderström",
"given": "Pontus"
},
{
"family": "Vikner",
"given": "Tomas"
},
{
"family": "Wiklund",
"given": "Krister"
},
{
"family": "Andersson",
"given": "Magnus"
},
{
"family": "Riklund",
"given": "Katrine"
},
{
"family": "Malm",
"given": "Jan"
},
{
"family": "Eklund",
"given": "Anders"
}
],
"container-title-short": "Proc Natl Acad Sci U S A",
"volume": "123",
"issue": "18",
"page": "e2526239123",
"DOI": "10.1073/pnas.2526239123",
"PMID": "42054362",
"PMCID": "PMC13142984",
"ISSN": "0027-8424",
"publisher": "National Academy of Sciences",
"URL": "https://doi.org/10.1073/pnas.2526239123",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
29
]
]
}
}

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.1002/mrm.70438 [code]
Quantifying Cardiac, Respiratory, and Low Frequency Components of CSF Motion From fMRI Inflow Effects.
Journal: Magnetic resonance in medicine
In common: Optimization Toolbox, 8 references, author Pontus Söderström
[2] doi:10.1038/s41467-026-76306-9 [code]
Non-invasive characterization of perivascular subarachnoid spaces.
Journal: Nature communications
In common: Optimization Toolbox, structural MRI / diffusion, 8 references
[3] doi:10.1186/s12987-026-00782-w
Quantifying cerebrospinal fluid flow in pial perivascular spaces of rats.
Journal: Fluids and barriers of the CNS
In common: 9 references
[4] doi:10.1126/sciadv.aeb0404 [code]
MR-AIV reveals in vivo brain-wide fluid flow with physics-informed AI.
Journal: Science advances
In common: structural MRI / diffusion, 8 references
[5] doi:10.1371/journal.pone.0346730
Day-night variation and age-related differences in gadolinium-based contrast media enhancement in the brain: A T1 mapping study.
Journal: PloS one
In common: structural MRI / diffusion, 7 references
[6] doi:10.1073/pnas.2517059123 [code]
Stretch and flow at the gliovascular interface: High-fidelity modeling of astrocyte endfeet.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: 6 references
[7] doi:10.1177/0271678x261455452 [code]
Meningeal CSF transport varies across parasagittal dura subregions with age in humans.
Journal: Journal of cerebral blood flow and metabolism : official journal of the International Society of Cerebral Blood Flow and Metabolism
In common: Optimization Toolbox, structural MRI / diffusion, 4 references
[8] doi:10.1002/mrm.70514 [code]
Brain Clearance of Contrast Agent in Intravenous DCE-MRI Is Measurable and Cannot Be Explained by Clearance Across the BBB Alone.
Journal: Magnetic resonance in medicine
In common: structural MRI / diffusion, 5 references
[9] doi:10.1186/s12888-026-08304-6
Transcranial direct current stimulation improves reduced global BOLD-CSF coupling in patients with insomnia disorder and comorbid anxiety: a resting-state functional MRI study.
Journal: BMC psychiatry
In common: other condition, 5 references
[10] doi:10.1093/brain/awag080 [code]
Early glymphatic failure in AppNL-F knock-in mice is linked to parenchymal border macrophages loss.
Journal: Brain : a journal of neurology
In common: 4 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.