Brain-heart interactions in late-onset major depressive disorder revealed by multimodal HRV-driven fMRI.
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] § 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] § 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
- function [coef,ve] = modelloAR_TVAR(dati,p,lambda)
- % Time-varying analysis -> COMPUTATION OF MODEL COEFFICIENTS.
- % INPUT:
- % dati = T x M matrix (T = number of samples, M = number of signals to analyze)
- % p = model order
- % lambda = forgetting factor
- % OUTPUT:
- % coef = model coefficient matrix (rows = M; columns = p*M; third dimension = T)
- % ve = prediction error variance matrix (rows = M; columns = p*M; third dimension = T)
- T = size(dati,1); % number of samples
- M = size(dati,2); % number of signals
- % Vector initializations
- p = round(p); % p must be an integer
- THETA = zeros(M, M*p); % AR model parameters: a matrix with
- % as many rows as signals and a number of columns equal
- % to the total number of parameters
- % The THETA matrix defined at time instant n is equivalent to
- % An = [An(1) An(2) ... An(p)]
- % la matrice THETA definita per l'istante temporale n, equivale alla
- % matrice An=[An(1) An(2) ... An(p)]
- P = 1 * eye(M*p); % covariance matrix
- fi_tot = zeros(M*p,1); % observation vector
- % matrices returned as output
- coef = zeros(M, M*p, T);
- ve = zeros(M, M, T);
- if p > T % if there are not enough samples
- return;
- end
- % initialization of the observation vector using all signals
- for sig = 1:M
- fi = dati(1:p, sig);
- fi_tot(sig:M:end) = fi(end:-1:1);
- end
- % initialization of variables that will contain the quantities of interest
- varep = zeros(M, M);
- oldvarep = zeros(M, M);
- w = eye(M) * lambda;
- W = ones(M*p)*lambda;
- % Algorithm
- for i = p+1:T
- Pfi_tot = P * fi_tot;
- denom = mean(diag(w)) + fi_tot' * Pfi_tot;
- % time-varying gain
- K = Pfi_tot / denom;
- % covariance matrix update
- P = (P - K * fi_tot' * P) ./ W;
- % the previous lines are all correct
- sample = dati(i,:);
- % a priori error
- E = sample' - THETA * fi_tot;
- % a priori error variance
- % vvv = (E*E').*(1-w) + oldvvv.*w;
- % model coefficient update
- THETA = THETA + E * K';
- % a posteriori error computed with the updated coefficients
- Ep = sample' - THETA * fi_tot;
- % prediction error variance (a posteriori prediction error)
- varep = (Ep * Ep') .* (1-w) + oldvarep .* w;
- % observation vector update
- fi_tot = [sample'; fi_tot(1:M*p - M)];
- oldvarep = varep;
- % oldvvv = vvv;
- THETA(2,1:2:end) = 0; % constraint to obtain an ARX model
- % save parameters
- coef(:,:,i) = THETA;
- ve(:,:,i) = varep;
- end
- % Make the first 2p rows have the coefficients found at rows 2p+1 and 2p+2,
- % corresponding to the (p+1)-th sample of the signal.
- % Do the same for the forgetting factor and for the prediction error variance.
- for ll = 1:p
- coef(:,:,ll) = coef(:,:,p+1);
- ve(:,:,ll) = ve(:,:,p+1);
- end
modelloAR_TVAR.m, no license · at the source
Overview
- Department of Electronics Information and Bioengineering, Politecnico di Milano, Milan, Italy
- Department of Neurosciences and Mental Health, Fondazione IRCCS Ca’ Granda Ospedale Maggiore Policlinico, Milan, Italy
- Department of Pathophysiology and Transplantation, Università degli Studi di Milano, Milan, Italy
- Neurology Unit, Fondazione IRCCS Ca’ Granda Ospedale Maggiore Policlinico, Milan, Italy
- Stem Cell Laboratory, Dino Ferrari Center, Department of Pathophysiology and Trasplantation, Università degli Studi di Milano, Milan, Italy
- Neuroradiology Unit, Fondazione IRCCS Ca’ Granda Ospedale Maggiore Policlinico, Milan, Italy
- Fondazione IRCCS Ca’ Granda Ospedale Maggiore Policlinico, Milan, Italy
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
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/
TVAR/ , MATLAB, 66 linesclosed_loop_poles.m - code/
TVAR/ , MATLAB, 99 linesmio_residui2.m - code/
TVAR/ , MATLAB, 97 lines, 1 matchmodelloAR_TVAR.m - code/
TVAR/ , MATLAB, 167 lines, 1 matchstimaPSD_TVAR_mia.m - code/
a_EEG_ECG_preprocessing. , MATLAB, to read at its sourcemlx - code/
b_Rpeaks_detection_and_H , MATLAB, to read at its sourceRV.mlx - code/
c_compute_HRV_regressors , MATLAB, to read at its source.mlx - code/
d_SPM_1st_level.mlx , MATLAB, to read at its source - code/
e_SPM_2nd_level.mlx , MATLAB, to read at its source - code/
f_partialcorr_betas_and_ , MATLAB, to read at its sourceclinical_scores.mlx
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://
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/
url = {https://
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/
VL - 9
IS - 1
SP - 956
SN - 2399-3642
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"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":
"volume": "9",
"issue": "1",
"page": "956",
"DOI": "10.1038/
"PMID": "42098292",
"PMCID": "PMC13369760",
"ISSN": "2399-3642",
"publisher": "Nature Publishing Group",
"URL": "https://
"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 mappingIn 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 neuroscienceIn 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 physiologyIn 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 biologyIn 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: NeuroImageIn 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 medicineIn 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 SciencesIn 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 consciousnessIn 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.
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, 10 scripts, and 2 matches 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:5ff6dc84ce863977…
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.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:endHTML
<!-- 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.
