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.

One block of code here has 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 3 matches
  1. [1] § Results › Post-hoc ROI and Connectivity Results ↔ Code/data_analysis.Rmd, lines 367 to 430 · score 0.52 · protection accuracy, vmPFC, median, SE, anterior, models · block oscr:b:E8GYZ5M2R8ANE-K · Report a mismatch
  2. [2] § Methods › Task Design ↔ Code/data_analysis.ipynb, lines 51 to 66 · score 0.51 · fist, goose, gun, cat, grizzly, stick · Report a mismatch
  3. [3] § Methods › Task Design ↔ Code/data_analysis.ipynb, lines 51 to 66 · score 0.51 · fist, goose, gun, cat, grizzly, stick · 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

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 (how the code is found and 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.1093/scan/nsag053
Safety-relevant experience reshapes neural codes for ambiguous threat in adolescents.
Journal: Social cognitive and affective neuroscience
In common: developmental, fMRI, 22 references, author Sarah M Tashjian
[2] doi:10.1371/journal.pbio.3002986
Subregions in the ventromedial prefrontal cortex integrate threat and protective information to meta-represent safety.
Journal: PLoS biology
In common: 13 references, author Sarah M Tashjian
[3] doi:10.1016/j.dcn.2025.101509 [code]
Fear extinction retention in children, adolescents, and adults.
Journal: Developmental cognitive neuroscience
In common: developmental, fMRI, 12 references
[4] doi:10.1016/j.celrep.2025.116265 [code]
Human amygdala nuclei show distinct developmental trajectories from adolescence to adulthood in functional integration with prefrontal circuitry.
Journal: Cell reports
In common: ggplot2, tidyverse, pandas, developmental, fMRI, 8 references
[5] doi:10.1038/s44271-025-00193-x [code]
Person-centered analyses reveal that developmental adversity at moderate levels and neural threat/safety discrimination are associated with lower anxiety in early adulthood.
Journal: Communications psychology
In common: statsmodels, seaborn, pandas, 3 other tools, developmental, 6 references
[6] doi:10.1038/s41467-025-60666-9 [code]
An intracranial dissection of human escape circuits.
Journal: Nature communications
In common: seaborn, pandas, SciPy, 2 other tools, 7 references
[7] doi:10.1016/j.neuroimage.2021.118643 [code]
Neural mediators of subjective and autonomic responding during threat learning and regulation.
Journal: NeuroImage
In common: fMRI, 8 references
[8] doi:10.7554/elife.66169 [code]
Computational modeling of threat learning reveals links with anxiety and neuroanatomy in humans.
Journal: eLife
In common: 7 references
[9] doi:10.1002/hbm.26518 [code]
Revisiting deficits in threat and safety appraisal in obsessive-compulsive disorder.
Journal: Human brain mapping
In common: seaborn, pandas, SciPy, 2 other tools, fMRI, 5 references
[10] doi:10.1073/pnas.2116673119 [code]
Adolescent development of multiscale structural wiring and functional interactions in the human connectome.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: PsychoPy, statsmodels, ggplot2, 6 other tools, developmental, 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.

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.1016/j.dcn.2026.101791.svg)](https://openscicode.org/badge/doi/10.1016/j.dcn.2026.101791)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1016/j.dcn.2026.101791.svg
   :target: https://openscicode.org/badge/doi/10.1016/j.dcn.2026.101791
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1016/j.dcn.2026.101791"><img src="https://openscicode.org/badge/doi/10.1016/j.dcn.2026.101791.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.