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.

2 blocks of code here have 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 2 matches · 1 of them tie a paragraph to a whole file without 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 · block oscr:b:7K58WYQNRRCRY-D · Report a mismatch
  2. [2] § Materials and methods › HRV regressors ↔ code/TVAR/stimaPSD_TVAR_mia.m, lines 1 to 63 · score 0.59 · cross spectrum, model coefficients, PSD11, PSD12, partial spectra, power · block oscr:b:GM5JK62PPCSAA-M · 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 · 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 (how the code is found and 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 Portfolio},
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 Portfolio
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 Portfolio",
"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.1002/hbm.70080 [code]
Multi-Metric Approach for the Comparison of Denoising Techniques for Resting-State fMRI.
Journal: Human brain mapping
In common: fMRI, 5 references, 3 authors
[2] doi:10.1093/scan/nsag054
Distinct brain systems support afferent and efferent autonomic activity.
Journal: Social cognitive and affective neuroscience
In common: other, fMRI, 14 references
[3] doi:10.1162/netn_a_00369 [code]
Measures of the coupling between fluctuating brain network organization and heartbeat dynamics.
Journal: Network neuroscience (Cambridge, Mass.)
In common: 11 references
[4] doi:10.1152/ajpregu.00251.2022 [code]
Dynamic fluctuations in ascending heart-to-brain communication under mental stress.
Journal: American journal of physiology. Regulatory, integrative and comparative physiology
In common: 11 references
[5] doi:10.1038/s42003-025-09026-3 [code]
When your heart isn't in it anymore: cardiac correlates of task disengagement.
Journal: Communications biology
In common: other, 11 references
[6] doi:10.1016/j.neuroimage.2024.120869 [code]
Relationship between central autonomic effective connectivity and heart rate variability: A Resting-state fMRI dynamic causal modeling study.
Journal: NeuroImage
In common: other, fMRI, 10 references
[7] doi:10.1109/jtehm.2023.3280974 [code]
Complex Brain-Heart Mapping in Mental and Physical Stress.
Journal: IEEE journal of translational engineering in health and medicine
In common: other, 10 references
[8] doi:10.1111/nyas.70138 [code]
Cardiovascular Activity Predominantly Modulates Brain Dynamics in Non-REM Sleep Transitions.
Journal: Annals of the New York Academy of Sciences
In common: other, 10 references
[9] 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
[10] doi:10.1002/advs.202503606 [code]
Enhanced Brain-Heart Connectivity as a Precursor of Reduced State Anxiety after Therapeutic Virtual Reality Immersion.
Journal: Advanced science (Weinheim, Baden-Wurttemberg, Germany)
In common: 10 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.

Add the badge to the code's README

OSCR: the badge of this paper

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 -->
[![OSCR](https://openscicode.org/badge/doi/10.1038/s42003-026-10156-5.svg)](https://openscicode.org/badge/doi/10.1038/s42003-026-10156-5)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1038/s42003-026-10156-5.svg
   :target: https://openscicode.org/badge/doi/10.1038/s42003-026-10156-5
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s42003-026-10156-5"><img src="https://openscicode.org/badge/doi/10.1038/s42003-026-10156-5.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.