OSCR

The human amygdala in threat learning and extinction.

Code ↔ Paper

1 match 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 1 match
  1. [1] § MATERIALS AND METHODS › SCR similarity index ↔ stats/learning_models/SCR_autocorrelation.R, lines 48 to 110 · score 0.52 · correlation coefficients, lagged, autocorrelation, SCRs, CS, hippocampus · 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

R · 110 lines · 3.6 KB · MIT · 1 match

  1. if (!requireNamespace("here", quietly = TRUE)) install.packages("here")
  2. source(here::here("stats","learning_models","_setup.R"))
  3. data_acq <- subset(scr_df, PHASE == "acquisition" & TUS == "active" & CS == "threat")
  4. data_acq$CS <- relevel(data_acq$CS, ref = "control")
  5. data_acq$US <- relevel(data_acq$US, ref = "unreinforced")
  6. data_acq <- data_acq %>%
  7. mutate(SUBID = factor(SUBID, levels = unique(SUBID)))
  8. # Create a new column with NA values
  9. data_acq$n_trials_after_US <- NA
  10. # Loop through each unique SUBID
  11. unique_subjects <- unique(data_acq$SUBID)
  12. for (subid in unique_subjects) {
  13. # Subset data for the current subject
  14. subj_data <- data_acq[data_acq$SUBID == subid, ]
  15. # Initialize counters and reset conditions for this subject
  16. counters <- list()
  17. reset_conditions <- list()
  18. for (i in 1:nrow(subj_data)) {
  19. # Create a unique combination key based on TUS and CS values
  20. key <- paste(subj_data$TUS[i], subj_data$CS[i], sep = "_")
  21. # If the key doesn't exist in counters, initialize it
  22. if (!key %in% names(counters)) {
  23. counters[[key]] <- 0
  24. reset_conditions[[key]] <- TRUE
  25. }
  26. # Update the counter for the current key
  27. if (subj_data$US[i] == "reinforced") {
  28. counters[[key]] <- 0
  29. reset_conditions[[key]] <- FALSE
  30. } else if (reset_conditions[[key]]) {
  31. counters[[key]] <- 0
  32. } else {
  33. counters[[key]] <- counters[[key]] + 1
  34. }
  35. # Set the value in n_trials_after_US based on the counter for the current key
  36. subj_data$n_trials_after_US[i] <- counters[[key]]
  37. }
  38. # Update the original data frame with the computed values for this subject
  39. data_acq[data_acq$SUBID == subid, "n_trials_after_US"] <- subj_data$n_trials_after_US
  40. }
  41. # Assign block IDs as before
  42. data_acq <- data_acq %>%
  43. group_by(EXPERIMENT, SUBID) %>%
  44. mutate(
  45. n_trials_after_US_block_ID = cumsum(n_trials_after_US == 0 &
  46. (lag(n_trials_after_US, default = -1) != 0)) + 1
  47. ) %>%
  48. ungroup()
  49. # Group by n_trials_after_US and n_trials_after_US_block_ID
  50. data_acq_blockID_mean <- data_acq %>%
  51. group_by(EXPERIMENT, SUBID, n_trials_after_US, n_trials_after_US_block_ID) %>%
  52. dplyr::summarise(
  53. mean_SCR_sqrt = mean(SCR_sqrt, na.rm = TRUE)
  54. ) %>%
  55. arrange(SUBID, n_trials_after_US_block_ID) %>%
  56. ungroup()
  57. scatter_data <- data_acq_blockID_mean
  58. data_reshaped <- scatter_data %>%
  59. group_by(EXPERIMENT, SUBID, n_trials_after_US_block_ID) %>%
  60. pivot_wider(., names_from = n_trials_after_US, values_from = mean_SCR_sqrt)
  61. data_reshaped <- data_reshaped %>%
  62. dplyr::rename(
  63. mean_SCR_sqrt_0 = `0`,
  64. mean_SCR_sqrt_1 = `1`,
  65. mean_SCR_sqrt_2 = `2`
  66. )
  67. # Calculate Spearman's rank correlation coefficients for each participant
  68. corr_results <- data_reshaped %>%
  69. group_by(EXPERIMENT, SUBID) %>%
  70. dplyr::summarize(
  71. corrcoef_0_1 = cor(mean_SCR_sqrt_0, mean_SCR_sqrt_1, method = "spearman", use = "complete.obs"),
  72. corrcoef_1_2 = cor(mean_SCR_sqrt_1, mean_SCR_sqrt_2, method = "spearman", use = "complete.obs")
  73. ) %>%
  74. ungroup()
  75. # Perform t-tests to compare the correlation coefficients between the two experiments
  76. t_test_0_1 <- t.test(corr_results$corrcoef_0_1 ~ corr_results$EXPERIMENT)
  77. t_test_1_2 <- t.test(corr_results$corrcoef_1_2 ~ corr_results$EXPERIMENT)
  78. t_test_0_1 # CS+US --> CS
  79. t_test_1_2 # CS --> CS
  80. # Compute Cohen's d (pooled SD) for CS+US --> CS effect
  81. n1 <- sum(corr_results$EXPERIMENT == "amygdala")
  82. n2 <- sum(corr_results$EXPERIMENT == "hippocampus")
  83. t_val <- t_test_0_1$statistic[[1]]
  84. d_pooled <- t_val * sqrt(1/n1 + 1/n2) # Cohen's d (pooled SD version)
  85. d_pooled

SCR_autocorrelation.R at commit 221cad6, under MIT · at the source

Overview

Authors: Sjoerd Meijer1, Eleonora Carpino1,2,3,4, Benjamin R. Kop1, Jesse Lam1, Lycia D. de Voogd1,5,6,7, Karin Roelofs1,7, Lennart Verhagen1
  1. Donders Institute for Brain, Cognition and Behavior, Radboud University, Nijmegen, Netherlands
  2. Department of Experimental Psychology, University of Oxford, Oxford, UK
  3. Brain Research and Imaging Centre, Faculty of Health, University of Plymouth, Plymouth, UK
  4. School of Psychology, Faculty of Health, University of Plymouth, Plymouth, UK
  5. Institute of Psychology, Leiden University, Leiden, Netherlands
  6. Leiden Institute for Brain and Cognition, Leiden University, Leiden, Netherlands
  7. Behavioral Science Institute (BSI), Radboud University, Nijmegen, Netherlands
Institutions: Radboud University Nijmegen (Netherlands); Donders Institute for Brain, Cognition and Behaviour (Netherlands); University of Oxford (United Kingdom); University of Plymouth (United Kingdom); Leiden University (Netherlands)
Journal: Science advances, volume 12, issue 13, article eaea8233
Dates: received 22 July 2025; accepted 13 January 2026; published online 25 March 2026; in print March 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1126/sciadv.aea8233 · PMID 41880511 · PMCID PMC13015908 · OpenAlex W7140309761
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: human (organism), cognitive (subfield)
Methods: Statistics, Preprocessing, Evoked potentials, Smoothing, state filtering, decompositions
MeSH: Amygdala*, Extinction, Psychological*, Fear*, Learning*, Adult, Conditioning, Classical, Female, Galvanic Skin Response, Hippocampus, Humans, Male, Memory, Young Adult (* major topic)
Journal subjects: Neuroscience, Cognitive Neuroscience
Topic: Memory and Neural Mechanisms (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: HORIZON EUROPE European Innovation Council (101071008); European Research Council (ERC_CoG_772337, MediCoDe); Dutch Research Council (18919)
Citations: cited by 3 papers (Europe PMC); 116 references in the paper

Abstract

Here, we resolve the long-standing but unconfirmed hypothesis that the human amygdala is essential for rapidly acquiring cued-conditioned threat responses. We provide causal evidence for the amygdala’s contribution to forming threat memories that are resistant to extinction. Using transcranial ultrasound stimulation (TUS), a noninvasive technique that modulates deep brain structures with high spatial and temporal precision, we targeted the bilateral amygdala during Pavlovian threat conditioning in healthy adults. Linear mixed-effects models and computational modeling of trial-level skin conductance responses revealed that amygdala-TUS (experiment I, n = 25), but not hippocampus-TUS (experiment II, n = 25), selectively slowed initial threat acquisition, augmented subsequent extinction, and modulated declarative memory of retrospective threat probability. These findings demonstrate that the human amygdala drives an emotional learning state—learning fast, forgetting slow. Our study shows the potential of TUS for targeted neuromodulation of human deep brain structures implicated in conditions such as posttraumatic stress disorder, where pathological threat memories persist despite therapy.

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

Repositories

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

meijer-s/FEARTUS

License: MIT
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 221cad6a38e80a6f45f291ab29fff59fcca4d120, 11 December 2025
Languages: MATLAB (251), R (32), C (12), Shell (2), C/C++ (2)
Size: 612 files, 299 scripts
Software Heritage: not archived
Found in: “Data, code, and materials availability:”
Holds: README, license file, tests
Not found: CITATION.cff, environment file, continuous integration, documentation
Tools: SPM (12 files), tidyverse (10 files), Image Processing Toolbox (6 files), GIfTI library for MATLAB (4 files), FreeSurfer (3 files), cowplot (2 files), easystats (2 files), lme4 (2 files), Stan (2 files), Connectome Workbench (2 files), brms (1 file), broom (1 file), emmeans (1 file), FSL (1 file), ggplot2 (1 file), lmerTest (1 file), Tools for NIfTI and ANALYZE image (MATLAB) (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
301 files

Zenodo 17899009

License: MIT
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: “Data, code, and materials availability:”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: SPM (12 files), tidyverse (10 files), Image Processing Toolbox (6 files), GIfTI library for MATLAB (4 files), FreeSurfer (3 files), cowplot (2 files), easystats (2 files), lme4 (2 files), Stan (2 files), Connectome Workbench (2 files), brms (1 file), broom (1 file), emmeans (1 file), FSL (1 file), ggplot2 (1 file), lmerTest (1 file), Tools for NIfTI and ANALYZE image (MATLAB) (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers (HTTP 200)
  • 30 September 2026: the link answers (HTTP 200)
301 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:

  • 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 598 scripts, each with its path and the digest of its content;
  • 1 match 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

Datasets cited

Data, code, and materials availability

All data and code needed to evaluate and reproduce the results in the paper are present in the paper, the Supplementary Materials, or in the following archives. All analysis codes are available on GitHub (https://github.com/meijer-s/FEARTUS) and archived at the time of publication on Zenodo (https://doi.org/10.5281/zenodo.17899009). Behavioral data are openly available on Zenodo (https://doi.org/10.5281/zenodo.17897100). This study did not generate new materials.

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 1, 30 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 7 authors, 13 MeSH terms, 3 funders, 110 references.

Cite

This paper

Meijer, S., Carpino, E., Kop, B. R., Lam, J., de Voogd, L. D., Roelofs, K., & Verhagen, L. (2026). The human amygdala in threat learning and extinction. Science advances, 12(13), eaea8233. https://doi.org/10.1126/sciadv.aea8233

BibTeX

@article{meijer2026human,
author = {Meijer, Sjoerd and Carpino, Eleonora and Kop, Benjamin R. and Lam, Jesse and de Voogd, Lycia D. and Roelofs, Karin and Verhagen, Lennart},
title = {{The human amygdala in threat learning and extinction}},
journal = {Science advances},
year = {2026},
month = mar,
volume = {12},
number = {13},
pages = {eaea8233},
publisher = {American Association for the Advancement of Science},
issn = {2375-2548},
doi = {10.1126/sciadv.aea8233},
url = {https://doi.org/10.1126/sciadv.aea8233},
pmid = {41880511},
pmcid = {PMC13015908}
}

RIS

TY - JOUR
AU - Meijer, Sjoerd
AU - Carpino, Eleonora
AU - Kop, Benjamin R.
AU - Lam, Jesse
AU - de Voogd, Lycia D.
AU - Roelofs, Karin
AU - Verhagen, Lennart
TI - The human amygdala in threat learning and extinction
T2 - Science advances
J2 - Sci Adv
PY - 2026
DA - 2026/03/25
VL - 12
IS - 13
SP - eaea8233
SN - 2375-2548
PB - American Association for the Advancement of Science
DO - 10.1126/sciadv.aea8233
UR - https://doi.org/10.1126/sciadv.aea8233
LA - en
ER -

CSL-JSON

{
"id": "10.1126/sciadv.aea8233",
"type": "article-journal",
"title": "The human amygdala in threat learning and extinction",
"container-title": "Science advances",
"author": [
{
"family": "Meijer",
"given": "Sjoerd"
},
{
"family": "Carpino",
"given": "Eleonora"
},
{
"family": "Kop",
"given": "Benjamin R."
},
{
"family": "Lam",
"given": "Jesse"
},
{
"family": "de Voogd",
"given": "Lycia D."
},
{
"family": "Roelofs",
"given": "Karin"
},
{
"family": "Verhagen",
"given": "Lennart"
}
],
"container-title-short": "Sci Adv",
"volume": "12",
"issue": "13",
"page": "eaea8233",
"DOI": "10.1126/sciadv.aea8233",
"PMID": "41880511",
"PMCID": "PMC13015908",
"ISSN": "2375-2548",
"publisher": "American Association for the Advancement of Science",
"URL": "https://doi.org/10.1126/sciadv.aea8233",
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
25
]
]
}
}

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.7554/elife.88762 [code]
Auditory confounds can drive online effects of transcranial ultrasonic stimulation in humans.
Journal: eLife
In common: 6 references, 3 authors
[2] doi:10.1038/s41467-026-74565-0 [code]
The functional neurobiology of dispositions towards negative emotions.
Journal: Nature communications
In common: brms, Connectome Workbench, GIfTI library for MATLAB, 9 other tools, cognitive, 3 references
[3] doi:10.1038/s42003-024-06267-6 [code]
The neurocomputational link between defensive cardiac states and approach-avoidance arbitration under threat.
Journal: Communications biology
In common: GIfTI library for MATLAB, FreeSurfer, SPM, cognitive, 4 references, 2 authors
[4] doi:10.1038/s41467-026-72934-3 [code]
Multi-focal ultrasound neuromodulation to the dorsal anterior cingulate cortex disrupts behavioural and neural pain processing.
Journal: Nature communications
In common: broom, emmeans, lmerTest, 4 other tools, 8 references
[5] doi:10.1038/s41467-025-66832-3 [code]
Role of thalamus in human conscious perception revealed by low-intensity focused ultrasound neuromodulation.
Journal: Nature communications
In common: FreeSurfer, FSL, lme4, 2 other tools, cognitive, 9 references
[6] doi:10.1038/s41467-025-65080-9 [code]
Non-invasive ultrasonic neuromodulation of the human nucleus accumbens impacts reward sensitivity.
Journal: Nature communications
In common: Image Processing Toolbox, cognitive, 11 references
[7] doi:10.1073/pnas.2204066119 [code]
Temporally and anatomically specific contributions of the human amygdala to threat and safety learning.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: 12 references
[8] doi:10.1038/s41467-024-46508-0 [code]
Distributed neural representations of conditioned threat in the human brain.
Journal: Nature communications
In common: 12 references
[9] doi:10.1162/imag.a.1046 [code]
A double-blind replication attempt of offline 5Hz-rTUS-induced corticospinal excitability.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: easystats, SPM, Image Processing Toolbox, 9 references
[10] doi:10.1038/s41467-026-69853-8 [code]
Transcranial focused ultrasound induces source localizable cortical activation in resting state humans when applied concurrently with transcranial electric stimulation.
Journal: Nature communications
In common: lme4, ggplot2, tidyverse, 9 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.1126/sciadv.aea8233.svg)](https://openscicode.org/badge/doi/10.1126/sciadv.aea8233)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1126/sciadv.aea8233.svg
   :target: https://openscicode.org/badge/doi/10.1126/sciadv.aea8233
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1126/sciadv.aea8233"><img src="https://openscicode.org/badge/doi/10.1126/sciadv.aea8233.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

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)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.