OSCR

Semantic encoding of trauma memories in the hippocampus among individuals with 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] § Methods › Semantic neurocircuitry encoding models ↔ semantic_sentence_embeddings.py, lines 29 to 39 · score 0.65 · NV Embed V2, sentence transformer, embeddings, model, semantic · block oscr:b:FBBE3XB058281-T · 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

Python · 60 lines · 1.7 KB · no license · 1 match

  1. from hyperopt import hp, Trials, partial, fmin, STATUS_OK, space_eval, tpe, SparkTrials, STATUS_OK
  2. from sentence_transformers import SentenceTransformer
  3. import docx
  4. import umap
  5. import hdbscan
  6. import numpy as np
  7. import matplotlib.pyplot as plt
  8. import pickle
  9. import pyspark
  10. import os
  11. import semantic_functions
  12. filename = "DOP_subs_list.txt"
  13. sublist = []
  14. with open(filename, 'r') as file:
  15. for line in file:
  16. sublist.append(int(line.strip()))
  17. print('these are your subs:')
  18. print(sublist)
  19. script_path = "/Volumes/neurotap_2/DOP2/MVPA/semantic/sentence_analyses/transcribed_scripts/"
  20. script_types = ["trauma", "neutral"]
  21. #load in subject scripts
  22. context='context1'
  23. all_sentences, all_labels, all_sub_ids = semantic_functions.get_sub_sentences_and_labels_whisper(sublist, script_types, script_path,context)
  24. #load in sentence transformer model
  25. print('loading in sentence transformer')
  26. #model_st = SentenceTransformer('all-mpnet-base-v2')
  27. model_st = SentenceTransformer('nvidia/NV-Embed-v2',trust_remote_code=True)
  28. model_st.max_sequence_length = 32768
  29. model_st.tokenizer.padding_side='right'
  30. print('getting sentence embeddings')
  31. filename = 'embeddings.pickle'
  32. embeddings = semantic_functions.get_sentence_embeddings(filename, all_sentences, model_st)
  33. #save results into specific variable dictionary
  34. variable_dic = {
  35. 'sentence_labels': all_labels,
  36. 'all_sub_ids': all_sub_ids,
  37. 'all_sentences': all_sentences,
  38. 'embeddings': embeddings,
  39. }
  40. #'trials': trials
  41. #}
  42. filename = 'semantic_sentence_data.pickle'
  43. if os.path.exists(filename):
  44. print('removing pickle file')
  45. os.remove(filename)
  46. #save cluster results to pickle file
  47. with open(filename, 'wb') as f:
  48. pickle.dump(variable_dic, f)
  49. f.close()

semantic_sentence_embeddings.py, no license · at the source

Overview

Authors: Josh M. Cisler1,2, Luna T. Malloy1, Michael Jaeb3, Joseph E. Dunsmoor1,2,4, Zachary N. Stowe3
  1. Department of Psychiatry and Behavioral Sciences, Dell Medical School, University of Texas at Austin,Austin, TX USA
  2. Institute for Early Life Adversity Research, Dell Medical School, University of Texas at Austin,Austin, TX USA
  3. Department of Psychiatry, University of Wisconsin at Madison,Madison, WI USA
  4. Department of Neuroscience, University of Texas at Austin,Austin, TX USA
Institutions: The University of Texas at Austin (United States); University of Wisconsin–Madison (United States)
Dates: received 3 December 2025; accepted 23 March 2026; published online 14 April 2026; in print August 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s41386-026-02402-5 · PMID 41981270 · PMCID PMC13388956 · OpenAlex W7154216326
Open access: hybrid, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: human (organism), other condition (population)
Methods: Statistics, Machine learning, Connectivity, fMRI & imaging
Keywords: Trauma, Post-traumatic stress disorder
MeSH: Hippocampus*, Memory, Episodic*, Mental Recall*, Semantics*, Stress Disorders, Post-Traumatic*, Adult, Brain Mapping, Female, Humans, Magnetic Resonance Imaging, Middle Aged, Young Adult (* major topic)
Topic: Posttraumatic Stress Disorder Research (Clinical Psychology, Psychology), according to OpenAlex
Citations: cited by 1 paper (Europe PMC); 82 references in the paper

Abstract

The recall of traumatic memories is central to clinical and neurobiological models of PTSD, yet neurocircuitry mechanisms underlying traumatic memory recall remain elusive. Recent advances in natural language processing and large language models enable complex semantic quantification of autobiographical memories. Here, we leveraged these analytic approaches to define the neurocircuitry encoding the semantic content of traumatic autobiographical narratives among individuals with PTSD. 79 women with PTSD related to interpersonal violence listened to traumatic and neutral autobiographical narratives during fMRI. Sentence-level brain activity and semantic embeddings were quantified for each script and participant. Neurocircuitry encoding semantic content of the narratives was defined through cross-validation across participants. A priori regions of interest included the hippocampus, superior temporal gyrus (STG), and posterior cingulate cortex (PCC). Our approach detected significant hippocampal sensitivity for semantic content of both trauma and neutral narratives; however, spatial encoding patterns of semantic content within the hippocampus differed between trauma and neutral narratives. Specifically, spatial encoding patterns in CA1 and dentate gyrus differentiated narrative type. Regardless of narrative type, PTSD symptom severity was positively associated with semantic encoding across the hippocampus and its subfields, except for the subiculum. For trauma narratives, semantic sensitivity was greater within the left STG and decreased in the PCC and broader default mode network. Encoding in neither region tracked with PTSD symptom severity. These results reveal a hippocampal role in mediating recall of specific semantic content for traumatic and neutral autobiographical narratives and suggest hippocampal sensitivity to autobiographical semantic content underlies greater PTSD symptom severity. Clinical trial registration information: Improving Therapeutic Learning for PTSD, Study Details | NCT04558112 | Improving Therapeutic Learning for PTSD | ClinicalTrials.gov, NCT04558112.

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

OSF u5bea

License: none: the authors keep all their rights
State: the link answers, verified on 29 September 2026
Evidence: files inventoried
Languages: Python (8), MATLAB (4)
Size: 13 files, 12 scripts
Software Heritage: not checked
Found in: “Data availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Matplotlib (8 files), NumPy (8 files), NiBabel (7 files), Statistics and Machine Learning Toolbox (4 files), Tools for NIfTI and ANALYZE image (MATLAB) (3 files), SciPy (3 files), Parallel Computing Toolbox (2 files), scikit-learn (1 file), UMAP (1 file)
Availability: 1 check, the latest on 29 September 2026: the link answers (HTTP 200)
  • 29 September 2026: the link answers (HTTP 200)
12 files
At the source:

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

Data availability

De-identified data and code have been deposited at Open Science Framework and are publicly available as of the date of publication: 10.17605/OSF.IO/U5BEA. Any additional information required to reanalyze the data reported in this paper is available from the lead contact upon request.

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

Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 2 keywords, 12 MeSH terms, 76 references.

Cite

This paper

Cisler, J. M., Malloy, L. T., Jaeb, M., Dunsmoor, J. E., & Stowe, Z. N. (2026). Semantic encoding of trauma memories in the hippocampus among individuals with PTSD. Neuropsychopharmacology : official publication of the American College of Neuropsychopharmacology, 51(9), 1690-1698. https://doi.org/10.1038/s41386-026-02402-5

BibTeX

@article{cisler2026semantic,
author = {Cisler, Josh M. and Malloy, Luna T. and Jaeb, Michael and Dunsmoor, Joseph E. and Stowe, Zachary N.},
title = {{Semantic encoding of trauma memories in the hippocampus among individuals with PTSD}},
journal = {Neuropsychopharmacology : official publication of the American College of Neuropsychopharmacology},
year = {2026},
month = apr,
volume = {51},
number = {9},
pages = {1690--1698},
publisher = {Nature Publishing Group},
issn = {0893-133X},
doi = {10.1038/s41386-026-02402-5},
url = {https://doi.org/10.1038/s41386-026-02402-5},
pmid = {41981270},
pmcid = {PMC13388956}
}

RIS

TY - JOUR
AU - Cisler, Josh M.
AU - Malloy, Luna T.
AU - Jaeb, Michael
AU - Dunsmoor, Joseph E.
AU - Stowe, Zachary N.
TI - Semantic encoding of trauma memories in the hippocampus among individuals with PTSD
T2 - Neuropsychopharmacology : official publication of the American College of Neuropsychopharmacology
J2 - Neuropsychopharmacology
PY - 2026
DA - 2026/04/14
VL - 51
IS - 9
SP - 1690
EP - 1698
SN - 0893-133X
PB - Nature Publishing Group
DO - 10.1038/s41386-026-02402-5
UR - https://doi.org/10.1038/s41386-026-02402-5
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41386-026-02402-5",
"type": "article-journal",
"title": "Semantic encoding of trauma memories in the hippocampus among individuals with PTSD",
"container-title": "Neuropsychopharmacology : official publication of the American College of Neuropsychopharmacology",
"author": [
{
"family": "Cisler",
"given": "Josh M."
},
{
"family": "Malloy",
"given": "Luna T."
},
{
"family": "Jaeb",
"given": "Michael"
},
{
"family": "Dunsmoor",
"given": "Joseph E."
},
{
"family": "Stowe",
"given": "Zachary N."
}
],
"container-title-short": "Neuropsychopharmacology",
"volume": "51",
"issue": "9",
"page": "1690-1698",
"DOI": "10.1038/s41386-026-02402-5",
"PMID": "41981270",
"PMCID": "PMC13388956",
"ISSN": "0893-133X",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41386-026-02402-5",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
14
]
]
}
}

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.3389/fpsyt.2022.947622 [code]
Altered brain activity and functional connectivity after MDMA-assisted therapy for post-traumatic stress disorder.
Journal: Frontiers in psychiatry
In common: NiBabel, scikit-learn, SciPy, 2 other tools, other condition, 9 references
[2] doi:10.1038/s41380-024-02486-9 [code]
Spatiotemporal dynamics of hippocampal-cortical networks underlying the unique phenomenological properties of trauma-related intrusive memories.
Journal: Molecular psychiatry
In common: 7 references
[3] doi:10.1016/j.ijchp.2024.100509 [code]
Neural underpinnings of a two-phase memory suppression process in the neural response to self-related and observed perspective views.
Journal: International journal of clinical and health psychology : IJCHP
In common: UMAP, Parallel Computing Toolbox, Statistics and Machine Learning Toolbox, 2 other tools, 4 references
[4] doi:10.1126/sciadv.adq8336 [code]
Plasticity of human resilience mechanisms.
Journal: Science advances
In common: Statistics and Machine Learning Toolbox, other condition, 6 references
[5] doi:10.1038/s41467-024-49823-8 [code]
Hippocampal connectivity patterns echo macroscale cortical evolution in the primate brain.
Journal: Nature communications
In common: Tools for NIfTI and ANALYZE image (MATLAB), NiBabel, Statistics and Machine Learning Toolbox, 4 other tools, 3 references
[6] 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: NiBabel, scikit-learn, SciPy, 2 other tools, other condition, author Joseph E Dunsmoor
[7] doi:10.1038/s42003-025-09299-8 [code]
Functional differentiation and interactions among inferior, medial frontal and posterior temporal cortex in semantic control.
Journal: Communications biology
In common: Tools for NIfTI and ANALYZE image (MATLAB), Parallel Computing Toolbox, NiBabel, 5 other tools, 1 reference
[8] doi:10.1152/jn.00308.2023 [code]
Organization of the human cerebral cortex estimated within individuals: networks, global topography, and function.
Journal: Journal of neurophysiology
In common: Tools for NIfTI and ANALYZE image (MATLAB), NiBabel, Statistics and Machine Learning Toolbox, 4 other tools, 2 references
[9] doi:10.1126/sciadv.adw1464 [code]
Mind captioning: Evolving descriptive text of mental content from human brain activity.
Journal: Science advances
In common: NiBabel, Statistics and Machine Learning Toolbox, scikit-learn, 3 other tools, 3 references
[10] doi:10.1038/s41467-025-58896-y [code]
Innate network mechanisms of temporal pole for semantic cognition in neonatal and adult twin studies.
Journal: Nature communications
In common: Tools for NIfTI and ANALYZE image (MATLAB), NiBabel, Statistics and Machine Learning Toolbox, 4 other tools, 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.1038/s41386-026-02402-5.svg)](https://openscicode.org/badge/doi/10.1038/s41386-026-02402-5)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1038/s41386-026-02402-5.svg
   :target: https://openscicode.org/badge/doi/10.1038/s41386-026-02402-5
   :alt: OSCR

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