OSCR

Autonomic and limbic system functioning, early life stress, and depressive symptoms in adolescence.

Code ↔ Paper

4 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 4 matches
  1. [1] § Methods › Statistical analyses ↔ h2_recovery_connectivity_els_cdi.py, lines 1–15 · score 0.82 · way interaction, simple slopes, way model, joint model, RespHRV, SD
  2. [2] § Methods › Statistical analyses ↔ h1_rsphrv_hipcamy_connectivity.py, lines 1–11 · score 0.80 · Benjamini Hochberg FDR, TSST phase, FDR correction, hippocampal amygdala connection, RespHRV, regressed
  3. [3] § Methods › Statistical analyses ↔ h1_rsphrv_hipcamy_connectivity.py, lines 1–11 · score 0.69 · Benjamini Hochberg FDR, hippocampal amygdala connectivity, RespHRV, regression, score
  4. [4] § Results › Hypothesis 2: ELS moderation of the joint association of RespHRV recovery and connectivity with depressive symptoms ↔ h2_recovery_connectivity_els_cdi.py, lines 1–15 · score 0.69 · HIP AMY connectivity, joint model, adversity dimensions, RespHRV, concurrent, interaction

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

Python · 168 lines · 9.7 KB · no license · 2 matches

  1. """
  2. Hypothesis 2: RespHRV recovery × HIP-AMY connectivity × ELS → CDI-S
  3. - Two-way model: recovery × connectivity (no adversity)
  4. - Three-way models: recovery × connectivity × threat (separate)
  5. recovery × connectivity × deprivation (separate)
  6. recovery × connectivity × unpredictability (separate)
  7. - Joint model: all three adversity dimensions simultaneously
  8. - Simple-slopes decomposition at ±1 SD for significant three-way interactions
  9. - Outcome: CDI-S total score (concurrent, matched to TSST timepoint)
  10. - Covariates: age, mean framewise displacement (mFD)
  11. - All continuous predictors z-scored
  12. """
  13. import pandas as pd
  14. import numpy as np
  15. from scipy import stats
  16. # ── Paths ──────────────────────────────────────────────────────────────────────
  17. OD = '/Users/eu/Library/CloudStorage/OneDrive-Stanford/ELS Actigraphy/'
  18. BOX = '/Users/eu/Library/CloudStorage/Box-Box/mooddata_nophi/ELS_RDoC/2. Curated Sheets/'
  19. ELS_D = '/Users/eu/Library/CloudStorage/OneDrive-Stanford/Research Projects/1 - Data/ELS/'
  20. cardiac = pd.read_csv(OD + 'analytic_dataset.csv')
  21. amy = pd.read_csv(ELS_D + '0 - curated/amygda-hippo/amygdala_connectivity.csv')
  22. t1 = pd.read_csv(BOX + 'ELS_T1_Child_Curated.csv').rename(columns={'ELS_ID': 'ID'})
  23. t2 = pd.read_csv(BOX + 'ELS_T2_Curated.csv').rename(columns={'ELS_ID': 'ID'})
  24. threat_df = pd.read_csv(ELS_D + '0 - curated/els/els_threat_score.csv').rename(columns={'ELS_ID': 'ID'})
  25. depri_df = pd.read_csv(ELS_D + '0 - curated/els/els_deprivation.csv').rename(columns={'ELS_ID': 'ID'})
  26. unpred_df = pd.read_csv(ELS_D + '0 - curated/els/els_unpredict_score.csv').rename(columns={'ELS_ID': 'ID'})
  27. # ── Merge at matched timepoints ────────────────────────────────────────────────
  28. brain_col = 'tian_HIP_tail_rh_x_lAMY_lh'
  29. amy_t1 = amy[amy['timepoint'] == 'T1'][['subject_id', 'mean_fd', brain_col]]\
  30. .rename(columns={'subject_id': 'ID'})
  31. amy_t2 = amy[amy['timepoint'] == 'T2'][['subject_id', 'mean_fd', brain_col]]\
  32. .rename(columns={'subject_id': 'ID'})
  33. m1 = cardiac[cardiac['tsst_timepoint'] == 1].merge(amy_t1, on='ID', how='inner')
  34. m2 = cardiac[cardiac['tsst_timepoint'] == 2].merge(amy_t2, on='ID', how='inner')
  35. df = pd.concat([m1, m2], ignore_index=True)
  36. # Concurrent CDI-S
  37. cdi1 = df['ID'].map(t1.drop_duplicates('ID').set_index('ID')['CDI_total.T1'])
  38. cdi2 = df['ID'].map(t2.drop_duplicates('ID').set_index('ID')['CDI_total.T2'])
  39. df['CDI_c'] = np.where(df['tsst_timepoint'] == 1, cdi1, cdi2).astype(float)
  40. # Adversity scores
  41. df['threat'] = df['ID'].map(threat_df.drop_duplicates('ID').set_index('ID')['threat_sumsev'])
  42. df['depri'] = df['ID'].map(depri_df.drop_duplicates('ID').set_index('ID')['deprivation_sumsev'])
  43. df['unpred'] = df['ID'].map(unpred_df.drop_duplicates('ID').set_index('ID')['unpred_sumsev'])
  44. # ── Analytic sample ────────────────────────────────────────────────────────────
  45. cols = ['recovery_RSA', brain_col, 'threat', 'depri', 'unpred',
  46. 'CDI_c', 'age_at_tsst', 'mean_fd']
  47. d = df[cols].apply(pd.to_numeric, errors='coerce').dropna()
  48. N = len(d)
  49. print(f'Analytic N = {N}')
  50. # ── Z-score all continuous predictors ─────────────────────────────────────────
  51. def zscore(x):
  52. return (x - x.mean()) / x.std()
  53. rv = zscore(d['recovery_RSA'].values.astype(float)); rsa_sd = d['recovery_RSA'].std()
  54. bv = zscore(d[brain_col].values.astype(float)); brain_sd = 1.0 # already z-scored → SD=1
  55. tv = zscore(d['threat'].values.astype(float)); threat_sd = 1.0
  56. dv = zscore(d['depri'].values.astype(float)); depri_sd = 1.0
  57. uv = zscore(d['unpred'].values.astype(float)); unpred_sd = 1.0
  58. av = zscore(d['age_at_tsst'].values.astype(float))
  59. fv = zscore(d['mean_fd'].values.astype(float))
  60. Y = d['CDI_c'].values.astype(float)
  61. # ── OLS helper ────────────────────────────────────────────────────────────────
  62. def ols(C, y):
  63. b, _, _, _ = np.linalg.lstsq(C, y, rcond=None)
  64. dof = len(y) - C.shape[1]
  65. mse = np.sum((y - C @ b) ** 2) / dof
  66. cov_m = mse * np.linalg.inv(C.T @ C)
  67. se = np.sqrt(np.diag(cov_m))
  68. t = b / se
  69. p = np.array([float(2 * stats.t.sf(abs(ti), dof)) for ti in t])
  70. return b, se, t, p, dof, cov_m
  71. def print_model(labels, b, se, t, p, dof, title=''):
  72. if title:
  73. print(f'\n{"="*65}')
  74. print(title)
  75. print(f'{"="*65}')
  76. print(f'{"Term":<26} {"β":>8} {"SE":>7} {"t":>7} {"p":>8}')
  77. print('-' * 60)
  78. for lbl, bi, si, ti, pi in zip(labels, b, se, t, p):
  79. sig = ' **' if pi < .01 else (' *' if pi < .05 else (' +' if pi < .10 else ''))
  80. print(f'{lbl:<26} {bi:>+8.3f} {si:>7.3f} {ti:>+7.2f} {pi:>8.4f}{sig}')
  81. def simple_slopes(b, cov_m, dof, adv_sd=1.0):
  82. """
  83. Simple slopes of recovery at brain ±1 SD × adversity ±1 SD.
  84. Model index: 0=int, 1=recov, 2=brain, 3=adv, 4=r×b, 5=r×adv, 6=b×adv, 7=r×b×adv, 8=age, 9=mfd
  85. """
  86. print(f'\n Simple slopes of recovery at brain ±1 SD × adversity ±1 SD:')
  87. print(f' {"Condition":<30} {"slope":>8} {"SE":>7} {"t":>7} {"p":>8}')
  88. print(' ' + '-' * 58)
  89. for b_lbl, bval in [('High connectivity (+1 SD)', 1.0), ('Low connectivity (−1 SD)', -1.0)]:
  90. for a_lbl, aval in [('High adversity (+1 SD)', adv_sd), ('Low adversity (−1 SD)', -adv_sd)]:
  91. ss = float(b[1] + b[4]*bval + b[5]*aval + b[7]*bval*aval)
  92. g = np.array([1.0, bval, aval, bval*aval])
  93. idx = [1, 4, 5, 7]
  94. var = float(g @ cov_m[np.ix_(idx, idx)] @ g)
  95. tv = ss / np.sqrt(var)
  96. pv = float(2 * stats.t.sf(abs(tv), dof))
  97. sig = ' **' if pv < .01 else (' *' if pv < .05 else (' +' if pv < .10 else ''))
  98. cond = f'{b_lbl}, {a_lbl}'
  99. print(f' {cond:<30} {ss:>+8.3f} {np.sqrt(var):>7.3f} {tv:>+7.2f} {pv:>8.4f}{sig}')
  100. # ══════════════════════════════════════════════════════════════════════════════
  101. # Model 0: Two-way (recovery × connectivity, no adversity)
  102. # ══════════════════════════════════════════════════════════════════════════════
  103. C0 = np.column_stack([np.ones(N), rv, bv, rv*bv, av, fv])
  104. lb0 = ['intercept', 'recovery', 'connectivity', 'recovery×connectivity', 'age', 'mFD']
  105. b0, se0, t0, p0, dof0, _ = ols(C0, Y)
  106. print_model(lb0, b0, se0, t0, p0, dof0,
  107. title='Model 0: Recovery × Connectivity → CDI-S (two-way, no adversity)')
  108. # ══════════════════════════════════════════════════════════════════════════════
  109. # Models 1–3: Separate three-way models
  110. # ══════════════════════════════════════════════════════════════════════════════
  111. adversity_vars = [
  112. ('Threat', tv, 'threat'),
  113. ('Deprivation', dv, 'depri'),
  114. ('Unpredictability', uv, 'unpred'),
  115. ]
  116. for name, av_vec, _ in adversity_vars:
  117. C = np.column_stack([np.ones(N), rv, bv, av_vec,
  118. rv*bv, rv*av_vec, bv*av_vec, rv*bv*av_vec,
  119. av, fv])
  120. lb = ['intercept', 'recovery', 'connectivity', name,
  121. 'recov×conn', f'recov×{name}', f'conn×{name}',
  122. f'recov×conn×{name}', 'age', 'mFD']
  123. b_, se_, t_, p_, dof_, cov_ = ols(C, Y)
  124. print_model(lb, b_, se_, t_, p_, dof_,
  125. title=f'Model: Recovery × Connectivity × {name} → CDI-S')
  126. # Decompose if three-way is significant
  127. if p_[7] < .10:
  128. simple_slopes(b_, cov_, dof_)
  129. # ══════════════════════════════════════════════════════════════════════════════
  130. # Model 4: Joint model — all three adversity dimensions simultaneously
  131. # ══════════════════════════════════════════════════════════════════════════════
  132. # Predictors: recovery, brain, threat, depri, unpred,
  133. # r×b, r×t, r×d, r×u, b×t, b×d, b×u,
  134. # r×b×t, r×b×d, r×b×u,
  135. # age, mfd
  136. C_joint = np.column_stack([
  137. np.ones(N),
  138. rv, bv, tv, dv, uv,
  139. rv*bv, rv*tv, rv*dv, rv*uv,
  140. bv*tv, bv*dv, bv*uv,
  141. rv*bv*tv, rv*bv*dv, rv*bv*uv,
  142. av, fv
  143. ])
  144. lb_joint = [
  145. 'intercept', 'recovery', 'connectivity', 'threat', 'deprivation', 'unpredictability',
  146. 'recov×conn', 'recov×threat', 'recov×depri', 'recov×unpred',
  147. 'conn×threat', 'conn×depri', 'conn×unpred',
  148. 'recov×conn×threat', 'recov×conn×depri', 'recov×conn×unpred',
  149. 'age', 'mFD'
  150. ]
  151. b_j, se_j, t_j, p_j, dof_j, cov_j = ols(C_joint, Y)
  152. print_model(lb_joint, b_j, se_j, t_j, p_j, dof_j,
  153. title='Joint Model: Recovery × Connectivity × [Threat + Deprivation + Unpredictability] → CDI-S')

h2_recovery_connectivity_els_cdi.py at commit ef9d4a5, no license · at the source

Overview

Authors: Eugenia Giampetruzzi1, Chase Antonacci1, Jean Rachel Bahk1, Jessica L Buthmann1, Yoonji Lee1, Katharina Kircanski2, Ian H Gotlib1
  1. Department of Psychology, 450 Jane Stanford Way, Building 420, Stanford, CA, 94305, USA
  2. Department of Psychology, University of Southern California, 3620 S. McClintock Ave, Los Angeles, CA, 90089, USA
Institutions: Stanford University (United States); University of Southern California (United States)
Journal: Neurobiology of stress, volume 44, article 100847
Dates: received 13 May 2026; accepted 14 August 2026; published online 15 August 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1016/j.ynstr.2026.100847 · PMID 42656666 · PMCID PMC13507736 · OpenAlex W7203543546
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: other (modality), human (organism), depression (population), developmental (subfield)
Methods: Spectral & time-frequency, Statistics, Preprocessing, Connectivity, fMRI & imaging, Evoked potentials, Physiology & signal measures
Keywords: Early life stress, Heart rate variability, Hippocampus, Amygdala, Adolescent depression, Neurovisceral integration
Topic: Heart Rate Variability and Autonomic Control (Cardiology and Cardiovascular Medicine, Medicine), according to OpenAlex
Citations: not cited yet (Europe PMC); 75 references in the paper
Research resources: RRID:SCR_016216

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 4 matches between paragraphs and lines of code.

eugiampetruzzi/autonomic-limbic

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: ef9d4a5e95ff1c90d74278a867e63c86181c5a08, 5 May 2026
Languages: Python (2)
Size: 3 files, 2 scripts
Software Heritage: not archived
Found in: the text, “Statistical analyses”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (2 files), pandas (2 files), SciPy (2 files)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
3 files

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;
  • 2 scripts, each with its path and the digest of its content;
  • 4 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.1016/j.ynstr.2026.100847.

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 2, 28 September 2026

  • Funding: added National Institute of Mental Health; Division of Graduate Education

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, pages, dates, 7 authors, 6 keywords, 73 references, 1 RRID.

Cite

This paper

Giampetruzzi, E., Antonacci, C., Bahk, J. R., Buthmann, J. L., Lee, Y., Kircanski, K., & Gotlib, I. H. (2026). Autonomic and limbic system functioning, early life stress, and depressive symptoms in adolescence. Neurobiology of stress, 44, 100847. https://doi.org/10.1016/j.ynstr.2026.100847

BibTeX

@article{giampetruzzi2026autonomic,
author = {Giampetruzzi, Eugenia and Antonacci, Chase and Bahk, Jean Rachel and Buthmann, Jessica L and Lee, Yoonji and Kircanski, Katharina and Gotlib, Ian H},
title = {{Autonomic and limbic system functioning, early life stress, and depressive symptoms in adolescence}},
journal = {Neurobiology of stress},
year = {2026},
month = aug,
volume = {44},
pages = {100847},
publisher = {Elsevier},
issn = {2352-2895},
doi = {10.1016/j.ynstr.2026.100847},
url = {https://doi.org/10.1016/j.ynstr.2026.100847},
pmid = {42656666},
pmcid = {PMC13507736}
}

RIS

TY - JOUR
AU - Giampetruzzi, Eugenia
AU - Antonacci, Chase
AU - Bahk, Jean Rachel
AU - Buthmann, Jessica L
AU - Lee, Yoonji
AU - Kircanski, Katharina
AU - Gotlib, Ian H
TI - Autonomic and limbic system functioning, early life stress, and depressive symptoms in adolescence
T2 - Neurobiology of stress
J2 - Neurobiol Stress
PY - 2026
DA - 2026/08/15
VL - 44
SP - 100847
SN - 2352-2895
PB - Elsevier
DO - 10.1016/j.ynstr.2026.100847
UR - https://doi.org/10.1016/j.ynstr.2026.100847
LA - en
ER -

CSL-JSON

{
"id": "10.1016/j.ynstr.2026.100847",
"type": "article-journal",
"title": "Autonomic and limbic system functioning, early life stress, and depressive symptoms in adolescence",
"container-title": "Neurobiology of stress",
"author": [
{
"family": "Giampetruzzi",
"given": "Eugenia"
},
{
"family": "Antonacci",
"given": "Chase"
},
{
"family": "Bahk",
"given": "Jean Rachel"
},
{
"family": "Buthmann",
"given": "Jessica L"
},
{
"family": "Lee",
"given": "Yoonji"
},
{
"family": "Kircanski",
"given": "Katharina"
},
{
"family": "Gotlib",
"given": "Ian H"
}
],
"container-title-short": "Neurobiol Stress",
"volume": "44",
"page": "100847",
"DOI": "10.1016/j.ynstr.2026.100847",
"PMID": "42656666",
"PMCID": "PMC13507736",
"ISSN": "2352-2895",
"publisher": "Elsevier",
"URL": "https://doi.org/10.1016/j.ynstr.2026.100847",
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
15
]
]
}
}

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.1016/j.bpsgos.2026.100782 [code]
Early Adversity Imprints Multisystem Biological Aging: A Longitudinal Study of Adversity Dimensions and Aging Phenotypes Across Adolescence.
Journal: Biological psychiatry global open science
In common: pandas, SciPy, NumPy, developmental, 1 reference, 2 authors
[2] doi:10.1038/s42003-026-10156-5 [code]
Brain-heart interactions in late-onset major depressive disorder revealed by multimodal HRV-driven fMRI.
Journal: Communications biology
In common: depression, other, 7 references
[3] doi:10.1016/j.bbih.2026.101280
Inflammation, fronto-amygdala connectivity, and negative affective reactivity to daily stress in adolescents.
Journal: Brain, behavior, & immunity - health
In common: developmental, 3 references, author Eugenia Giampetruzzi
[4] doi:10.1093/nc/niag009 [code]
Autonomic indicators of self-transcendence: insights from the numadelic VR paradigm.
Journal: Neuroscience of consciousness
In common: pandas, SciPy, NumPy, 3 references
[5] doi:10.1016/j.bbih.2026.101275 [code]
A protocol for the Teen Bugs study: An integrative, multi-omics approach to understanding the role of the gut microbiome and mesocorticolimbic system in adolescent mental health following early adverse caregiving.
Journal: Brain, behavior, & immunity - health
In common: depression, developmental, 2 references
[6] doi:10.1017/s0033291726104838 [code]
Variations of structural-functional coupling in post-traumatic stress disorder are associated with underlying molecular and transcriptional features.
Journal: Psychological medicine
In common: pandas, SciPy, NumPy, 2 references
[7] 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: 3 references
[8] doi:10.1016/j.dcn.2026.101769 [code]
Differential adolescent neurodevelopment of emotion processing across internalizing psychopathology and childhood adversity.
Journal: Developmental cognitive neuroscience
In common: 3 references
[9] doi:10.1162/netn.a.569 [code]
NeuroMArVL: An interactive and collaborative web-based tool for visualizing brain networks.
Journal: Network neuroscience (Cambridge, Mass.)
In common: pandas, SciPy, NumPy, 2 references
[10] doi:10.1002/hbm.70600 [code]
A Data-Driven Closed-Loop Control Approach to Drive Neural State Transitions for Mechanistic Insight.
Journal: Human brain mapping
In common: pandas, SciPy, NumPy, depression, 1 reference

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.