OSCR

Harnessing biological variability for mechanistic inference: A stochastic framework applied to neural stem cell dynamics.

Code ↔ Paper

1 match 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 1 match · it ties a paragraph to a whole file, not to given lines: a weak match, whose lines are not tinted
  1. [1] § STAR★Methods › Quantification and statistical analysis › Data preprocessing and parameter estimation ↔ data/filterLognormalGaussian.m, the whole file · a weak match · score 0.78 · truncation bounds, probability density, cutting, threshold, curve, Filtered

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 · 97 lines · 3.6 KB · CC-BY-4.0 · 1 match

  1. function [filtered_data, mu_gauss, std_gauss, summary] = filterLognormalGaussian(data, sigma_cut, makePlot, alpha)
  2. % Fits Gaussians and filters NSC or fraction data
  3. if nargin < 2 || isempty(sigma_cut), sigma_cut = 2; end
  4. if nargin < 3, makePlot = true; end
  5. if nargin < 4, alpha = 0.01; end
  6. % --- Convert input to numeric column vector ---
  7. if iscell(data)
  8. data = cell2mat(data);
  9. end
  10. data = data(:);
  11. if isempty(data)
  12. filtered_data = [];
  13. mu_gauss = NaN;
  14. std_gauss = NaN;
  15. summary = struct();
  16. return
  17. end
  18. if any(data <= 0)
  19. error('All data must be positive for lognormal fitting.');
  20. end
  21. %% Step 1: Fit lognormal
  22. metrics = lognfit(data);
  23. mu_ln = metrics(1);
  24. sigma_ln = metrics(2);
  25. mode_ln = exp(mu_ln - sigma_ln^2);
  26. %% Step 2: Define truncation bounds from PDF height threshold
  27. x = linspace(1e-6, max(data)*2, 5000);
  28. pdf_ln = lognpdf(x, mu_ln, sigma_ln);
  29. max_pdf = max(pdf_ln);
  30. left_bound = x(find(pdf_ln >= alpha*max_pdf, 1, 'first'));
  31. l = mode_ln - left_bound;
  32. right_bound = mode_ln + l;
  33. %% Step 3: Truncate the fitted lognormal curve
  34. mask = (x >= left_bound & x <= right_bound);
  35. x_trunc = x(mask);
  36. pdf_trunc = pdf_ln(mask);
  37. pdf_trunc = pdf_trunc / trapz(x_trunc, pdf_trunc);
  38. %% Step 4: Fit Gaussian to truncated lognormal
  39. mu_gauss = trapz(x_trunc, x_trunc .* pdf_trunc);
  40. var_gauss = trapz(x_trunc, (x_trunc - mu_gauss).^2 .* pdf_trunc);
  41. std_gauss = sqrt(var_gauss);
  42. %% Step 5: Filter actual data by ±sigma_cut * std_gauss
  43. lower_cut = mu_gauss - sigma_cut * std_gauss;
  44. upper_cut = mu_gauss + sigma_cut * std_gauss;
  45. filtered_data = data(data >= lower_cut & data <= upper_cut);
  46. %% Step 6: Prepare summary
  47. summary = struct( ...
  48. 'mu_lognorm', mu_ln, ...
  49. 'sigma_lognorm', sigma_ln, ...
  50. 'mode_lognorm', mode_ln, ...
  51. 'alpha', alpha, ...
  52. 'left_bound', left_bound, ...
  53. 'right_bound', right_bound, ...
  54. 'left_tail_width', l, ...
  55. 'mu_gauss', mu_gauss, ...
  56. 'std_gauss', std_gauss, ...
  57. 'sigma_cut', sigma_cut, ...
  58. 'n_total', numel(data), ...
  59. 'n_kept', numel(filtered_data));
  60. %% Step 7: Plot
  61. if makePlot && ~isempty(filtered_data)
  62. pdf_gauss = normpdf(x, mu_gauss, std_gauss);
  63. figure; hold on
  64. histogram(data, 'Normalization', 'pdf', 'FaceAlpha', 0.3, 'DisplayName', 'Data');
  65. plot(x, pdf_ln, 'r-', 'LineWidth', 1.5, 'DisplayName', 'Lognormal fit');
  66. plot(x_trunc, pdf_trunc * max(pdf_ln) / max(pdf_trunc), 'b-', 'LineWidth', 1.5, 'DisplayName', 'Truncated lognormal');
  67. plot(x, pdf_gauss, 'g--', 'LineWidth', 1.5, 'DisplayName', 'Gaussian fit');
  68. xline(mode_ln, '--r', 'DisplayName', 'Mode');
  69. xline(left_bound, ':k', 'DisplayName', sprintf('Left bound (%.0f%%)', alpha*100));
  70. xline(right_bound, ':k', 'DisplayName', sprintf('Right bound (%.0f%%)', alpha*100));
  71. scatter(filtered_data, zeros(size(filtered_data)), 'k', 'filled', 'DisplayName', 'Kept points');
  72. plot(data,zeros(1,length(data)),'.r','MarkerSize',10,'DisplayName','Original points');
  73. legend show
  74. title(sprintf('Lognormal → Truncated (α=%.3f) → Gaussian Fit → ±%dσ Filter', alpha, sigma_cut))
  75. xlabel('Data values'); ylabel('Probability density');
  76. hold off
  77. end
  78. %% Step 8: Print summary
  79. fprintf('\nLognormal fit: mu = %.3f, sigma = %.3f\n', mu_ln, sigma_ln);
  80. fprintf('Mode = %.3f\n', mode_ln);
  81. fprintf('Truncation bounds: [%.3f, %.3f] (pdf ≈ %.1f%% of max)\n', left_bound, right_bound, alpha*100);
  82. fprintf('Gaussian fit: mean = %.3f, std = %.3f\n', mu_gauss, std_gauss);
  83. fprintf('Kept %d of %d data points inside ±%dσ\n', numel(filtered_data), numel(data), sigma_cut);
  84. end

filterLognormalGaussian.m, under CC-BY-4.0 · at the source

Overview

Authors: Ren-Yi Wang1, Diana-Patricia Danciu2, Filip Z Klawe2, Anna Marciniak-Czochra2,3
  1. Herbert and Florence Irving Institute for Cancer Dynamics, Columbia University, 1190 Amsterdam Ave, New York, NY 10027, USA
  2. Heidelberg University, Institute for Mathematics, Im Neuenheimer Feld 205, 69120 Heidelberg, Germany
  3. Interdisciplinary Center for Scientific Computing (IWR), Im Neuenheimer Feld 205, 69120 Heidelberg, Germany
Institutions: Columbia University (United States); Heidelberg University (Germany)
Journal: iScience, volume 29, issue 9, article 117269
Dates: received 26 February 2026; accepted 23 July 2026; published online 22 August 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1016/j.isci.2026.117269 · PMID 42668621 · PMCID PMC13524777 · OpenAlex W7203979335
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: mouse (organism)
Methods: Connectivity, Physiology & signal measures
Keywords: stem cell dynamics, functional limit theorem, stochastic process, non-linear regulation, fluctuation analysis
Topic: Neurogenesis and neuroplasticity mechanisms (Developmental Neuroscience, Neuroscience), according to OpenAlex
Funding: European Research Council (101071786); German Research Foundation (SFB1324); Columbia University
Citations: not cited yet (Europe PMC); 48 references in the paper

Abstract

Inter-individual heterogeneity is often treated as noise, yet its temporal evolution can reveal regulatory mechanisms hidden from mean-field behavior. We present a stochastic framework that exploits variability for mechanistic inference in cell population dynamics. Using adult neurogenesis as a case study, we develop a state-dependent stochastic model of transitions between quiescent and active states and derive a diffusion approximation for the dynamics of both mean and variance. Applied to repeated cross-sectional data from wild-type and interferon-receptor knockout mice, we show that distinct regulatory mechanisms can produce similar mean dynamics but different fluctuation patterns. Jointly fitting mean and variance identifies proliferation-rate regulation as the dominant contributor to variability, while activation and self-renewal primarily govern average and long-term dynamics. Wild-type mice exhibit regulation of all three processes, whereas knockout mice lose activation control. These results show that population-level variability provides mechanistic information beyond average dynamics and helps distinguish between competing mechanistic models.

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 1 match between paragraphs and lines of code.

Zenodo 18399730

License: CC-BY-4.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Size: 2 files
Software Heritage: not checked
Found in: “Data and code availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
26 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;
  • 26 scripts, each with its path and the digest of its content;
  • 1 match 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 and code availability

This paper analyzes existing, publicly available data, accessible at https://doi.org/10.1016/j.cell.2019.01.040 and https://doi.org/10.15252/emmm.202216434.

All original code has been deposited at Zenodo (https://doi.org/10.5281/zenodo.18399730) and will be publicly available as of the date of publication.

Any additional information required to reanalyze the data reported in this paper is available from the lead contact upon request.

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

  • Authors: added Anna Marciniak-Czochra (0000-0002-5831-6505); removed Anna Marciniak-Czochra

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 4 authors, 5 keywords, 3 funders, 31 references.

Cite

This paper

Wang, R.-Y., Danciu, D.-P., Klawe, F. Z., & Marciniak-Czochra, A. (2026). Harnessing biological variability for mechanistic inference: A stochastic framework applied to neural stem cell dynamics. iScience, 29(9), 117269. https://doi.org/10.1016/j.isci.2026.117269

BibTeX

@article{wang2026harnessing,
author = {Wang, Ren-Yi and Danciu, Diana-Patricia and Klawe, Filip Z and Marciniak-Czochra, Anna},
title = {{Harnessing biological variability for mechanistic inference: A stochastic framework applied to neural stem cell dynamics}},
journal = {iScience},
year = {2026},
month = aug,
volume = {29},
number = {9},
pages = {117269},
publisher = {Elsevier},
issn = {2589-0042},
doi = {10.1016/j.isci.2026.117269},
url = {https://doi.org/10.1016/j.isci.2026.117269},
pmid = {42668621},
pmcid = {PMC13524777}
}

RIS

TY - JOUR
AU - Wang, Ren-Yi
AU - Danciu, Diana-Patricia
AU - Klawe, Filip Z
AU - Marciniak-Czochra, Anna
TI - Harnessing biological variability for mechanistic inference: A stochastic framework applied to neural stem cell dynamics
T2 - iScience
J2 - iScience
PY - 2026
DA - 2026/08/22
VL - 29
IS - 9
SP - 117269
SN - 2589-0042
PB - Elsevier
DO - 10.1016/j.isci.2026.117269
UR - https://doi.org/10.1016/j.isci.2026.117269
LA - en
ER -

CSL-JSON

{
"id": "10.1016/j.isci.2026.117269",
"type": "article-journal",
"title": "Harnessing biological variability for mechanistic inference: A stochastic framework applied to neural stem cell dynamics",
"container-title": "iScience",
"author": [
{
"family": "Wang",
"given": "Ren-Yi"
},
{
"family": "Danciu",
"given": "Diana-Patricia"
},
{
"family": "Klawe",
"given": "Filip Z"
},
{
"family": "Marciniak-Czochra",
"given": "Anna"
}
],
"container-title-short": "iScience",
"volume": "29",
"issue": "9",
"page": "117269",
"DOI": "10.1016/j.isci.2026.117269",
"PMID": "42668621",
"PMCID": "PMC13524777",
"ISSN": "2589-0042",
"publisher": "Elsevier",
"URL": "https://doi.org/10.1016/j.isci.2026.117269",
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
22
]
]
}
}

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/s41421-026-00914-4
Identification of a novel deeply quiescent neural stem cell population in the subventricular zone: a potential source for brain repair.
Journal: Cell discovery
In common: 3 references
[2] doi:10.1038/s41467-026-74104-x [code]
TNF-α induces type I IFN signalling to suppress neurogenesis and recruit T cells.
Journal: Nature communications
In common: 2 references
[3] doi:10.1126/sciadv.aeh9771 [code]
Lipidomic profiling reveals age-dependent changes in plasma membrane lipids that affect neural stem cell aging.
Journal: Science advances
In common: mouse, 2 references
[4] doi:10.1016/j.stemcr.2026.103015 [code]
Brain injury reactivates a developmental program driving genesis and integration of transient LGE-class interneurons.
Journal: Stem cell reports
In common: mouse, 2 references
[5] doi:10.1038/s42003-026-10957-8 [code]
Brain defence by the extracellular matrix protein Cochlin.
Journal: Communications biology
In common: Optimization Toolbox, Statistics and Machine Learning Toolbox, mouse
[6] doi:10.1016/j.isci.2026.117187 [code]
Functional and structural characterization of dendritic spine pathology in a mouse model of tauopathy.
Journal: iScience
In common: Optimization Toolbox, Statistics and Machine Learning Toolbox, mouse
[7] doi:10.1038/s41593-026-02350-9 [code]
Probing inter-areal computations with a two-photon holographic mesoscope.
Journal: Nature neuroscience
In common: Optimization Toolbox, Statistics and Machine Learning Toolbox, mouse
[8] doi:10.1158/2767-9764.crc-25-0579 [code]
Glioblastoma Subtypes Exhibit Distinct Migration Mechanics and Immune Responses.
Journal: Cancer research communications
In common: Optimization Toolbox, Statistics and Machine Learning Toolbox, mouse
[9] doi:10.3390/biomedicines14081670 [code]
Limited Detectability of Network Functional Alterations in a Tauopathy Model Using Mouse Primary Cortical Cultures.
Journal: Biomedicines
In common: Optimization Toolbox, Statistics and Machine Learning Toolbox, mouse
[10] doi:10.1038/s41467-026-75347-4 [code]
Sleep reveals dynamics integrating and segregating movement and stimulus representations in V1.
Journal: Nature communications
In common: Optimization Toolbox, Statistics and Machine Learning Toolbox, mouse

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.