Brain-heart interactions in late-onset major depressive disorder revealed by multimodal HRV-driven fMRI.
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] § 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] § 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
- 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, not shown heremlx - code/
b_Rpeaks_detection_and_H , MATLAB, not shown hereRV.mlx - code/
c_compute_HRV_regressors , MATLAB, not shown here.mlx - code/
d_SPM_1st_level.mlx , MATLAB, not shown here - code/
e_SPM_2nd_level.mlx , MATLAB, not shown here - code/
f_partialcorr_betas_and_ , MATLAB, not shown hereclinical_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.1093/nc/niag009 [code]
- Autonomic indicators of self-transcendence: insights from the numadelic VR paradigm.Journal: Neuroscience of consciousnessIn 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 stressIn 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: PsychophysiologyIn 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. ClinicalIn 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. ClinicalIn 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 psychiatryIn 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 neuroscienceIn 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 psychiatryIn 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 psychiatryIn 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: PsychophysiologyIn 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.
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:503d3feb3de82886…
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.
