Harnessing biological variability for mechanistic inference: A stochastic framework applied to neural stem cell dynamics.
The 1 match · it ties a paragraph to a whole file, not to 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
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
- 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/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 discoveryIn 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 communicationsIn 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 advancesIn 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 reportsIn common: mouse, 2 references
- [5] doi:10.1038/s42003-026-10957-8 [code]
- Brain defence by the extracellular matrix protein Cochlin.Journal: Communications biologyIn 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: iScienceIn 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 neuroscienceIn 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 communicationsIn 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: BiomedicinesIn 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 communicationsIn 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.
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:2bd79e9831c6185d…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[.
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.
