OSCR

Augmenting extinction with counterconditioning strengthens and sustains neural safety representations in PTSD.

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.

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 1 match
  1. [1] § Method › Psychophysiology quantification ↔ code/scr_analyses.R, lines 1 to 55 · score 0.55 · skin conductance response, zero, Raw, scored, SCR, stimulus · block oscr:b:WD7XXYV0PTEFC-B · 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 · 127 lines · 5.4 KB · no license · 1 match

  1. #####################################################################################
  2. # scr_analyses.R
  3. #
  4. # Cooper et al. (2025). Translational Psychiatry.
  5. #
  6. # Skin conductance response (SCR) models across phases: fear acquisition,
  7. # extinction, renewal24hr, and renewal1mo. Outcome (scrz) is SCR z-scored
  8. # within group prior (see scr.csv); trial numbering in the raw
  9. # data runs continuously across phases, so each model below re-zeroes
  10. # `trial` to that phase's own start and re-derives an early/late half split
  11. # from the corrected count.
  12. #
  13. # INPUTS (read from data/, deposited alongside this script)
  14. # scr.csv -> df.scr (subject, group, task, stim, trial, scrz)
  15. # excluded_subjects.csv -> df.excluded_subjects
  16. #
  17. # OUTPUTS
  18. # This script produces no new files.
  19. #
  20. #####################################################################################
  21. # setup -------------------------------------------------------------------------
  22. library(tidyverse)
  23. library(lme4)
  24. library(easystats)
  25. library(robustlmm)
  26. library(emmeans)
  27. # load data -------------------------------------------------------------------------
  28. df.scr <- read_csv("data/scr.csv")
  29. df.excluded_subjects <- read_csv("data/excluded_subjects.csv")
  30. # acquisition ---------------------------------------------------------------
  31. m1.scr.acq <- df.scr %>%
  32. filter(task=="FC") %>%
  33. filter(!subject %in% df.excluded_subjects$subject) %>%
  34. mutate(half = case_when(trial < 13 ~ "early", # trial numbering starts at 1 for this phase
  35. TRUE ~ "late")) %>%
  36. mutate(stim = fct_relevel(stim,"CC","EXT","CTRL")) %>%
  37. lmer(scrz~stim*group*half+trial+(1|subject)+(1|subject:stim)+(1|subject:half)+(1|trial),data=.)
  38. m1.scr.acq.stdize <- m1.scr.acq %>% datawizard::standardise()
  39. m1.scr.acq %>% parameters(summary=T)
  40. m1.scr.acq.stdize %>% parameters(summary=T)
  41. m1.scr.acq %>% emmeans(pairwise~stim*group*half) %>% joint_tests(by="half")
  42. m1.scr.acq.stdize %>% emmeans(pairwise~stim*group*half) %>% joint_tests(by="half")
  43. m1.scr.acq %>% emmeans(pairwise~stim|half|group,adjust="none")
  44. m1.scr.acq.stdize %>% emmeans(pairwise~stim|half|group,adjust="none")
  45. # extinction ------------------------------------------------------------------
  46. m1.scr.ext <- df.scr %>%
  47. filter(task=="SafetyLearning") %>%
  48. filter(!subject %in% df.excluded_subjects$subject) %>%
  49. mutate(trial = trial - 24, # raw trial numbering continues from acquisition (1-24); reset to phase-local count
  50. half = case_when(trial < 13 ~ "early",
  51. TRUE ~ "late")) %>%
  52. mutate(stim = fct_relevel(stim,"CC","EXT","CTRL")) %>%
  53. lmer(scrz~stim*group*half+trial+(1|subject)+(1|subject:stim)+(1|subject:half)+(1|trial),data=.)
  54. m1.scr.ext.stdize <- m1.scr.ext %>% datawizard::standardise()
  55. m1.scr.ext %>% parameters(summary=T)
  56. m1.scr.ext.stdize %>% parameters(summary=T)
  57. m1.scr.ext %>% emmeans(pairwise~stim*group*half) %>% joint_tests(by="half")
  58. m1.scr.ext.stdize %>% emmeans(pairwise~stim*group*half) %>% joint_tests(by="half")
  59. m1.scr.ext %>% emmeans(pairwise~stim|half|group,adjust="none")
  60. m1.scr.ext.stdize %>% emmeans(pairwise~stim|half|group,adjust="none")
  61. # renewal24hr -------------------------------------------------------------
  62. m1.scr.ren1 <- df.scr %>%
  63. filter(task=="24hrRNWL") %>%
  64. filter(!subject %in% df.excluded_subjects$subject) %>%
  65. mutate(trial = trial - 48, # raw trial numbering continues from acquisition+extinction (1-48); reset to phase-local count
  66. half = case_when(trial < 5 ~ "early", # renewal phases are shorter, so the early/late split point differs from acq/ext
  67. TRUE ~ "late")) %>%
  68. mutate(stim = fct_relevel(stim,"CC","EXT","CTRL")) %>%
  69. lmer(scrz~stim*group*half+trial+(1|subject)+(1|subject:stim)+(1|subject:half)+(1|trial),data=.)
  70. m1.scr.ren1.stdize <- m1.scr.ren1 %>% datawizard::standardise()
  71. m1.scr.ren1 %>% parameters(summary=T)
  72. m1.scr.ren1.stdize %>% parameters(summary=T)
  73. m1.scr.ren1 %>% emmeans(pairwise~stim*group*half) %>% joint_tests(by="half")
  74. m1.scr.ren1.stdize %>% emmeans(pairwise~stim*group*half) %>% joint_tests(by="half")
  75. m1.scr.ren1 %>% emmeans(pairwise~stim|half|group,adjust="none")
  76. m1.scr.ren1.stdize %>% emmeans(pairwise~stim|half|group,adjust="none")
  77. # renewal1mo --------------------------------------------------------------
  78. m1.scr.ren2 <- df.scr %>%
  79. filter(str_detect(task,"month")) %>%
  80. filter(!subject %in% df.excluded_subjects$subject) %>%
  81. mutate(trial = trial - 56, # raw trial numbering continues from acquisition+extinction+renewal24hr (1-56); reset to phase-local count
  82. half = case_when(trial < 5 ~ "early",
  83. TRUE ~ "late")) %>%
  84. mutate(stim = fct_relevel(stim,"CC","EXT","CTRL")) %>%
  85. lmer(scrz~stim*group*half+trial+(1|subject)+(1|subject:stim)+(1|subject:half)+(1|trial),data=.)
  86. m1.scr.ren2.stdize <- m1.scr.ren2 %>% datawizard::standardise()
  87. m1.scr.ren2 %>% parameters(summary=T)
  88. m1.scr.ren2.stdize %>% parameters(summary=T)
  89. m1.scr.ren2 %>% emmeans(pairwise~stim*group*half) %>% joint_tests(by="half")
  90. m1.scr.ren2.stdize %>% emmeans(pairwise~stim*group*half) %>% joint_tests(by="half")
  91. m1.scr.ren2 %>% emmeans(pairwise~group|half,adjust="none")
  92. m1.scr.ren2.stdize %>% emmeans(pairwise~group|half,adjust="none")
  93. m1.scr.ren2 %>% emmeans(pairwise~stim|half|group,adjust="none")
  94. m1.scr.ren2.stdize %>% emmeans(pairwise~stim|half|group,adjust="none")

scr_analyses.R, no license · at the source

Overview

Authors: Samuel E Cooper1,2,3, Nicole E Keller4, Elizabeth A Bauer1, Sydney R Lambert1, Augustin C Hennings5, Ameera A Azar1, Sophia A Bibb6, Charles B Nemeroff1,3, Josh M Cisler1,2,3,7, Jarrod A Lewis-Peacock1,2,7,8,9, Joseph E Dunsmoor1,2,7,8,9
  1. Department of Psychiatry and Behavioral Sciences, Dell Medical School, University of Texas at Austin, Austin, Texas USA
  2. Interdisciplinary Neuroscience Program, University of Texas at Austin, Austin, Texas USA
  3. Institute for Early Life Adversity Research, Dell Medical School, University of Texas at Austin, Austin, Texas USA
  4. Exponent, Inc, Denver, Colorado, USA
  5. Princeton Neuroscience Institute, Princeton University, Princeton, New Jersey USA
  6. Neuroscience Graduate Program, Ohio State University, Columbus, Ohio USA
  7. Department of Psychology, University of Texas at Austin, Austin, Texas USA
  8. Center for Learning and Memory, University of Texas at Austin, Austin, Texas USA
  9. Department of Neuroscience, University of Texas at Austin, Austin, Texas USA
Institutions: The University of Texas at Austin (United States); Exponent (United States) (United States); Princeton University (United States); The Ohio State University (United States)
Journal: Translational psychiatry, volume 16, issue 1, article 303
Dates: received 18 November 2025; accepted 6 March 2026; published online 23 April 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41398-026-03966-y · PMID 42026031 · PMCID PMC13237184 · OpenAlex W4410426999
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: human (organism), other condition (population)
Methods: Statistics, Connectivity, fMRI & imaging, Spectral & time-frequency, Smoothing, state filtering, decompositions, Machine learning
Keywords: Psychiatric disorders, Learning and memory, Human behaviour
MeSH: Conditioning, Classical*, Extinction, Psychological*, Gyrus Cinguli*, Prefrontal Cortex*, Stress Disorders, Post-Traumatic*, Adult, Brain Mapping, Female, Humans, Magnetic Resonance Imaging, Male (* major topic)
Topic: Anesthesia and Neurotoxicity Research (Developmental Neuroscience, Neuroscience), according to OpenAlex
Funding: NIMH NIH HHS (R01 MH117293, R01 MH125886, R33 MH108753, R01 MH129042, T32 MH106454, R01 MH119132); NIAAA NIH HHS (R01 AA030740, R01 AA030038); U.S. Department of Health & Human Services | NIH | National Institute of Mental Health (NIMH) (K23MH138889)
Citations: cited by 2 papers (Europe PMC); 109 references in the paper
Research resources: RRID:SCR_021898

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 1 match between paragraphs and lines of code.

OSF rfzt6

License: none: the authors keep all their rights
State: the link answers, verified on 29 September 2026
Evidence: files inventoried
Languages: R (7)
Size: 18 files, 7 scripts
Software Heritage: not checked
Found in: “Data availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: tidyverse (7 files), easystats (6 files), emmeans (5 files), lme4 (5 files), car (2 files), ggpubr (1 file)
Availability: 1 check, the latest on 29 September 2026: the link answers (HTTP 200)
  • 29 September 2026: the link answers (HTTP 200)
8 files
At the source: osf.io/rfzt6/

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;
  • 7 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

No dataset and no data link were found in the paper.

Code and data availability statement

The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1038/s41398-026-03966-y.

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

Recorded: type, language, journal, volume, issue, pages, dates, 11 authors, 3 keywords, 11 MeSH terms, 3 funders, 94 references, 1 RRID.

Cite

This paper

Cooper, S. E., Keller, N. E., Bauer, E. A., Lambert, S. R., Hennings, A. C., Azar, A. A., Bibb, S. A., Nemeroff, C. B., Cisler, J. M., Lewis-Peacock, J. A., & Dunsmoor, J. E. (2026). Augmenting extinction with counterconditioning strengthens and sustains neural safety representations in PTSD. Translational psychiatry, 16(1), 303. https://doi.org/10.1038/s41398-026-03966-y

BibTeX

@article{cooper2026augmenting,
author = {Cooper, Samuel E and Keller, Nicole E and Bauer, Elizabeth A and Lambert, Sydney R and Hennings, Augustin C and Azar, Ameera A and Bibb, Sophia A and Nemeroff, Charles B and Cisler, Josh M and Lewis-Peacock, Jarrod A and Dunsmoor, Joseph E},
title = {{Augmenting extinction with counterconditioning strengthens and sustains neural safety representations in PTSD}},
journal = {Translational psychiatry},
year = {2026},
month = apr,
volume = {16},
number = {1},
pages = {303},
publisher = {Nature Publishing Group},
issn = {2158-3188},
doi = {10.1038/s41398-026-03966-y},
url = {https://doi.org/10.1038/s41398-026-03966-y},
pmid = {42026031},
pmcid = {PMC13237184}
}

RIS

TY - JOUR
AU - Cooper, Samuel E
AU - Keller, Nicole E
AU - Bauer, Elizabeth A
AU - Lambert, Sydney R
AU - Hennings, Augustin C
AU - Azar, Ameera A
AU - Bibb, Sophia A
AU - Nemeroff, Charles B
AU - Cisler, Josh M
AU - Lewis-Peacock, Jarrod A
AU - Dunsmoor, Joseph E
TI - Augmenting extinction with counterconditioning strengthens and sustains neural safety representations in PTSD
T2 - Translational psychiatry
J2 - Transl Psychiatry
PY - 2026
DA - 2026/04/23
VL - 16
IS - 1
SP - 303
SN - 2158-3188
PB - Nature Publishing Group
DO - 10.1038/s41398-026-03966-y
UR - https://doi.org/10.1038/s41398-026-03966-y
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41398-026-03966-y",
"type": "article-journal",
"title": "Augmenting extinction with counterconditioning strengthens and sustains neural safety representations in PTSD",
"container-title": "Translational psychiatry",
"author": [
{
"family": "Cooper",
"given": "Samuel E"
},
{
"family": "Keller",
"given": "Nicole E"
},
{
"family": "Bauer",
"given": "Elizabeth A"
},
{
"family": "Lambert",
"given": "Sydney R"
},
{
"family": "Hennings",
"given": "Augustin C"
},
{
"family": "Azar",
"given": "Ameera A"
},
{
"family": "Bibb",
"given": "Sophia A"
},
{
"family": "Nemeroff",
"given": "Charles B"
},
{
"family": "Cisler",
"given": "Josh M"
},
{
"family": "Lewis-Peacock",
"given": "Jarrod A"
},
{
"family": "Dunsmoor",
"given": "Joseph E"
}
],
"container-title-short": "Transl Psychiatry",
"volume": "16",
"issue": "1",
"page": "303",
"DOI": "10.1038/s41398-026-03966-y",
"PMID": "42026031",
"PMCID": "PMC13237184",
"ISSN": "2158-3188",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41398-026-03966-y",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
23
]
]
}
}

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.101518 [code]
Unravelling the neurocognitive mechanisms underlying counterconditioning in humans.
Journal: eLife
In common: 8 references, author Joseph E Dunsmoor
[2] doi:10.7554/elife.105126 [code]
Distinct representational properties of cues and contexts shape fear and reversal learning.
Journal: eLife
In common: emmeans, lme4, tidyverse, 10 references
[3] doi:10.7554/elife.78717
Robust group- but limited individual-level (longitudinal) reliability and insights into cross-phases response prediction of conditioned fear.
Journal: eLife
In common: 11 references
[4] doi:10.1038/s41467-025-63078-x [code]
Neural correlates of human fear conditioning and sources of variability in 2199 individuals.
Journal: Nature communications
In common: other condition, 4 references, 2 authors
[5] doi:10.1038/s41380-026-03640-1
Anxiety sensitivity and intolerance of uncertainty track distinct neurobehavioral dimensions of avoidance in anxiety-related disorders.
Journal: Molecular psychiatry
In common: other condition, 7 references, author Samuel E. Cooper
[6] doi:10.1038/s41467-024-46508-0 [code]
Distributed neural representations of conditioned threat in the human brain.
Journal: Nature communications
In common: 10 references
[7] doi:10.1126/sciadv.aea8233 [code]
The human amygdala in threat learning and extinction.
Journal: Science advances
In common: easystats, emmeans, lme4, 1 other tool, 5 references
[8] doi:10.1038/s41467-024-46936-y [code]
Replication study on the role of dopamine-dependent prefrontal reactivations in human extinction memory retrieval.
Journal: Nature communications
In common: emmeans, car, ggpubr, 1 other tool, 5 references
[9] doi:10.1016/j.dcn.2025.101509 [code]
Fear extinction retention in children, adolescents, and adults.
Journal: Developmental cognitive neuroscience
In common: lme4, 8 references
[10] doi:10.1038/s41598-025-99758-3
Utilizing rewards to dampen fear and its recovery.
Journal: Scientific reports
In common: 8 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.1038/s41398-026-03966-y.svg)](https://openscicode.org/badge/doi/10.1038/s41398-026-03966-y)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1038/s41398-026-03966-y.svg
   :target: https://openscicode.org/badge/doi/10.1038/s41398-026-03966-y
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41398-026-03966-y"><img src="https://openscicode.org/badge/doi/10.1038/s41398-026-03966-y.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.