Threat intensity shapes cortical engram architecture supporting remote memory retrieval.
2 blocks of code here have 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] § Methods › Quantification and statistical analysis ↔ Mitric-Beerens_etal_2026_NatCommun_Fig6_DataAnalysis.R, lines 1 to 40 · score 0.62 · random intercept, spine densities, multilevel, slice, model, variables · block
oscr:b:M5PTAWK1KFHM8-I· Report a mismatch - [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 to 105 · score 0.61 · Predictor model, Spine volume, Spine length, Morphology, dendrites, Figure 6 · block
oscr:b:0MWJ3JFVCA26E-E· Report a mismatch - [3] § Results › Threat intensity gates engagement of the PL engram in remote memory expression ↔ Mitric-Beerens_etal_2026_NatCommun_Fig6_DataAnalysis.R, lines 1 to 40 · score 0.58 · remote memory retrieval, Threat intensity, engram, cells · block
oscr:b:M5PTAWK1KFHM8-I· 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 · 107 lines · 4.3 KB · no license · 3 matches
- ### Example Analysis Code - Mitric, Beerens et al., 2026.
- ### Threat intensity shapes cortical engram architecture supporting remote memory retrieval. Nature Communications
- ## FIG 6 - structural analysis
- #### set up R
- # clear existing workspace objects
- rm(list = ls())
- graphics.off()
- # set working directory to where the data file is located & results should be saved (change to your own directory)
- setwd("~/Documents/Spine analysis data")
- ### example analysis multilevel analysis
- ## on dendrite level
- # e.g. spine density, spine type density
- # exchange dendrite_var1 for variable of interest
- df1 <- read.table("SpineDensity.csv", sep=";", dec=",", header=TRUE)
- #OR
- df1 <- read.table("SpineTypeDensity.csv", sep=";", dec=",", header=TRUE)
- # fixed intercept model
- var1_model0 <- glm(dendrite_var1 ~ 1, data = df1)
- summary(var1_model0)
- # random intercept model
- var1_model1 <- glmer(dendrite_var1 ~ 1 + (1 |animal), data = df1, family = Gamma(link="log"))
- summary(var1_model1)
- var1_model2 <- glmer(dendrite_var1 ~ 1 + (1 |animal_slice), data = df1, family = Gamma(link="log"))
- summary(var1_model2)
- var1_model3 <- glmer(dendrite_var1 ~ 1 + (1 |animal_slice_cell), data = df1, family = Gamma(link="log"))
- summary(var1_model3)
- var1_model4 <- glmer(dendrite_var1 ~ 1 + (1 |animal/animal_slice), data = df1, family = Gamma(link="log"))
- summary(var1_model4)
- var1_model5 <- glmer(dendrite_var1 ~ 1 + (1 |animal_slice/animal_slice_cell), data = df1, family = Gamma(link="log"))
- summary(var1_model5)
- var1_model6 <- glmer(dendrite_var1 ~ 1 + (1 |animal/animal_slice/animal_slice_cell), data = df1, family = Gamma(link="log"))
- summary(var1_model6)
- # Chi square test random intercept model with smallest AIC vs fixed intercept model
- anova(var1_modelx, var1_model0, test="Chisq")
- # if sig, continue with predictor model
- # predictor model
- # adjust random_intercept
- var1_model7 <- glmer(dendrite_var1 ~ 1 + engram_status + (1 |random_intercept), data = df1,family = Gamma(link="log"))
- summary(var1_model7)
- # Chi square test predictor model vs random intercept model
- anova(var1_model7, var1_modelx, test="Chisq")
- emmeans(var1_model7, pairwise ~ engram_status, adjust = "fdr")
- ## on spine level
- # e.g. spine volume, spine length
- # exchange spine_var2 for variable of interest
- df2 <- read.table("Morphology.csv", sep=";", dec=",", header=TRUE)
- # fixed intercept model
- var2_model0 <- glm(spine_var2 ~ 1, data = df2, family = Gamma(link="log"))
- summary(var2_model0)
- # random intercept model
- var2_model1 <- glmer(spine_var2 ~ 1 + (1 |animal), data = df2, family = Gamma(link="log"))
- summary(var2_model01)
- var2_model2 <- glmer(spine_var2 ~ 1 + (1 |animal_slice), data = df2, family = Gamma(link="log"))
- summary(var2_model02)
- var2_model3 <- glmer(spine_var2 ~ 1 + (1 |animal_slice_cell), data = df2, family = Gamma(link="log"))
- summary(var2_model03)
- var2_model4 <- glmer(spine_var2 ~ 1 + (1 |animal_slice_cell_dendrite), data = df2, family = Gamma(link="log"))
- summary(var2_model04)
- var2_model5 <- glmer(spine_var2 ~ 1 + (1 |animal/animal_slice), data = df2, family = Gamma(link="log"))
- summary(var2_model05)
- var2_model6 <- glmer(spine_var2 ~ 1 + (1 |animal_slice/animal_slice_cell), data = df2, family = Gamma(link="log"))
- summary(var2_model06)
- var2_model7 <- glmer(spine_var2 ~ 1 + (1 |animal_slice_cell/animal_slice_cell_dendrite), data = df2, family = Gamma(link="log"))
- summary(var2_model07)
- var2_model8 <- glmer(spine_var2 ~ 1 + (1 |animal/animal_slice/animal_slice_cell), data = df2, family = Gamma(link="log"))
- summary(var2_model08)
- var2_model9 <- glmer(spine_var2 ~ 1 + (1 |animal_slice/animal_slice_cell/animal_slice_cell_dendrite), data = df2, family = Gamma(link="log"))
- summary(var2_model09)
- var2_model10 <- glmer(spine_var2 ~ 1 + (1 |animal/animal_slice/animal_slice_cell/animal_slice_cell_dendrite), data = df2, family = Gamma(link="log"))
- summary(var2_model10)
- # Chi square test random intercept model with smallest AIC vs fixed intercept model
- anova(var2_model07, var2_model0, test="Chisq")
- # if sig, continue with predictor model
- # predictor model
- # adjust random_intercept
- var2_model11 <- glmer(spine_var2 ~ 1 + engram_status + (1 |random_intercept), data = df2,family = Gamma(link="log"))
- summary(var2_model11)
- # Chi square test predictor model vs random intercept model
- anova(var2_model11, var2_model07, test="Chisq")
- 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
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
bf4ef8bf67afc06f0c3fb2f3469e07b8b4291b00, 27 October 2026Availability: 2 checks, the latest on 27 October 2026: the link answers
- 27 October 2026: the link answers
- 27 September 2026: the link answers
49 files
- Packages/
doc/ , Python, 80 linesconf.py - tools/
autorun-test.sh , Shell, 69 lines - tools/
build-documentation.sh , Shell, 156 lines - tools/
check-code.sh , Shell, 281 lines - tools/
clean_mies_installation. , Shell, 174 linessh - tools/
cleanup-dotfiles.sh , Shell, 26 lines - tools/
create-changelog.sh , Shell, 57 lines - tools/
create-installer.sh , Shell, 128 lines - tools/
create-release.sh , Shell, 85 lines - tools/
documentation/ , Shell, 23 linesrun.sh - tools/
ftp-upload/ , Shell, 18 linescompress-files.sh - tools/
ftp-upload/ , Shell, 88 linesdownload-files.sh - tools/
ftp-upload/ , Shell, 45 linesflatten-files.sh - tools/
ftp-upload/ , Shell, 63 linesupload-files.sh - tools/
functionprofiling.sh , Shell, 31 lines - tools/
gather-logfiles-and-cras , Shell, 34 lineshdumps.sh - tools/
get-changed-controls.sh , Shell, 35 lines - tools/
get-igor-path.sh , Shell, 49 lines - tools/
initial-repo-config.sh , Shell, 48 lines - tools/
installer/ , C++, 1,444 linesAccessControl/ Contrib/ AccessControl/ AccessControl.cpp - tools/
installer/ , C/C++, 83 linesAccessControl/ Contrib/ AccessControl/ nsis_ansi/ api.h - tools/
installer/ , C/C++, 74 linesAccessControl/ Contrib/ AccessControl/ nsis_ansi/ pluginapi.h - tools/
installer/ , C/C++, 83 linesAccessControl/ Contrib/ AccessControl/ nsis_unicode/ api.h - tools/
installer/ , C/C++, 214 linesAccessControl/ Contrib/ AccessControl/ nsis_unicode/ nsis_tchar.h - tools/
installer/ , C/C++, 101 linesAccessControl/ Contrib/ AccessControl/ nsis_unicode/ pluginapi.h - tools/
installer/ , C/C++, 14 linesAccessControl/ Contrib/ AccessControl/ resource.h - tools/
installer/ , C++, 348 linesShelllink/ Contrib/ ShellLink/ ShellLink.cpp - tools/
installer/ , C/C++, 83 linesShelllink/ Contrib/ ShellLink/ nsis_ansi/ api.h - tools/
installer/ , C/C++, 74 linesShelllink/ Contrib/ ShellLink/ nsis_ansi/ pluginapi.h - tools/
installer/ , C/C++, 83 linesShelllink/ Contrib/ ShellLink/ nsis_unicode/ api.h - tools/
installer/ , C/C++, 214 linesShelllink/ Contrib/ ShellLink/ nsis_unicode/ nsis_tchar.h - tools/
installer/ , C/C++, 101 linesShelllink/ Contrib/ ShellLink/ nsis_unicode/ pluginapi.h - tools/
installer/ , C, 42 linesnsis/ Examples/ Plugin/ exdll.c - tools/
installer/ , C/C++, 85 linesnsis/ Examples/ Plugin/ nsis/ api.h - tools/
installer/ , C/C++, 229 linesnsis/ Examples/ Plugin/ nsis/ nsis_tchar.h - tools/
installer/ , C/C++, 108 linesnsis/ Examples/ Plugin/ nsis/ pluginapi.h - tools/
nextFreePRNumber.sh , Shell, 30 lines - tools/
nwb-read-tests/ , Python, 119 linesnwbv2-read-test.py - tools/
nwb-read-tests/ , Shell, 29 linesrun.sh - tools/
pre-commit/ , Shell, 36 linesrun.sh - tools/
publish-docs-on-github.s , Shell, 70 linesh - tools/
report-generator/ , Shell, 119 linesbuild.sh - tools/
run-ipt.sh , Shell, 29 lines - tools/
sign-installer.sh , Shell, 98 lines - tools/
upload-github-release-as , Shell, 146 linesset-helper.sh - tools/
upload-github-release-as , Shell, 81 linesset.sh - tools/
verify-junit-files.sh , Shell, 32 lines - LICENSE, License, 32 lines
- README.md, Text, 100 lines
PantheaNemat/Mitric-Beerens_etal_2026_Nat.Commun
Availability: 1 check, the latest on 27 September 2026: the link is dead
- 27 September 2026: the link is dead
Zenodo 19483826
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
1 file
- Mitric-Beerens_etal_2026
_NatCommun_Fig6_DataAnal , R, 107 linesysis.R
pantheanemat/mitric-beerens_etal_2026_nat.commun.
139c75d04b4a7e5ea12cf8c830932f553720eaa4, 25 May 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
2 files
- Mitric-Beerens_etal_2026
_NatCommun_Fig6_DataAnal , R, 107 lines, 3 matchesysis.R - README.md, Text, 27 lines
Code availability
Code used for spine analysis is available on Github(https://
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://
BibTeX
@article{mitric2026threa
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 Portfolio},
issn = {2041-1723},
doi = {10.1038/
url = {https://
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/
VL - 17
IS - 1
SP - 7447
SN - 2041-1723
PB - Nature Portfolio
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"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":
"volume": "17",
"issue": "1",
"page": "7447",
"DOI": "10.1038/
"PMID": "42277042",
"PMCID": "PMC13408494",
"ISSN": "2041-1723",
"publisher": "Nature Portfolio",
"URL": "https://
"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 advancesIn common: mouse, 8 references, 4 authors
- [2] doi:10.1038/s41386-024-01825-2 [code]
- Reactivation of encoding ensembles in the prelimbic cortex supports temporal associations.Journal: Neuropsychopharmacology : official publication of the American College of NeuropsychopharmacologyIn common: mouse, 8 references
- [3] doi:10.1038/s41467-023-39718-5
- Systems consolidation induces multiple memory engrams for a flexible recall strategy in observational fear memory in male mice.Journal: Nature communicationsIn common: mouse, 8 references
- [4] doi:10.1016/j.xpro.2023.102369 [code]
- Activity-dependent labeling and manipulation of fentanyl-recruited striatal ensembles using ArcTRAP approach.Journal: STAR protocolsIn common: mouse, 7 references
- [5] doi:10.1016/j.ynstr.2022.100459
- Remote contextual fear retrieval engages activity from salience network regions in rats.Journal: Neurobiology of stressIn common: 7 references
- [6] doi:10.1016/j.cub.2023.07.042
- Engram stability and maturation during systems consolidation.Journal: Current biology : CBIn common: histology / microscopy, 7 references
- [7] doi:10.1371/journal.pcbi.1013251 [code]
- Learning, sleep replay and consolidation of contextual fear memories: A neural network model.Journal: PLoS computational biologyIn common: cognitive, 6 references
- [8] doi:10.7554/elife.78542 [code]
- Brain-wide screen of prelimbic cortex inputs reveals a functional shift during early fear memory consolidation.Journal: eLifeIn common: cognitive, mouse, 6 references
- [9] doi:10.1371/journal.pbio.3003391 [code]
- Extinction and subsequent updating of innate fear responses to a visual looming stimulus rely on hippocampus-dependent mechanisms.Journal: PLoS biologyIn common: mouse, 6 references
- [10] doi:10.1002/hipo.70030 [code]
- Combinative Protein Expression of Immediate Early Genes c-Fos, Arc, and Npas4 Along Aversive and Appetitive Experience-Related Neural Networks.Journal: HippocampusIn common: histology / microscopy, 6 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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 4 repositories of the authors' code, each at its verified commit and with its license, 49 scripts, and 3 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:03658082aec40e4b…
Add the badge to the code's README
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 -->
[](https://openscicode.org/badge/doi/10.1038/s41467-026-74231-5)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s41467-026-74231-5.svg
:target: https://openscicode.org/badge/doi/10.1038/s41467-026-74231-5
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-74231-5"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-74231-5.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".
- AllenInstitute/MIES: README.md on GitHub
- PantheaNemat/Mitric-Beerens_etal_2026_Nat.Commun on GitHub (add a README there)
- pantheanemat/mitric-beerens_etal_2026_nat.commun.: README.md on GitHub
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.
