OSCR

Age-related differences in hippocampal network engagement during safety processing in adolescents.

Code ↔ Paper

3 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 3 matches
  1. [1] § Results › Post-hoc ROI and Connectivity Results ↔ Code/data_analysis.Rmd, lines 367–430 · score 0.52 · protection accuracy, vmPFC, median, SE, anterior, models
  2. [2] § Methods › Task Design ↔ Code/data_analysis.ipynb, lines 51–66 · score 0.51 · fist, goose, gun, cat, grizzly, stick
  3. [3] § Methods › Task Design ↔ Code/data_analysis.ipynb, lines 51–66 · score 0.51 · fist, goose, gun, cat, grizzly, stick

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

Jupyter notebook · 113 lines · 5.1 KB · no license · 2 matches

  1. # %%
  2. # Setup
  3. import pandas as pd # version 2.1.1
  4. import numpy as np
  5. import os
  6. import matplotlib.pyplot as plt
  7. import seaborn as sns # version 0.13.2
  8. import scipy # version 1.12.0
  9. from scipy.optimize import curve_fit
  10. import scipy.stats as ss
  11. import itertools
  12. from patsy import dmatrices
  13. import statsmodels.api as sm
  14. import statsmodels.formula.api as smf
  15. file_path = './ado_behavioral_data.csv'
  16. all_data = pd.read_csv(file_path)
  17. palette = {'safety': 'cornflowerblue', 'threat': 'lightcoral'}
  18. palette2 = {'safety': 'lightsalmon', 'threat': 'plum'}
  19. # %%
  20. fig, ax = plt.subplots(figsize = (6, 4))
  21. plot_data = all_data.groupby(['participant_num','first_condition','first_win_prob'], as_index=False)['first_win'].mean()
  22. sns.lineplot(data=plot_data, x='first_win_prob', y='first_win', hue='first_condition', err_style='bars', palette=palette)
  23. plt.show()
  24. g = all_data.groupby(['participant_num', 'first_condition'], as_index=False)['first_win'].mean()
  25. print(ss.ttest_rel(g.loc[g.first_condition=='safety']['first_win'], g.loc[g.first_condition=='threat']['first_win']))
  26. # %%
  27. # Heat map
  28. def plot_heat_map(all_data):
  29. fig, axes = plt.subplots(1, 2, figsize=(12, 4))
  30. g_sf = all_data.loc[all_data['first_condition']=='safety'].groupby(['first_win_prob', 'second_win_prob'],
  31. as_index=False)['second_win'].mean()
  32. g_sf = g_sf.pivot(index="first_win_prob", columns="second_win_prob", values="second_win")
  33. sns.heatmap(g_sf, ax=axes[0])
  34. axes[0].set_title('safety first')
  35. g_tf = all_data.loc[all_data['first_condition']=='threat'].groupby(['first_win_prob', 'second_win_prob'],
  36. as_index=False)['second_win'].mean()
  37. g_tf = g_tf.pivot(index="first_win_prob", columns="second_win_prob", values="second_win")
  38. sns.heatmap(g_tf, ax=axes[1])
  39. axes[1].set_title('threat first')
  40. plot_heat_map(all_data)
  41. # %%
  42. mean_first_win_by_stim = all_data.groupby(['participant_num', 'first_safety_value'])['first_win'].mean().reset_index(name='mean_first_win_by_stim')
  43. mean_second_win_by_stim = all_data.groupby(['participant_num', 'second_safety_value'])['second_win'].mean().reset_index(name='mean_second_win_by_stim')
  44. mean_win_by_stim = pd.merge(mean_first_win_by_stim, mean_second_win_by_stim, \
  45. left_on=['participant_num','first_safety_value'], right_on=['participant_num','second_safety_value'], how='left')
  46. title = {-7:"Grizzly", -6:"Lion", -2:"Goose", -1:"Cat", 1:"Fist", 2:"Stick", 6:"Gun", 7:"Grenade"}
  47. mean_win_by_stim['title'] = mean_win_by_stim['first_safety_value'].replace(title)
  48. condition = {-7:"threat", -6:"threat", -2:"threat", -1:"threat", 1:"safety", 2:"safety", 6:"safety", 7:"safety"}
  49. mean_win_by_stim['condition'] = mean_win_by_stim['first_safety_value'].replace(condition)
  50. mean_win_by_stim['mean_total_win_by_stim'] = (mean_win_by_stim['mean_first_win_by_stim'] + mean_win_by_stim['mean_second_win_by_stim'])/2
  51. print(mean_win_by_stim)
  52. # %%
  53. fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(20, 6), sharey=True)
  54. # First stimulus
  55. sns.scatterplot(ax=ax1, data=mean_win_by_stim, x='first_safety_value', y='mean_first_win_by_stim', hue='condition', palette=palette)
  56. # Regression plots for first stimulus
  57. sns.regplot(ax=ax1, data=mean_win_by_stim[mean_win_by_stim['condition'] == 'safety'], x='first_safety_value', y='mean_first_win_by_stim', ci=None, color='cornflowerblue')
  58. sns.regplot(ax=ax1, data=mean_win_by_stim[mean_win_by_stim['condition'] == 'threat'], x='first_safety_value', y='mean_first_win_by_stim', ci=None, color='lightcoral')
  59. # Second stimulus
  60. sns.scatterplot(ax=ax2, data=mean_win_by_stim, x='second_safety_value', y='mean_second_win_by_stim', hue='condition', palette=palette)
  61. # Regression plots for second stimulus
  62. sns.regplot(ax=ax2, data=mean_win_by_stim[mean_win_by_stim['condition'] == 'safety'], x='second_safety_value', y='mean_second_win_by_stim', ci=None, color='cornflowerblue')
  63. sns.regplot(ax=ax2, data=mean_win_by_stim[mean_win_by_stim['condition'] == 'threat'], x='second_safety_value', y='mean_second_win_by_stim', ci=None, color='lightcoral')
  64. plt.show()
  65. # %%
  66. df = mean_win_by_stim[mean_win_by_stim['condition'] == 'safety']
  67. model = smf.ols('mean_first_win_by_stim ~ first_safety_value', data=df).fit()
  68. print(model.summary())
  69. p_value = model.pvalues['first_safety_value']
  70. print(f"Exact p-value: {p_value:.3e}")
  71. # %%
  72. df = mean_win_by_stim[mean_win_by_stim['condition'] == 'threat']
  73. model = smf.ols('mean_first_win_by_stim ~ first_safety_value', data=df).fit()
  74. print(model.summary())
  75. p_value = model.pvalues['first_safety_value']
  76. print(f"Exact p-value: {p_value:.3e}")
  77. # %%
  78. df = mean_win_by_stim[mean_win_by_stim['condition'] == 'safety']
  79. model = smf.ols('mean_second_win_by_stim ~ second_safety_value', data=df).fit()
  80. print(model.summary())
  81. p_value = model.pvalues['second_safety_value']
  82. print(f"Exact p-value: {p_value:.3e}")
  83. # %%
  84. df = mean_win_by_stim[mean_win_by_stim['condition'] == 'threat']
  85. model = smf.ols('mean_second_win_by_stim ~ second_safety_value', data=df).fit()
  86. print(model.summary())
  87. p_value = model.pvalues['second_safety_value']
  88. print(f"Exact p-value: {p_value:.3e}")

data_analysis.ipynb, no license · at the source

Overview

Authors: Yubing Zhang1, Madeline K Coates1, Marta I Garrido1,2, Sarah M Tashjian1
ORCID iDs: Sarah M Tashjian
  1. School of Psychological Sciences, The University of Melbourne, Melbourne, VIC 3010, Australia
  2. Graeme Clark Institute for Biomedical Engineering, The University of Melbourne, Melbourne, VIC 3010, Australia
Institutions: The University of Melbourne (Australia)
Journal: Developmental cognitive neuroscience, volume 81, article 101791
Dates: received 19 June 2025; accepted 26 July 2026; published online 28 July 2026; in print July 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1016/j.dcn.2026.101791 · PMID 42531887 · PMCID PMC13452386 · OpenAlex W7171521240
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: fMRI (modality), human (organism), developmental (subfield)
Methods: Statistics, Machine learning, fMRI & imaging, Single-unit activity, calcium imaging
Keywords: Adolescence, FMRI, Hippocampus, Safety, Threat
Topic: Neural and Behavioral Psychology Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 97 references in the paper

Abstract

Adolescence is a period characterized by exploration, altered risk-taking, and increased vulnerability to mental health disorders. These phenomena may reflect underlying challenges in safety evaluation. Successfully navigating adolescence may therefore be related to the maturation of neural circuits that support safety evaluation, yet how these mechanisms function during development remains unclear. Using 7-Tesla functional magnetic resonance imaging, we recorded neural response in 33 adolescents (MAge = 14.88 years, 19 females) during evaluation of threat (external cues that signal potential danger) and protection (resources available to an agent that increase safety). Our findings reveal age-related differences in neural recruitment during accurate estimation of protection, such that younger adolescents (12–14 years) exhibited greater hippocampal engagement, whereas older adolescents (15–17 years) exhibited a more integrated circuit involving the hippocampus and anterior ventromedial prefrontal cortex (vmPFC). Our results also provide insight into how competition between threat and protection is resolved within the visual cortex during adolescent safety evaluation, demonstrating enhanced perceptual sensitivity to protection signals compared to threat. Behavioral analysis across a broader developmental spectrum (N = 63, MAge = 24.18 years, range 12–40 years, 34 females, including adults from prior work) revealed a quadratic association between age and protection estimation accuracy, with lower accuracy in mid-to-late adolescence relative to early adolescence and adulthood. Together, our behavioral and neural results indicate adolescence is an important developmental period for safety processing, particularly with respect to accurately estimating safety.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above, with 3 matches between paragraphs and lines of code.

OSF v3kpx

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Languages: Python (4), Jupyter (1), R (1)
Size: 49 files, 6 scripts
Software Heritage: not checked
Found in: “Data availability”
Holds: 2 notebooks
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (5 files), PsychoPy (4 files), ggplot2 (1 file), Matplotlib (1 file), pandas (1 file), SciPy (1 file), seaborn (1 file), statsmodels (1 file), tidyverse (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
6 files

The paper's code and data availability statement is in the Data section.

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;
  • 6 scripts, each with its path and the digest of its content;
  • 3 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

Task code and behavioral data are available through the Open Science Framework (OSF; https://doi.org/10.17605/OSF.IO/V3KPX). Neuroimaging data are available through the Science Data Bank (https://doi.org/10.57760/sciencedb.26549).

Reproduced under the paper's license (CC BY), from the paper cited above.

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 Brain and Behavior Research Foundation

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, pages, dates, 4 authors, 5 keywords, 95 references.

Cite

This paper

Zhang, Y., Coates, M. K., Garrido, M. I., & Tashjian, S. M. (2026). Age-related differences in hippocampal network engagement during safety processing in adolescents. Developmental cognitive neuroscience, 81, 101791. https://doi.org/10.1016/j.dcn.2026.101791

BibTeX

@article{zhang2026age,
author = {Zhang, Yubing and Coates, Madeline K and Garrido, Marta I and Tashjian, Sarah M},
title = {{Age-related differences in hippocampal network engagement during safety processing in adolescents}},
journal = {Developmental cognitive neuroscience},
year = {2026},
month = jul,
volume = {81},
pages = {101791},
publisher = {Elsevier},
issn = {1878-9293},
doi = {10.1016/j.dcn.2026.101791},
url = {https://doi.org/10.1016/j.dcn.2026.101791},
pmid = {42531887},
pmcid = {PMC13452386}
}

RIS

TY - JOUR
AU - Zhang, Yubing
AU - Coates, Madeline K
AU - Garrido, Marta I
AU - Tashjian, Sarah M
TI - Age-related differences in hippocampal network engagement during safety processing in adolescents
T2 - Developmental cognitive neuroscience
J2 - Dev Cogn Neurosci
PY - 2026
DA - 2026/07/28
VL - 81
SP - 101791
SN - 1878-9293
PB - Elsevier
DO - 10.1016/j.dcn.2026.101791
UR - https://doi.org/10.1016/j.dcn.2026.101791
LA - en
ER -

CSL-JSON

{
"id": "10.1016/j.dcn.2026.101791",
"type": "article-journal",
"title": "Age-related differences in hippocampal network engagement during safety processing in adolescents",
"container-title": "Developmental cognitive neuroscience",
"author": [
{
"family": "Zhang",
"given": "Yubing"
},
{
"family": "Coates",
"given": "Madeline K"
},
{
"family": "Garrido",
"given": "Marta I"
},
{
"family": "Tashjian",
"given": "Sarah M"
}
],
"container-title-short": "Dev Cogn Neurosci",
"volume": "81",
"page": "101791",
"DOI": "10.1016/j.dcn.2026.101791",
"PMID": "42531887",
"PMCID": "PMC13452386",
"ISSN": "1878-9293",
"publisher": "Elsevier",
"URL": "https://doi.org/10.1016/j.dcn.2026.101791",
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
28
]
]
}
}

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.1073/pnas.2603114123 [code]
The human hippocampus can pattern separate memories by meaning.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: PsychoPy, ggplot2, tidyverse, 4 other tools, 2 references
[2] doi:10.1038/s41467-026-75662-w [code]
Distinct Roles of Deep and Superficial Cortical Layers in Tone Prediction, Comparison, and Adaptation in Human Auditory Cortices.
Journal: Nature communications
In common: statsmodels, ggplot2, seaborn, 5 other tools, 2 references
[3] doi:10.1038/s41467-026-71428-6 [code]
Binding items to contexts through conjunctive neural representations with the method of loci.
Journal: Nature communications
In common: statsmodels, ggplot2, seaborn, 5 other tools, 2 references
[4] doi:10.34133/csbj.0042 [code]
Using Steady-State Visual Evoked Potentials to Characterize Wide-Ranging Retinopathy Linked to <i>CRB1</i>: Implications for Clinical Trials.
Journal: Computational and structural biotechnology journal
In common: PsychoPy, statsmodels, ggplot2, 6 other tools
[5] doi:10.1162/imag.a.1279 [code]
Multimodal laminar characterization of visual areas along the cortical hierarchy.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: PsychoPy, statsmodels, pandas, 3 other tools, 2 references
[6] doi:10.1038/s41467-026-71830-0 [code]
Predicting individual differences of fear and cognitive learning and extinction.
Journal: Nature communications
In common: ggplot2, tidyverse, pandas, 2 other tools, 3 references
[7] doi:10.1038/s41467-026-73865-9 [code]
Histamine shapes the neurocomputational dynamics of human learning.
Journal: Nature communications
In common: PsychoPy, ggplot2, seaborn, 5 other tools, 1 reference
[8] doi:10.1002/hbm.70512 [code]
Precision Imaging for Intraindividual Investigation of the Reward Response.
Journal: Human brain mapping
In common: PsychoPy, ggplot2, tidyverse, 3 other tools, fMRI, 2 references
[9] doi:10.1038/s41467-026-70287-5 [code]
Cortical-limbic circuit dynamics of approach-avoidance conflict in humans.
Journal: Nature communications
In common: statsmodels, ggplot2, seaborn, 5 other tools, 1 reference
[10] doi:10.1162/imag.a.1256 [code]
Gamer in the scanner: Event-related analysis of fMRI activity during retro videogame play guided by automated annotations of game content.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: statsmodels, seaborn, pandas, 3 other tools, fMRI, 2 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.