OSCR

Threat intensity shapes cortical engram architecture supporting remote memory retrieval.

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] § Methods › Quantification and statistical analysis ↔ Mitric-Beerens_etal_2026_NatCommun_Fig6_DataAnalysis.R, lines 1–40 · score 0.62 · random intercept, spine densities, multilevel, slice, model, variables
  2. [2] § Results › PL engram cells have more long thin spines than non-engram cells after mild CTC ↔ Mitric-Beerens_etal_2026_NatCommun_Fig6_DataAnalysis.R, lines 42–105 · score 0.61 · Predictor model, Spine volume, Spine length, Morphology, dendrites, Figure 6
  3. [3] § Results › Threat intensity gates engagement of the PL engram in remote memory expression ↔ Mitric-Beerens_etal_2026_NatCommun_Fig6_DataAnalysis.R, lines 1–40 · score 0.58 · remote memory retrieval, Threat intensity, engram, cells

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

R · 107 lines · 4.3 KB · no license · 3 matches

  1. ### Example Analysis Code - Mitric, Beerens et al., 2026.
  2. ### Threat intensity shapes cortical engram architecture supporting remote memory retrieval. Nature Communications
  3. ## FIG 6 - structural analysis
  4. #### set up R
  5. # clear existing workspace objects
  6. rm(list = ls())
  7. graphics.off()
  8. # set working directory to where the data file is located & results should be saved (change to your own directory)
  9. setwd("~/Documents/Spine analysis data")
  10. ### example analysis multilevel analysis
  11. ## on dendrite level
  12. # e.g. spine density, spine type density
  13. # exchange dendrite_var1 for variable of interest
  14. df1 <- read.table("SpineDensity.csv", sep=";", dec=",", header=TRUE)
  15. #OR
  16. df1 <- read.table("SpineTypeDensity.csv", sep=";", dec=",", header=TRUE)
  17. # fixed intercept model
  18. var1_model0 <- glm(dendrite_var1 ~ 1, data = df1)
  19. summary(var1_model0)
  20. # random intercept model
  21. var1_model1 <- glmer(dendrite_var1 ~ 1 + (1 |animal), data = df1, family = Gamma(link="log"))
  22. summary(var1_model1)
  23. var1_model2 <- glmer(dendrite_var1 ~ 1 + (1 |animal_slice), data = df1, family = Gamma(link="log"))
  24. summary(var1_model2)
  25. var1_model3 <- glmer(dendrite_var1 ~ 1 + (1 |animal_slice_cell), data = df1, family = Gamma(link="log"))
  26. summary(var1_model3)
  27. var1_model4 <- glmer(dendrite_var1 ~ 1 + (1 |animal/animal_slice), data = df1, family = Gamma(link="log"))
  28. summary(var1_model4)
  29. var1_model5 <- glmer(dendrite_var1 ~ 1 + (1 |animal_slice/animal_slice_cell), data = df1, family = Gamma(link="log"))
  30. summary(var1_model5)
  31. var1_model6 <- glmer(dendrite_var1 ~ 1 + (1 |animal/animal_slice/animal_slice_cell), data = df1, family = Gamma(link="log"))
  32. summary(var1_model6)
  33. # Chi square test random intercept model with smallest AIC vs fixed intercept model
  34. anova(var1_modelx, var1_model0, test="Chisq")
  35. # if sig, continue with predictor model
  36. # predictor model
  37. # adjust random_intercept
  38. var1_model7 <- glmer(dendrite_var1 ~ 1 + engram_status + (1 |random_intercept), data = df1,family = Gamma(link="log"))
  39. summary(var1_model7)
  40. # Chi square test predictor model vs random intercept model
  41. anova(var1_model7, var1_modelx, test="Chisq")
  42. emmeans(var1_model7, pairwise ~ engram_status, adjust = "fdr")
  43. ## on spine level
  44. # e.g. spine volume, spine length
  45. # exchange spine_var2 for variable of interest
  46. df2 <- read.table("Morphology.csv", sep=";", dec=",", header=TRUE)
  47. # fixed intercept model
  48. var2_model0 <- glm(spine_var2 ~ 1, data = df2, family = Gamma(link="log"))
  49. summary(var2_model0)
  50. # random intercept model
  51. var2_model1 <- glmer(spine_var2 ~ 1 + (1 |animal), data = df2, family = Gamma(link="log"))
  52. summary(var2_model01)
  53. var2_model2 <- glmer(spine_var2 ~ 1 + (1 |animal_slice), data = df2, family = Gamma(link="log"))
  54. summary(var2_model02)
  55. var2_model3 <- glmer(spine_var2 ~ 1 + (1 |animal_slice_cell), data = df2, family = Gamma(link="log"))
  56. summary(var2_model03)
  57. var2_model4 <- glmer(spine_var2 ~ 1 + (1 |animal_slice_cell_dendrite), data = df2, family = Gamma(link="log"))
  58. summary(var2_model04)
  59. var2_model5 <- glmer(spine_var2 ~ 1 + (1 |animal/animal_slice), data = df2, family = Gamma(link="log"))
  60. summary(var2_model05)
  61. var2_model6 <- glmer(spine_var2 ~ 1 + (1 |animal_slice/animal_slice_cell), data = df2, family = Gamma(link="log"))
  62. summary(var2_model06)
  63. var2_model7 <- glmer(spine_var2 ~ 1 + (1 |animal_slice_cell/animal_slice_cell_dendrite), data = df2, family = Gamma(link="log"))
  64. summary(var2_model07)
  65. var2_model8 <- glmer(spine_var2 ~ 1 + (1 |animal/animal_slice/animal_slice_cell), data = df2, family = Gamma(link="log"))
  66. summary(var2_model08)
  67. var2_model9 <- glmer(spine_var2 ~ 1 + (1 |animal_slice/animal_slice_cell/animal_slice_cell_dendrite), data = df2, family = Gamma(link="log"))
  68. summary(var2_model09)
  69. var2_model10 <- glmer(spine_var2 ~ 1 + (1 |animal/animal_slice/animal_slice_cell/animal_slice_cell_dendrite), data = df2, family = Gamma(link="log"))
  70. summary(var2_model10)
  71. # Chi square test random intercept model with smallest AIC vs fixed intercept model
  72. anova(var2_model07, var2_model0, test="Chisq")
  73. # if sig, continue with predictor model
  74. # predictor model
  75. # adjust random_intercept
  76. var2_model11 <- glmer(spine_var2 ~ 1 + engram_status + (1 |random_intercept), data = df2,family = Gamma(link="log"))
  77. summary(var2_model11)
  78. # Chi square test predictor model vs random intercept model
  79. anova(var2_model11, var2_model07, test="Chisq")
  80. emmeans(var2_model11, pairwise ~ engram_status, adjust = "fdr")

Mitric-Beerens_etal_2026_NatCommun_Fig6_DataAnalysis.R at commit 139c75d, no license · at the source

Overview

Authors: Miodrag M. Mitrić1, Sanne Beerens1, Panthea Nemat1, Esther Visser1, Luca Lorraine van Leeuwen1, Rolinka J. van der Loo1, August B. Smit1, Priyanka Rao-Ruiz1, Michel C. van den Oever1
  1. Department of Molecular and Cellular Neurobiology, Center for Neurogenomics and Cognitive Research, Amsterdam Neuroscience, Vrije Universiteit Amsterdam,Amsterdam, The Netherlands
Institutions: Vrije Universiteit Amsterdam (Netherlands)
Journal: Nature communications, volume 17, issue 1, article 7447
Dates: received 18 June 2025; accepted 29 May 2026; published online 11 June 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s41467-026-74231-5 · PMID 42277042 · PMCID PMC13408494 · OpenAlex W7164379807
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: histology / microscopy (modality), mouse (organism), cognitive (subfield)
Methods: Spectral & time-frequency, Statistics, fMRI & imaging, Single-unit activity, calcium imaging
Keywords: Fear conditioning, Spine regulation and structure
MeSH: Fear*, Memory, Long-Term*, Prefrontal Cortex*, Pyramidal Cells*, Animals, Chemogenetics, Conditioning, Classical, Dendrites, Dendritic Spines, Male, Mice, Mice, Inbred C57BL (* major topic)
Topic: Memory and Neural Mechanisms (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 55 references in the paper

Abstract

The strength of persistent threat memories depends on the intensity of an aversive experience. We combined engram tagging with chemogenetics, electrophysiology and spine analyses in male mice to identify how threat intensity, following mild or strong contextual threat conditioning (CTC), shapes physiological and structural properties of prelimbic cortex (PL) pyramidal neurons. PL engram cells selectively mediate retrieval of a mild remote threat memory, and develop neuroadaptations that are time-dependent, dendritic segment-specific, and modulated by threat intensity. Specifically, increased presynaptic release probability, together with reduced postsynaptic strength and spine size, developed regardless of threat intensity. However, addition of long thin spines occurred exclusively on oblique dendrites of engram neurons after mild CTC, aligning with the PL engram contribution to mild, but not strong, threat memory. Our findings reveal how threat intensity shapes cortical engram architecture, which is pivotal for understanding the neural representation of threat memory strength and persistence.

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 3 matches between paragraphs and lines of code.

AllenInstitute/MIES

License: BSD-2-Clause
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 5e6410391e0a92988c37df39c3ea435bd96af058, 17 September 2026
Languages: Shell (28), C/C++ (14), Python (2), C++ (2), C (1)
Size: 1,065 files, 47 scripts
Software Heritage: archived
Found in: the text, “Electrophysiological recordings and analysis”
Holds: README, license file, environment (tools/documentation/Dockerfile, tools/documentation/requirements.in, tools/documentation/requirements.txt, tools/ftp-upload/Dockerfile, tools/nwb-read-tests/Dockerfile, tools/nwb-read-tests/requirements.in, tools/nwb-read-tests/requirements.txt, tools/pre-commit/Dockerfile, tools/pre-commit/requirements.in, tools/pre-commit/requirements.txt, tools/report-generator/Dockerfile), tests, continuous integration, documentation
Not found: CITATION.cff
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
49 files

PantheaNemat/Mitric-Beerens_etal_2026_Nat.Commun

License: none: the authors keep all their rights
State: the link is dead, verified on 27 September 2026
Evidence: found in the paper
Software Heritage: not archived
Found in: “Code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link is dead
  • 27 September 2026: the link is dead

Zenodo 19483826

License: CC-BY-4.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Languages: R (1)
Size: 2 files, 1 script
Software Heritage: not checked
Found in: “Code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
1 file
At the source:

pantheanemat/mitric-beerens_etal_2026_nat.commun.

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 139c75d04b4a7e5ea12cf8c830932f553720eaa4, 25 May 2026
Languages: R (1)
Size: 2 files, 1 script
Software Heritage: not archived
Found in: the Zenodo archive record
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
2 files

Code availability

Code used for spine analysis is available on Github(https://github.com/PantheaNemat/Mitric-Beerens_etal_2026_Nat.Commun.) and Zenodo (10.5281/zenodo.19483826).

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

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:

  • 4 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 49 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

All behavioral, cellular, electrophysiological and structural data generated in this study are provided in the Source Data file. Source data are provided with this paper.

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

Recorded: type, language, journal, volume, issue, pages, dates, 9 authors, 2 keywords, 12 MeSH terms, 1 funder, 55 references.

Cite

This paper

Mitrić, M. M., Beerens, S., Nemat, P., Visser, E., van Leeuwen, L. L., van der Loo, R. J., Smit, A. B., Rao-Ruiz, P., & van den Oever, M. C. (2026). Threat intensity shapes cortical engram architecture supporting remote memory retrieval. Nature communications, 17(1), 7447. https://doi.org/10.1038/s41467-026-74231-5

BibTeX

@article{mitric2026threat,
author = {Mitrić, Miodrag M. and Beerens, Sanne and Nemat, Panthea and Visser, Esther and van Leeuwen, Luca Lorraine and van der Loo, Rolinka J. and Smit, August B. and Rao-Ruiz, Priyanka and van den Oever, Michel C.},
title = {{Threat intensity shapes cortical engram architecture supporting remote memory retrieval}},
journal = {Nature communications},
year = {2026},
month = jun,
volume = {17},
number = {1},
pages = {7447},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/s41467-026-74231-5},
url = {https://doi.org/10.1038/s41467-026-74231-5},
pmid = {42277042},
pmcid = {PMC13408494}
}

RIS

TY - JOUR
AU - Mitrić, Miodrag M.
AU - Beerens, Sanne
AU - Nemat, Panthea
AU - Visser, Esther
AU - van Leeuwen, Luca Lorraine
AU - van der Loo, Rolinka J.
AU - Smit, August B.
AU - Rao-Ruiz, Priyanka
AU - van den Oever, Michel C.
TI - Threat intensity shapes cortical engram architecture supporting remote memory retrieval
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/06/11
VL - 17
IS - 1
SP - 7447
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/s41467-026-74231-5
UR - https://doi.org/10.1038/s41467-026-74231-5
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-74231-5",
"type": "article-journal",
"title": "Threat intensity shapes cortical engram architecture supporting remote memory retrieval",
"container-title": "Nature communications",
"author": [
{
"family": "Mitrić",
"given": "Miodrag M."
},
{
"family": "Beerens",
"given": "Sanne"
},
{
"family": "Nemat",
"given": "Panthea"
},
{
"family": "Visser",
"given": "Esther"
},
{
"family": "van Leeuwen",
"given": "Luca Lorraine"
},
{
"family": "van der Loo",
"given": "Rolinka J."
},
{
"family": "Smit",
"given": "August B."
},
{
"family": "Rao-Ruiz",
"given": "Priyanka"
},
{
"family": "van den Oever",
"given": "Michel C."
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "7447",
"DOI": "10.1038/s41467-026-74231-5",
"PMID": "42277042",
"PMCID": "PMC13408494",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41467-026-74231-5",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
11
]
]
}
}

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.1126/sciadv.adv3557 [code]
GRASPing experience-dependent protein expression signatures enriched for hippocampal engram cell synapses.
Journal: Science advances
In common: mouse, 8 references, 4 authors
[2] doi:10.1002/advs.202521254 [code]
Persistently Increased Expression of PKMzeta and Unbiased Gene Expression Profiles Identify Hippocampal Molecular Traces of a Long-Term Active Place Avoidance Memory and "Shadow" Proteins.
Journal: Advanced science (Weinheim, Baden-Wurttemberg, Germany)
In common: histology / microscopy, 5 references
[3] doi:10.1038/s41593-026-02231-1 [code]
The prefrontal cortex controls memory organization in the hippocampus.
Journal: Nature neuroscience
In common: mouse, 4 references
[4] doi:10.3389/fncel.2026.1769317
Transcriptomic signatures of hippocampal active place avoidance memory maintenance.
Journal: Frontiers in cellular neuroscience
In common: mouse, 4 references
[5] doi:10.1126/sciadv.aec3961 [code]
Linking functional and structural dendritic spine remodeling during fear learning and extinction in vivo.
Journal: Science advances
In common: histology / microscopy, cognitive, mouse, 2 references
[6] doi:10.1038/s41467-026-77318-1 [code]
Offline generative network reconfiguration guides insight-like accelerated learning by assimilation into schema in rats.
Journal: Nature communications
In common: 3 references
[7] doi:10.7554/elife.110588 [code]
Opening the black box toward a modular approach to spike sorting.
Journal: eLife
In common: Neurodata Without Borders (PyNWB, MatNWB), h5py, mouse
[8] doi:10.1038/s41467-026-76939-w [code]
HIPPIE: a generative model for electrophysiological analysis across species, technologies, and modalities.
Journal: Nature communications
In common: Neurodata Without Borders (PyNWB, MatNWB), h5py, mouse
[9] doi:10.7554/elife.109717 [code]
Retrosplenial cortex enables context-dependent goal-directed sensorimotor transformation.
Journal: eLife
In common: Neurodata Without Borders (PyNWB, MatNWB), h5py, mouse
[10] doi:10.1038/s41592-026-03076-z [code]
Neuropixels Opto: combining high-resolution electrophysiology and optogenetics.
Journal: Nature methods
In common: Neurodata Without Borders (PyNWB, MatNWB), h5py, mouse

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.