OSCR

Brain-heart interactions in late-onset major depressive disorder revealed by multimodal HRV-driven fMRI.

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 of them tie a paragraph to a whole file, not to given lines: a weak match, whose lines are not tinted
  1. [1] § Materials and methods › HRV regressors ↔ code/TVAR/modelloAR_TVAR.m, the whole file · a weak match · score 0.66 · forgetting factor, prediction error, algorithm, vector, temporal, matrices
  2. [2] § Materials and methods › HRV regressors ↔ code/TVAR/stimaPSD_TVAR_mia.m, lines 1–63 · score 0.59 · cross spectrum, model coefficients, PSD11, PSD12, partial spectra, power

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 · 2.7 KB · no license · 1 match

  1. function [coef,ve] = modelloAR_TVAR(dati,p,lambda)
  2. % Time-varying analysis -> COMPUTATION OF MODEL COEFFICIENTS.
  3. % INPUT:
  4. % dati = T x M matrix (T = number of samples, M = number of signals to analyze)
  5. % p = model order
  6. % lambda = forgetting factor
  7. % OUTPUT:
  8. % coef = model coefficient matrix (rows = M; columns = p*M; third dimension = T)
  9. % ve = prediction error variance matrix (rows = M; columns = p*M; third dimension = T)
  10. T = size(dati,1); % number of samples
  11. M = size(dati,2); % number of signals
  12. % Vector initializations
  13. p = round(p); % p must be an integer
  14. THETA = zeros(M, M*p); % AR model parameters: a matrix with
  15. % as many rows as signals and a number of columns equal
  16. % to the total number of parameters
  17. % The THETA matrix defined at time instant n is equivalent to
  18. % An = [An(1) An(2) ... An(p)]
  19. % la matrice THETA definita per l'istante temporale n, equivale alla
  20. % matrice An=[An(1) An(2) ... An(p)]
  21. P = 1 * eye(M*p); % covariance matrix
  22. fi_tot = zeros(M*p,1); % observation vector
  23. % matrices returned as output
  24. coef = zeros(M, M*p, T);
  25. ve = zeros(M, M, T);
  26. if p > T % if there are not enough samples
  27. return;
  28. end
  29. % initialization of the observation vector using all signals
  30. for sig = 1:M
  31. fi = dati(1:p, sig);
  32. fi_tot(sig:M:end) = fi(end:-1:1);
  33. end
  34. % initialization of variables that will contain the quantities of interest
  35. varep = zeros(M, M);
  36. oldvarep = zeros(M, M);
  37. w = eye(M) * lambda;
  38. W = ones(M*p)*lambda;
  39. % Algorithm
  40. for i = p+1:T
  41. Pfi_tot = P * fi_tot;
  42. denom = mean(diag(w)) + fi_tot' * Pfi_tot;
  43. % time-varying gain
  44. K = Pfi_tot / denom;
  45. % covariance matrix update
  46. P = (P - K * fi_tot' * P) ./ W;
  47. % the previous lines are all correct
  48. sample = dati(i,:);
  49. % a priori error
  50. E = sample' - THETA * fi_tot;
  51. % a priori error variance
  52. % vvv = (E*E').*(1-w) + oldvvv.*w;
  53. % model coefficient update
  54. THETA = THETA + E * K';
  55. % a posteriori error computed with the updated coefficients
  56. Ep = sample' - THETA * fi_tot;
  57. % prediction error variance (a posteriori prediction error)
  58. varep = (Ep * Ep') .* (1-w) + oldvarep .* w;
  59. % observation vector update
  60. fi_tot = [sample'; fi_tot(1:M*p - M)];
  61. oldvarep = varep;
  62. % oldvvv = vvv;
  63. THETA(2,1:2:end) = 0; % constraint to obtain an ARX model
  64. % save parameters
  65. coef(:,:,i) = THETA;
  66. ve(:,:,i) = varep;
  67. end
  68. % Make the first 2p rows have the coefficients found at rows 2p+1 and 2p+2,
  69. % corresponding to the (p+1)-th sample of the signal.
  70. % Do the same for the forgetting factor and for the prediction error variance.
  71. for ll = 1:p
  72. coef(:,:,ll) = coef(:,:,p+1);
  73. ve(:,:,ll) = ve(:,:,p+1);
  74. end

modelloAR_TVAR.m, no license · at the source

Overview

Authors: Federica Goffi1, Paolo Enrico2, Pierluigi Reali1, Gabriele Torino2,3, Maria Pia Marra2, Lorena Di Consoli2, Adele Ferro2, Giandomenico Schiena2, Yvan Torrente4,5, Luciano Lombardi6, Fabio M Triulzi6, Anna M Bianchi1,7, Paolo Brambilla2,3, Eleonora Maggioni1,2
  1. Department of Electronics Information and Bioengineering, Politecnico di Milano, Milan, Italy
  2. Department of Neurosciences and Mental Health, Fondazione IRCCS Ca’ Granda Ospedale Maggiore Policlinico, Milan, Italy
  3. Department of Pathophysiology and Transplantation, Università degli Studi di Milano, Milan, Italy
  4. Neurology Unit, Fondazione IRCCS Ca’ Granda Ospedale Maggiore Policlinico, Milan, Italy
  5. Stem Cell Laboratory, Dino Ferrari Center, Department of Pathophysiology and Trasplantation, Università degli Studi di Milano, Milan, Italy
  6. Neuroradiology Unit, Fondazione IRCCS Ca’ Granda Ospedale Maggiore Policlinico, Milan, Italy
  7. Fondazione IRCCS Ca’ Granda Ospedale Maggiore Policlinico, Milan, Italy
Journal: Communications biology, volume 9, issue 1, article 956
Dates: received 11 October 2025; accepted 20 April 2026; published online 8 May 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s42003-026-10156-5 · PMID 42098292 · PMCID PMC13369760 · OpenAlex W7160557179
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: fMRI (modality), other (modality), human (organism), depression (population)
Methods: Spectral & time-frequency, Preprocessing, Connectivity, Statistics, fMRI & imaging, Smoothing, state filtering, decompositions, Evoked potentials, Physiology & signal measures, Machine learning
Keywords: Neurophysiology, Depression, Autonomic nervous system, Functional magnetic resonance imaging, Computational neuroscience
MeSH: Autonomic Nervous System*, Brain*, Heart*, Heart Rate*, Magnetic Resonance Imaging*, Major Depressive Disorder*, Brain Mapping, Electrocardiography, Female, Humans, Male, Middle Aged (* major topic)
Topic: Heart Rate Variability and Autonomic Control (Cardiology and Cardiovascular Medicine, Medicine), according to OpenAlex
Funding: Telethon (GJC21084)
Citations: not cited yet (Europe PMC); 171 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.

OSF 7gp6y

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Languages: MATLAB (10)
Size: 24 files, 10 scripts
Software Heritage: not checked
Found in: “Code availability”
Holds: 6 notebooks
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
  • 28 September 2026: the link answers (HTTP 200)
10 files

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:

  • it points to the authors' code: OSF 7gp6y
  • it says that the code is available on request

Read it in the paper: doi.org/10.1038/s42003-026-10156-5.

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;
  • 10 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.

Data availability statement

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

  • it says that the data are available on request

Read it in the paper: doi.org/10.1038/s42003-026-10156-5.

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

Recorded: type, language, journal, volume, issue, pages, dates, 14 authors, 5 keywords, 12 MeSH terms, 1 funder, 165 references.

Cite

This paper

Goffi, F., Enrico, P., Reali, P., Torino, G., Marra, M. P., Di Consoli, L., Ferro, A., Schiena, G., Torrente, Y., Lombardi, L., Triulzi, F. M., Bianchi, A. M., Brambilla, P., & Maggioni, E. (2026). Brain-heart interactions in late-onset major depressive disorder revealed by multimodal HRV-driven fMRI. Communications biology, 9(1), 956. https://doi.org/10.1038/s42003-026-10156-5

BibTeX

@article{goffi2026brain,
author = {Goffi, Federica and Enrico, Paolo and Reali, Pierluigi and Torino, Gabriele and Marra, Maria Pia and Di Consoli, Lorena and Ferro, Adele and Schiena, Giandomenico and Torrente, Yvan and Lombardi, Luciano and Triulzi, Fabio M and Bianchi, Anna M and Brambilla, Paolo and Maggioni, Eleonora},
title = {{Brain-heart interactions in late-onset major depressive disorder revealed by multimodal HRV-driven fMRI}},
journal = {Communications biology},
year = {2026},
month = may,
volume = {9},
number = {1},
pages = {956},
publisher = {Nature Publishing Group},
issn = {2399-3642},
doi = {10.1038/s42003-026-10156-5},
url = {https://doi.org/10.1038/s42003-026-10156-5},
pmid = {42098292},
pmcid = {PMC13369760}
}

RIS

TY - JOUR
AU - Goffi, Federica
AU - Enrico, Paolo
AU - Reali, Pierluigi
AU - Torino, Gabriele
AU - Marra, Maria Pia
AU - Di Consoli, Lorena
AU - Ferro, Adele
AU - Schiena, Giandomenico
AU - Torrente, Yvan
AU - Lombardi, Luciano
AU - Triulzi, Fabio M
AU - Bianchi, Anna M
AU - Brambilla, Paolo
AU - Maggioni, Eleonora
TI - Brain-heart interactions in late-onset major depressive disorder revealed by multimodal HRV-driven fMRI
T2 - Communications biology
J2 - Commun Biol
PY - 2026
DA - 2026/05/08
VL - 9
IS - 1
SP - 956
SN - 2399-3642
PB - Nature Publishing Group
DO - 10.1038/s42003-026-10156-5
UR - https://doi.org/10.1038/s42003-026-10156-5
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s42003-026-10156-5",
"type": "article-journal",
"title": "Brain-heart interactions in late-onset major depressive disorder revealed by multimodal HRV-driven fMRI",
"container-title": "Communications biology",
"author": [
{
"family": "Goffi",
"given": "Federica"
},
{
"family": "Enrico",
"given": "Paolo"
},
{
"family": "Reali",
"given": "Pierluigi"
},
{
"family": "Torino",
"given": "Gabriele"
},
{
"family": "Marra",
"given": "Maria Pia"
},
{
"family": "Di Consoli",
"given": "Lorena"
},
{
"family": "Ferro",
"given": "Adele"
},
{
"family": "Schiena",
"given": "Giandomenico"
},
{
"family": "Torrente",
"given": "Yvan"
},
{
"family": "Lombardi",
"given": "Luciano"
},
{
"family": "Triulzi",
"given": "Fabio M"
},
{
"family": "Bianchi",
"given": "Anna M"
},
{
"family": "Brambilla",
"given": "Paolo"
},
{
"family": "Maggioni",
"given": "Eleonora"
}
],
"container-title-short": "Commun Biol",
"volume": "9",
"issue": "1",
"page": "956",
"DOI": "10.1038/s42003-026-10156-5",
"PMID": "42098292",
"PMCID": "PMC13369760",
"ISSN": "2399-3642",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s42003-026-10156-5",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
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.1093/nc/niag009 [code]
Autonomic indicators of self-transcendence: insights from the numadelic VR paradigm.
Journal: Neuroscience of consciousness
In common: 10 references
[2] doi:10.1016/j.ynstr.2026.100847 [code]
Autonomic and limbic system functioning, early life stress, and depressive symptoms in adolescence.
Journal: Neurobiology of stress
In common: depression, other, 7 references
[3] doi:10.1111/psyp.70271 [code]
Disentangling Respiratory Phase-Dependent and Phase-Independent Components of Anticipatory Cardiac Deceleration.
Journal: Psychophysiology
In common: other, 6 references
[4] doi:10.1016/j.nicl.2026.103996
Relationships between brain functional connectivity and resting cardiac autonomic profiles in functional neurological disorder: A pilot study.
Journal: NeuroImage. Clinical
In common: other, fMRI, 5 references
[5] doi:10.1016/j.nicl.2026.104025
Functional brain biomarkers of self-referential bias in remitted depressed outpatients: a randomized controlled trial.
Journal: NeuroImage. Clinical
In common: depression, fMRI, 4 references
[6] doi:10.1038/s41398-026-04333-7
Cardiac vagal activity during in-vivo threat exposure is associated with within-session inhibition of fear and avoidance.
Journal: Translational psychiatry
In common: 5 references
[7] doi:10.3389/fnagi.2026.1742371 [code]
Cross-sectional and longitudinal functional network alterations associated with subthreshold depressive symptoms in healthy older adults.
Journal: Frontiers in aging neuroscience
In common: depression, fMRI, 4 references
[8] doi:10.1038/s41398-026-04206-z
Disrupted hierarchical functional brain organization in affective and psychotic disorders: insights from functional brain gradients.
Journal: Translational psychiatry
In common: depression, 1 reference, author Paolo Brambilla
[9] doi:10.1038/s41398-026-03928-4
Modulatory effects of ketamine on EEG source-based resting state connectivity in treatment resistant depression.
Journal: Translational psychiatry
In common: depression, 4 references
[10] doi:10.1111/psyp.70301
Oscillatory Markers of Interoceptive Attention: Beta Suppression as a Neural Signature of Heartbeat Processing.
Journal: Psychophysiology
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.