Harnessing biological variability for mechanistic inference: A stochastic framework applied to neural stem cell dynamics.
One block of code here has 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 1 match · it ties a paragraph to a whole file without given lines: a weak match, whose lines are not tinted
- [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 · block
oscr:b:EJ3YA90P1Q59E-I· 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
MATLAB · 97 lines · 3.6 KB · CC-BY-4.0 · 1 match
- function [filtered_data, mu_gauss, std_gauss, summary] = filterLognormalGaussian(data, sigma_cut, makePlot, alpha)
- % Fits Gaussians and filters NSC or fraction data
- if nargin < 2 || isempty(sigma_cut), sigma_cut = 2; end
- if nargin < 3, makePlot = true; end
- if nargin < 4, alpha = 0.01; end
- % --- Convert input to numeric column vector ---
- if iscell(data)
- data = cell2mat(data);
- end
- data = data(:);
- if isempty(data)
- filtered_data = [];
- mu_gauss = NaN;
- std_gauss = NaN;
- summary = struct();
- return
- end
- if any(data <= 0)
- error('All data must be positive for lognormal fitting.');
- end
- %% Step 1: Fit lognormal
- metrics = lognfit(data);
- mu_ln = metrics(1);
- sigma_ln = metrics(2);
- mode_ln = exp(mu_ln - sigma_ln^2);
- %% Step 2: Define truncation bounds from PDF height threshold
- x = linspace(1e-6, max(data)*2, 5000);
- pdf_ln = lognpdf(x, mu_ln, sigma_ln);
- max_pdf = max(pdf_ln);
- left_bound = x(find(pdf_ln >= alpha*max_pdf, 1, 'first'));
- l = mode_ln - left_bound;
- right_bound = mode_ln + l;
- %% Step 3: Truncate the fitted lognormal curve
- mask = (x >= left_bound & x <= right_bound);
- x_trunc = x(mask);
- pdf_trunc = pdf_ln(mask);
- pdf_trunc = pdf_trunc / trapz(x_trunc, pdf_trunc);
- %% Step 4: Fit Gaussian to truncated lognormal
- mu_gauss = trapz(x_trunc, x_trunc .* pdf_trunc);
- var_gauss = trapz(x_trunc, (x_trunc - mu_gauss).^2 .* pdf_trunc);
- std_gauss = sqrt(var_gauss);
- %% Step 5: Filter actual data by ±sigma_cut * std_gauss
- lower_cut = mu_gauss - sigma_cut * std_gauss;
- upper_cut = mu_gauss + sigma_cut * std_gauss;
- filtered_data = data(data >= lower_cut & data <= upper_cut);
- %% Step 6: Prepare summary
- summary = struct( ...
- 'mu_lognorm', mu_ln, ...
- 'sigma_lognorm', sigma_ln, ...
- 'mode_lognorm', mode_ln, ...
- 'alpha', alpha, ...
- 'left_bound', left_bound, ...
- 'right_bound', right_bound, ...
- 'left_tail_width', l, ...
- 'mu_gauss', mu_gauss, ...
- 'std_gauss', std_gauss, ...
- 'sigma_cut', sigma_cut, ...
- 'n_total', numel(data), ...
- 'n_kept', numel(filtered_data));
- %% Step 7: Plot
- if makePlot && ~isempty(filtered_data)
- pdf_gauss = normpdf(x, mu_gauss, std_gauss);
- figure; hold on
- histogram(data, 'Normalization', 'pdf', 'FaceAlpha', 0.3, 'DisplayName', 'Data');
- plot(x, pdf_ln, 'r-', 'LineWidth', 1.5, 'DisplayName', 'Lognormal fit');
- plot(x_trunc, pdf_trunc * max(pdf_ln) / max(pdf_trunc), 'b-', 'LineWidth', 1.5, 'DisplayName', 'Truncated lognormal');
- plot(x, pdf_gauss, 'g--', 'LineWidth', 1.5, 'DisplayName', 'Gaussian fit');
- xline(mode_ln, '--r', 'DisplayName', 'Mode');
- xline(left_bound, ':k', 'DisplayName', sprintf('Left bound (%.0f%%)', alpha*100));
- xline(right_bound, ':k', 'DisplayName', sprintf('Right bound (%.0f%%)', alpha*100));
- scatter(filtered_data, zeros(size(filtered_data)), 'k', 'filled', 'DisplayName', 'Kept points');
- plot(data,zeros(1,length(data)),'.r','MarkerSize',10,'DisplayName','Original points');
- legend show
- title(sprintf('Lognormal → Truncated (α=%.3f) → Gaussian Fit → ±%dσ Filter', alpha, sigma_cut))
- xlabel('Data values'); ylabel('Probability density');
- hold off
- end
- %% Step 8: Print summary
- fprintf('\nLognormal fit: mu = %.3f, sigma = %.3f\n', mu_ln, sigma_ln);
- fprintf('Mode = %.3f\n', mode_ln);
- fprintf('Truncation bounds: [%.3f, %.3f] (pdf ≈ %.1f%% of max)\n', left_bound, right_bound, alpha*100);
- fprintf('Gaussian fit: mean = %.3f, std = %.3f\n', mu_gauss, std_gauss);
- fprintf('Kept %d of %d data points inside ±%dσ\n', numel(filtered_data), numel(data), sigma_cut);
- end
filterLognormalGaussian.m, under CC-BY-4.0 · at the source
Overview
- Herbert and Florence Irving Institute for Cancer Dynamics, Columbia University, 1190 Amsterdam Ave, New York, NY 10027, USA
- Heidelberg University, Institute for Mathematics, Im Neuenheimer Feld 205, 69120 Heidelberg, Germany
- Interdisciplinary Center for Scientific Computing (IWR), Im Neuenheimer Feld 205, 69120 Heidelberg, Germany
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
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
26 files
- comparisons/
main_comparison_IFNAGRKO , MATLAB, 86 lines_combinations.m - comparisons/
main_comparison_WT_combi , MATLAB, 91 linesnations.m - comparisons/
main_comparison_WT_rb.m , MATLAB, 97 lines - comparisons/
main_comparison_WT_rbp.m , MATLAB, 85 lines - comparisons/
plot_NSC_frac.m , MATLAB, 65 lines - data/
data_IFNAGRKO_raw.m , MATLAB, 29 lines - data/
data_WT_raw.m , MATLAB, 33 lines - data/
filterLognormalGaussian. , MATLAB, 97 lines, 1 matchm - data/
process_NSC_frac_data.m , MATLAB, 90 lines - main.m, MATLAB, 106 lines
- optimization/
computeFluctuations.m , MATLAB, 135 lines - optimization/
jacobianR.m , MATLAB, 21 lines - optimization/
objFun.m , MATLAB, 71 lines - optimization/
runOptimization.m , MATLAB, 75 lines - scenarios/
scenario_QAr_Ab_constp.m , MATLAB, 66 lines - scenarios/
scenario_QAr_Qb_constp.m , MATLAB, 66 lines - scenarios/
scenario_QAr_Qb_sump.m , MATLAB, 67 lines - scenarios/
scenario_Qsumr_Ab_constp , MATLAB, 66 lines.m - scenarios/
scenario_Qsumr_Qb_constp , MATLAB, 64 lines.m - scenarios/
scenario_Qsumr_Qb_sump.m , MATLAB, 67 lines - scenarios/
scenario_constr_sumb_sum , MATLAB, 64 linesp.m - scenarios/
scenario_r1sumr_sumb_con , MATLAB, 69 linesstp.m - scenarios/
scenario_sumr_constb_con , MATLAB, 62 linesstp.m - scenarios/
scenario_sumr_constb_sum , MATLAB, 65 linesp.m - scenarios/
scenario_sumr_sumb_const , MATLAB, 66 linesp.m - scenarios/
scenario_sumr_sumb_sump. , MATLAB, 68 linesm
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://
All original code has been deposited at Zenodo (https://
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://
BibTeX
@article{wang2026harness
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/
url = {https://
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/
VL - 29
IS - 9
SP - 117269
SN - 2589-0042
PB - Elsevier
DO - 10.1016/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1016/
"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":
"volume": "29",
"issue": "9",
"page": "117269",
"DOI": "10.1016/
"PMID": "42668621",
"PMCID": "PMC13524777",
"ISSN": "2589-0042",
"publisher": "Elsevier",
"URL": "https://
"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/s41540-025-00563-5 [code]
- Unraveling regulatory feedback mechanisms in adult neurogenesis through mathematical modelling.Journal: NPJ systems biology and applicationsIn common: Optimization Toolbox, 13 references
- [2] doi:10.1038/s41467-025-62528-w [code]
- Cross-species comparison reveals therapeutic vulnerabilities halting glioblastoma progression.Journal: Nature communicationsIn common: Optimization Toolbox, mouse, 6 references, author Anna Marciniak-Czochra
- [3] doi:10.1126/sciadv.adn6377 [code]
- Significance of birth in the maintenance of quiescent neural stem cells.Journal: Science advancesIn common: mouse, 4 references
- [4] doi:10.1101/2023.09.15.557713 [code]
- Cross-species comparison reveals therapeutic vulnerabilities halting glioblastoma progressionJournal: bioRxiv (preprint)In common: mouse, author Anna Marciniak-Czochra
- [5] doi:10.3389/fncel.2023.1156802 [code]
- <i>Stat1</
i> is an inducible transcriptional repressor of neural stem cells self-renewal program during neuroinflammation. Journal: Frontiers in cellular neuroscienceIn common: mouse, 3 references - [6] doi:10.1038/s41593-024-01848-4 [code]
- Multimodal transcriptomics reveal neurogenic aging trajectories and age-related regional inflammation in the dentate gyrus.Journal: Nature neuroscienceIn common: mouse, 3 references
- [7] doi:10.1016/j.xgen.2025.101101 [code]
- Transcript-guided targeted cell enrichment for scalable single-nucleus RNA sequencing.Journal: Cell genomicsIn common: Statistics and Machine Learning Toolbox, mouse, 2 references
- [8] doi:10.1038/s41586-024-07898-9 [code]
- DNA methylation controls stemness of astrocytes in health and ischaemia.Journal: NatureIn common: mouse, 3 references
- [9] doi:10.1007/s12015-023-10600-7
- Dbx2, an Aging-Related Homeobox Gene, Inhibits the Proliferation of Adult Neural Progenitors.Journal: Stem cell reviews and reportsIn common: mouse, 3 references
- [10] doi:10.1038/s44319-024-00258-8
- SOX10 mediates glioblastoma cell-state plasticity.Journal: EMBO reportsIn common: mouse, 3 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.
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, 26 scripts, and 1 match 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:c89f1924085d708a…
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.1016/j.isci.2026.117269)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1016/j.isci.2026.117269.svg
:target: https://openscicode.org/badge/doi/10.1016/j.isci.2026.117269
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1016/j.isci.2026.117269"><img src="https://openscicode.org/badge/doi/10.1016/j.isci.2026.117269.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->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)
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
