OSCR

Bed nucleus of the stria terminalis connectivity during food cue and taste processing under stress.

Code ↔ Paper

9 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 9 matches · 5 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § Methods › Parametric empirical Bayes ↔ supp_analyses/gusto_group_peb_bmc.m, the whole file · a weak match · score 0.73 · Bayesian model reduction, spm_dcm_peb_bmc, Plausible, utilised, probability, posterior
  2. [2] § Methods › Leave-one-out cross-validation ↔ analyses/Run_PEB_HS_Cue_LOOCV_deltastress.m, lines 50–51 · score 0.66 · spm_dcm_loo, cross validation, stress cue, OFC, PEB, BNST
  3. [3] § Methods › In silico validation of dynamic causal models ↔ in_silico_validation/validate_task_model.m, lines 1–42 · score 0.64 · noise ratios, SNRs, silico, simulation, inversion, inferred
  4. [4] § Methods › General linear models of beverage cue and taste processing ↔ supp_analyses/gusto_log_convert.m, the whole file · a weak match · score 0.63 · pleasantness ratings, fMRI, events, rinse, onsets, GLMs
  5. [5] § Methods › Physiological measures ↔ scr/stress_irr.m, the whole file · a weak match · score 0.59 · inter rater reliability, discardable, stress
  6. [6] § Methods › Physiological measures ↔ hrv/R2_HRV_comp.m, lines 86–129 · score 0.59 · pNN20, pNN50, Poincar, SD1, SD2, HRV
  7. [7] § Results › Beverage task and stress induction ↔ hrv/R2_HRV_comp.m, lines 86–129 · score 0.58 · pNN20, pNN50, Poincar, ratio, SD1, SD2
  8. [8] § Methods › Parametric empirical Bayes ↔ analyses/Run_PEB_HS_Taste.m, the whole file · a weak match · score 0.57 · spm_dcm_peb_bmc, effective connectivity parameters, PEB model, delta, quantified, Bayes
  9. [9] § Methods › Physiological measures ↔ hrv/HRV_combined_R1.m, the whole file · a weak match · score 0.52 · Post hoc, ANOVA, vectors, HRV, segmented, model

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 · 154 lines · 5 KB · no license · 2 matches

  1. clear; clc;
  2. %% Load data
  3. S = load('all_cpulse_values.mat');
  4. acv = S.all_cpulse_values; % 1x1 struct of participants
  5. P = fieldnames(acv); % {'P100','P101',...}
  6. % Exclude (poor trace)
  7. exclude = {'Sub107','Sub133','Sub139','Sub147','Sub151'};
  8. P = setdiff(P, exclude);
  9. %% Analysis parameters
  10. fs_tacho = 4; % Hz for tachogram resampling
  11. rr_min_s = 0.3; % RR lower bound
  12. rr_max_s = 2.5; % RR upper bound
  13. lf_band = [0.04 0.15]; % Hz
  14. hf_band = [0.15 0.40]; % Hz
  15. min_len_psd_s = 20; % >=20 s to attempt PSD
  16. metrics_names = {'pNN20','pNN50','SD1_SD2','LF_HF'};
  17. %% Collect per-participant metrics
  18. rows = cell(0, 2 + numel(metrics_names)); % {Participant, Condition, metrics...}
  19. for i = 1:numel(P)
  20. pid = P{i};
  21. pdata = acv.(pid); % struct with GUSTO_LS / GUSTO_HS
  22. ls = double(pdata.GUSTO_LS(:));
  23. hs = double(pdata.GUSTO_HS(:));
  24. mLS = comp_metrics(ls, fs_tacho, rr_min_s, rr_max_s, lf_band, hf_band, min_len_psd_s);
  25. mHS = comp_metrics(hs, fs_tacho, rr_min_s, rr_max_s, lf_band, hf_band, min_len_psd_s);
  26. if isempty(mLS) || isempty(mHS), continue; end
  27. vals_ls = cellfun(@(nm) mLS.(nm), metrics_names, 'UniformOutput', false);
  28. rows(end+1,:) = [{pid,'LS'}, vals_ls];
  29. vals_hs = cellfun(@(nm) mHS.(nm), metrics_names, 'UniformOutput', false);
  30. rows(end+1,:) = [{pid,'HS'}, vals_hs];
  31. end
  32. T = cell2table(rows, 'VariableNames', ['Participant','Condition', metrics_names]);
  33. %% Paired tests (HS vs LS) on the four metrics
  34. stats_rows = {};
  35. for k = 1:numel(metrics_names)
  36. metric = metrics_names{k};
  37. W = unstack(T(:,{'Participant','Condition',metric}), metric, 'Condition', 'GroupingVariables','Participant');
  38. if ~all(ismember({'LS','HS'}, W.Properties.VariableNames)), continue; end
  39. x = W.LS; y = W.HS; % LS vs HS
  40. mask = ~(isnan(x) | isnan(y));
  41. x = x(mask); y = y(mask);
  42. if numel(x) < 3, continue; end
  43. diffv = y - x;
  44. [~, p, ~, st] = ttest(x, y); % paired t-test
  45. dz = mean(diffv) / std(diffv, 0); % Cohen's dz
  46. stats_rows(end+1,1:9) = {metric, numel(x), st.tstat, st.df, p, dz, mean(x), mean(y), mean(diffv)}; %#ok<AGROW>
  47. end
  48. Stats = cell2table(stats_rows, 'VariableNames', ...
  49. {'Metric','n','t','df','p','dz','mean_LS','mean_HS','diff_mean'});
  50. Stats = sortrows(Stats,'p');
  51. disp('--- Paired t-tests (HS vs LS) ---');
  52. disp(Stats);
  53. % Display
  54. report_metrics = {'pNN20','pNN50','LF_HF','SD1_SD2'};
  55. for r = 1:numel(report_metrics)
  56. m = report_metrics{r};
  57. row = Stats(strcmp(Stats.Metric, m), :);
  58. if ~isempty(row)
  59. fprintf('%s: t(%d)=%.6f, p=%.6f, dz=%.6f, meanΔ=HS-LS=%.6f\n', ...
  60. row.Metric{1}, row.df(1), row.t(1), row.p(1), row.dz(1), row.diff_mean(1));
  61. end
  62. end
  63. % Save tables
  64. writetable(T, 'hrv_comp_by_participant.csv');
  65. writetable(Stats, 'hrv_comp_paired_tests.csv');
  66. %% ---------- Local Functions (minimal) ----------
  67. function M = comp_metrics(cpulse_secs, fs, rr_min_s, rr_max_s, lf_band, hf_band, min_len_psd_s)
  68. % Build RR from cumulative pulse times (seconds) with sanity bounds
  69. [rr, tmid] = local_ibi(cpulse_secs, rr_min_s, rr_max_s);
  70. if isempty(rr), M = []; return; end
  71. % Time-domain differences (ms) for pNN20/pNN50
  72. rr_ms = rr * 1000;
  73. diffs = diff(rr_ms);
  74. M.pNN20 = mean(abs(diffs) > 20) * 100;
  75. M.pNN50 = mean(abs(diffs) > 50) * 100;
  76. % Poincaré ratio SD1/SD2 (population variance convention)
  77. if numel(rr_ms) >= 3
  78. rr1 = rr_ms(1:end-1);
  79. rr2 = rr_ms(2:end);
  80. d12 = rr2 - rr1;
  81. sd1 = sqrt(var(d12, 1)/2);
  82. sd2 = sqrt(2*var(rr_ms,1) - var(d12,1)/2);
  83. M.SD1_SD2 = sd1 / sd2;
  84. else
  85. M.SD1_SD2 = NaN;
  86. end
  87. % LF/HF from HR tachogram Welch PSD
  88. hr = 60 ./ rr;
  89. if numel(rr) >= 4 && (tmid(end) - tmid(1)) >= min_len_psd_s
  90. t = tmid(:);
  91. t_uniform = (t(1):1/fs:t(end))';
  92. hr_uniform = interp1(t, hr(:), t_uniform, 'linear', 'extrap');
  93. hr_uniform = detrend(hr_uniform, 'linear');
  94. nperseg = min(numel(hr_uniform), fs*64);
  95. if nperseg < 32
  96. M.LF_HF = NaN;
  97. else
  98. [Pxx, f] = pwelch(hr_uniform, hamming(nperseg), [], [], fs);
  99. LF = bandpow(f, Pxx, lf_band(1), lf_band(2));
  100. HF = bandpow(f, Pxx, hf_band(1), hf_band(2));
  101. M.LF_HF = (HF > 0) * (LF / HF);
  102. if HF <= 0, M.LF_HF = NaN; end
  103. end
  104. else
  105. M.LF_HF = NaN;
  106. end
  107. end
  108. function [rr, tmid] = local_ibi(cpulse_secs, rr_min_s, rr_max_s)
  109. x = sort(double(cpulse_secs(:)));
  110. x = x(~isnan(x));
  111. if numel(x) < 3
  112. rr = []; tmid = []; return;
  113. end
  114. rr0 = diff(x);
  115. tmid0 = x(1:end-1) + rr0/2;
  116. mask = (rr0 > rr_min_s) & (rr0 < rr_max_s);
  117. rr = rr0(mask);
  118. tmid = tmid0(mask);
  119. if nnz(mask) < 3
  120. rr = []; tmid = [];
  121. end
  122. end
  123. function bp = bandpow(f, Pxx, fmin, fmax)
  124. mask = (f >= fmin) & (f < fmax);
  125. if ~any(mask)
  126. bp = NaN;
  127. else
  128. bp = trapz(f(mask), Pxx(mask));
  129. end
  130. end

R2_HRV_comp.m at commit 506df1e, no license · at the source

Overview

Authors: Eva Guerrero-Hreins1,2, Matthew D. Greaves3,4,5, Po-Han Kung5,6, Bradford A. Moffat7, Rebecca K. Glarin7, Stuart B. Murray8, Ben J. Harrison5, Priya Sumithran9,10, Robyn M. Brown1,2, Trevor Steward5,6
  1. Department of Biochemistry and Pharmacology, University of Melbourne,Parkville, VIC Australia
  2. Florey Institute of Neuroscience and Mental Health, University of Melbourne,Parkville, VIC Australia
  3. Turner Institute for Brain and Mental Health, School of Psychological Sciences, Monash University,Clayton, VIC Australia
  4. Monash Biomedical Imaging, Monash University,Clayton, VIC Australia
  5. Department of Psychiatry, The University of Melbourne,Parkville, VIC Australia
  6. Melbourne School of Psychological Sciences, The University of Melbourne,Parkville, VIC Australia
  7. Melbourne Brain Centre Imaging Unit, Department of Radiology, University of Melbourne,Parkville, VIC Australia
  8. Department of Psychiatry and Biobehavioral Sciences, University of California,Los Angeles, CA USA
  9. Department of Surgery, School of Translational Medicine, Monash University,Melbourne, VIC Australia
  10. Department of Endocrinology and Diabetes, Alfred Health,Melbourne, VIC Australia
Journal: Nature communications, volume 17, issue 1, article 5004
Dates: received 4 April 2025; accepted 20 March 2026; published online 8 April 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41467-026-71414-y · PMID 41951626 · PMCID PMC13237201 · OpenAlex W7152051041
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: human (organism), systems (subfield)
Methods: Spectral & time-frequency, Connectivity, Statistics, Machine learning, fMRI & imaging, Physiology & signal measures, Smoothing, state filtering, decompositions
Keywords: Neural circuits, Stress and resilience, Feeding behaviour
MeSH: Cues*, Septal Nuclei*, Stress, Psychological*, Taste*, Taste Perception*, Adult, Feeding Behavior, Female, Food, Humans, Magnetic Resonance Imaging, Male, Nucleus Accumbens, Reward, Young Adult (* major topic)
Topic: Biochemical Analysis and Sensing Techniques (Nutrition and Dietetics, Nursing), according to OpenAlex
Citations: not cited yet (Europe PMC); 113 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.

Repositories

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

evaghreins/Gustometer_Stress_BNST_DCM

License: none: the authors keep all their rights
State: the link answers, verified on 29 September 2026
Evidence: files inventoried
Commit: 506df1e4d6d2ce96e4f6f39cbb5bcd3e2572bf7f, 24 March 2026
Languages: MATLAB (25)
Size: 209 files, 25 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 29 September 2026: the link answers
  • 29 September 2026: the link answers
26 files

Zenodo 18738387

License: CC-BY-4.0
State: the link answers, verified on 29 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: “Code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 29 September 2026: the link answers (HTTP 200)
  • 29 September 2026: the link answers (HTTP 200)
At the source:

Code availability statement

The paper has a code 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.1038/s41467-026-71414-y.

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:

  • 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 25 scripts, each with its path and the digest of its content;
  • 9 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.1038/s41467-026-71414-y.

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, 29 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 10 authors, 3 keywords, 15 MeSH terms, 1 funder, 112 references.

Cite

This paper

Guerrero-Hreins, E., Greaves, M. D., Kung, P.-H., Moffat, B. A., Glarin, R. K., Murray, S. B., Harrison, B. J., Sumithran, P., Brown, R. M., & Steward, T. (2026). Bed nucleus of the stria terminalis connectivity during food cue and taste processing under stress. Nature communications, 17(1), 5004. https://doi.org/10.1038/s41467-026-71414-y

BibTeX

@article{guerrerohreins2026bed,
author = {Guerrero-Hreins, Eva and Greaves, Matthew D. and Kung, Po-Han and Moffat, Bradford A. and Glarin, Rebecca K. and Murray, Stuart B. and Harrison, Ben J. and Sumithran, Priya and Brown, Robyn M. and Steward, Trevor},
title = {{Bed nucleus of the stria terminalis connectivity during food cue and taste processing under stress}},
journal = {Nature communications},
year = {2026},
month = apr,
volume = {17},
number = {1},
pages = {5004},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/s41467-026-71414-y},
url = {https://doi.org/10.1038/s41467-026-71414-y},
pmid = {41951626},
pmcid = {PMC13237201}
}

RIS

TY - JOUR
AU - Guerrero-Hreins, Eva
AU - Greaves, Matthew D.
AU - Kung, Po-Han
AU - Moffat, Bradford A.
AU - Glarin, Rebecca K.
AU - Murray, Stuart B.
AU - Harrison, Ben J.
AU - Sumithran, Priya
AU - Brown, Robyn M.
AU - Steward, Trevor
TI - Bed nucleus of the stria terminalis connectivity during food cue and taste processing under stress
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/04/08
VL - 17
IS - 1
SP - 5004
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/s41467-026-71414-y
UR - https://doi.org/10.1038/s41467-026-71414-y
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-71414-y",
"type": "article-journal",
"title": "Bed nucleus of the stria terminalis connectivity during food cue and taste processing under stress",
"container-title": "Nature communications",
"author": [
{
"family": "Guerrero-Hreins",
"given": "Eva"
},
{
"family": "Greaves",
"given": "Matthew D."
},
{
"family": "Kung",
"given": "Po-Han"
},
{
"family": "Moffat",
"given": "Bradford A."
},
{
"family": "Glarin",
"given": "Rebecca K."
},
{
"family": "Murray",
"given": "Stuart B."
},
{
"family": "Harrison",
"given": "Ben J."
},
{
"family": "Sumithran",
"given": "Priya"
},
{
"family": "Brown",
"given": "Robyn M."
},
{
"family": "Steward",
"given": "Trevor"
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "5004",
"DOI": "10.1038/s41467-026-71414-y",
"PMID": "41951626",
"PMCID": "PMC13237201",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41467-026-71414-y",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
8
]
]
}
}

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.1007/s12021-025-09759-w [code]
Limitations of Variational Laplace-Based Dynamic Causal Modelling for Multistable Cortical Circuits.
Journal: Neuroinformatics
In common: Parallel Computing Toolbox, SPM, Signal Processing Toolbox, 1 other tool, 3 references
[2] doi:10.1162/imag.a.1260
Organization, fine structure, and stereotaxic maps of the human Bed nucleus of the Stria terminalis.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: 6 references
[3] doi:10.1038/s41593-026-02205-3 [code]
Competitive interactions shape mammalian brain network dynamics and computation.
Journal: Nature neuroscience
In common: Parallel Computing Toolbox, SPM, Signal Processing Toolbox, 1 other tool, 2 references
[4] doi:10.1016/j.bbih.2026.101299 [code]
Multimodal approach to identify neuropsychophysiological subgroups in myalgic encephalomyelitis/chronic fatigue syndrome and their relevance for rehabilitation: protocol for a mechanistic cross-sectional and longitudinal study.
Journal: Brain, behavior, & immunity - health
In common: Parallel Computing Toolbox, SPM, Signal Processing Toolbox, 1 other tool, 2 references
[5] doi:10.1038/s41467-026-71568-9 [code]
Convergent and selective representations of pain, appetitive processes, aversive processes, and cognitive control in the insula.
Journal: Nature communications
In common: Parallel Computing Toolbox, SPM, Statistics and Machine Learning Toolbox, 2 references
[6] doi:10.1002/mrm.70336 [code]
Offline Reconstruction of Diffusion MRI Acquisitions for Comparison Between Complex PCA-Based and AI-Based Denoising.
Journal: Magnetic resonance in medicine
In common: Parallel Computing Toolbox, SPM, Signal Processing Toolbox, 1 other tool, 1 reference
[7] doi:10.1038/s41467-026-73540-z [code]
Predictive acoustical processing in human cortical layers.
Journal: Nature communications
In common: SPM, Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 2 references
[8] doi:10.1371/journal.pcbi.1014563 [code]
Single pulse electrical stimulation in white matter modulates iEEG visual responses in human early visual cortex.
Journal: PLoS computational biology
In common: Parallel Computing Toolbox, SPM, Signal Processing Toolbox, 1 other tool, systems
[9] doi:10.1002/hbm.70577 [code]
Disgust Propensity, Not Disgust Sensitivity, Shapes the Reactivity of a Subjective Disgust Circuit in Humans.
Journal: Human brain mapping
In common: Parallel Computing Toolbox, SPM, Signal Processing Toolbox, 1 other tool, systems
[10] doi:10.1016/j.celrep.2026.117404 [code]
Action and rest tremor map to distinct networks within the primary motor cortex.
Journal: Cell reports
In common: Parallel Computing Toolbox, SPM, Signal Processing Toolbox, 1 other tool, systems

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.