Adaptive shifts in amygdala-hippocampal theta coupling govern aversive learning and extinction.
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 2 matches · all tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
- [1] § Methods › Connectivity analyses › Transfer Entropy Estimation ↔ calculate_transfer_entropy.m, the whole file · a weak match · score 0.72 · Transfer entropy, nearest neighbour, EEGLAB, bidirectionally, delay, TE · block
oscr:b:535VVX0RF4M17-F· Report a mismatch - [2] § Methods › Connectivity analyses › Weighted phase lag index (wPLI) ↔ calculate_wpli.m, the whole file · a weak match · score 0.50 · Weighted phase lag, wPLI, signals · block
oscr:b:ZH19FY90532TA-7· 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
MATLAB · 70 lines · 2.4 KB · no license · 1 match
- function [TE_1to2, TE_2to1] = calculate_transfer_entropy(signal1, signal2, fs, params)
- %Saurabh Sonkusare
- %University of CAmbridge
- %March 2023
- % CALCULATE_TRANSFER_ENTROPY - Computes bidirectional Transfer Entropy between two signals
- %
- % Inputs:
- % signal1 - First time series (N_samples x 1 or 1 x N_samples)
- % signal2 - Second time series (same dimensions as signal1)
- % fs - Sampling frequency (Hz)
- % params - Struct with optional parameters:
- % .freq_band - [low_freq high_freq] for filtering (default: no filtering)
- % .tau - Time delay in samples (default: 25)
- % .k - k-nearest neighbors (default: 4)
- % .n_trials - For trial-based data (default: 1)
- %
- % Outputs:
- % TE_1to2 - Transfer Entropy from signal1 ? signal2
- % TE_2to1 - Transfer Entropy from signal2 ? signal1
- % Set default parameters
- if nargin < 4
- params = struct();
- end
- if ~isfield(params, 'tau'), params.tau = 25; end
- if ~isfield(params, 'k'), params.k = 4; end
- if ~isfield(params, 'n_trials'), params.n_trials = 1; end
- % Ensure column vectors
- signal1 = signal1(:);
- signal2 = signal2(:);
- % Optional bandpass filtering
- % I have used EEGLAB filter functions though
- if isfield(params, 'freq_band')
- [b,a] = butter(4, params.freq_band/(fs/2), 'bandpass');
- signal1 = filtfilt(b, a, signal1);
- signal2 = filtfilt(b, a, signal2);
- end
- % Reshape for trial-based data
- if params.n_trials > 1
- signal1 = reshape(signal1, [], params.n_trials)';
- signal2 = reshape(signal2, [], params.n_trials)';
- end
- % Initialize TE arrays
- TE_1to2 = zeros(params.n_trials, 1);
- TE_2to1 = zeros(params.n_trials, 1);
- % Calculate TE for each trial
- for trial = 1:params.n_trials
- TE_1to2(trial) = compute_transfer_entropy_knn(...
- signal1(trial,:), signal2(trial,:), params.k, params.tau);
- TE_2to1(trial) = compute_transfer_entropy_knn(...
- signal2(trial,:), signal1(trial,:), params.k, params.tau);
- end
- % Average across trials if needed
- if params.n_trials > 1
- TE_1to2 = mean(TE_1to2);
- TE_2to1 = mean(TE_2to1);
- end
- end
calculate_transfer_entropy.m at commit 569b655, no license · at the source
Overview
- Institute of Science and Technology for Brain-Inspired Intelligence, Fudan University,Shanghai, China
- Department of Psychiatry, University of Cambridge,Cambridge, UK
- Department of Neurosurgery, Centre for Functional Neurosurgery, Ruijin Hospital, Shanghai Jiao Tong University School of Medicine,Shanghai, China
- School of Psychology, University of Sheffield,Sheffield, UK
Abstract
Adaptive behaviour relies on the flexible encoding and suppression of aversive associations often underpinned by amygdala-hippocampal interactions. Yet the spectral and directional dynamics underlying these interactions in humans remain poorly understood. Using intracranial EEG recordings from the amygdala and the hippocampus acquired during a two-day aversive learning and extinction task, we identified frequency-specific shifts: amygdala theta (3–8 Hz) and gamma (30–45 Hz) power increased during conditioning and decreased during extinction, while hippocampal alpha and gamma activity gave way to theta and gamma during extinction. Directional phase connectivity, results showed frequency-specific reversals: amygdala-to-hippocampus dominance at 3-5 Hz and hippocampus-to-amygdala predominance at 6-8 Hz, a reconfiguration validated by computational modelling. These findings uncover distinct theta sub-bands coordinating dynamic, bidirectional communication in the human amygdala–hippocampal circuit, elucidating a neural mechanism for the flexible regulation of emotional memory.
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 2 matches between paragraphs and lines of code.
srbsonkusare/amygdala_hippocampal_dynamics_in_conditioning-extinction
569b65584a86ac9f13f0db5c8bdbd8e76db83a0e, 18 May 2025Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
2 files
- calculate_transfer_entro
py.m , MATLAB, 70 lines, 1 match - calculate_wpli.m, MATLAB, 68 lines, 1 match
Code availability
The Code for this project were acquired from patients undergoing clinical care and consenting to additional research protocols. Researchers wishing to access these data will require local ethics approval and a data sharing agreement with Ruijin Hospital, Shanghai, China. Open-source toolboxes have been used for analyses of this study. Open-source toolboxes have been used for analyses of this study. Specific codes are made 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:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 2 scripts, each with its path and the digest of its content;
- 2 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
The data for this project were acquired from patients undergoing clinical care and consenting to additional research protocols. Researchers wishing to access these data will require local ethics approval and a data sharing agreement with Ruijin Hospital, Shanghai, China. Open-source toolboxes have been used for analyses of this study. Open-source toolboxes have been used for analyses of this study. Specific codes are made available on github https://
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, 14 authors, 4 keywords, 12 MeSH terms, 1 funder, 67 references.
Cite
This paper
Sonkusare, S., Ding, Q., Weirich, C., Feng, Y., Liu, W., Yang, R., Mandali, A., Sallie, S., Casero, V., Cao, C., Li, D., Sun, B., Zhan, S., & Voon, V. (2026). Adaptive shifts in amygdala-hippocampal theta coupling govern aversive learning and extinction. Nature communications, 17(1), 7835. https://
BibTeX
@article{sonkusare2026ad
author = {Sonkusare, Saurabh and Ding, Qiong and Weirich, Christopher and Feng, Yashu and Liu, Wei and Yang, Ruoqi and Mandali, Alekhya and Sallie, Samantha and Casero, Violeta and Cao, Chunyan and Li, Dianyou and Sun, Bomin and Zhan, Shikun and Voon, Valerie},
title = {{Adaptive shifts in amygdala-hippocampal theta coupling govern aversive learning and extinction}},
journal = {Nature communications},
year = {2026},
month = jun,
volume = {17},
number = {1},
pages = {7835},
publisher = {Nature Portfolio},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {42270631},
pmcid = {PMC13439568}
}
RIS
TY - JOUR
AU - Sonkusare, Saurabh
AU - Ding, Qiong
AU - Weirich, Christopher
AU - Feng, Yashu
AU - Liu, Wei
AU - Yang, Ruoqi
AU - Mandali, Alekhya
AU - Sallie, Samantha
AU - Casero, Violeta
AU - Cao, Chunyan
AU - Li, Dianyou
AU - Sun, Bomin
AU - Zhan, Shikun
AU - Voon, Valerie
TI - Adaptive shifts in amygdala-hippocampal theta coupling govern aversive learning and extinction
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 7835
SN - 2041-1723
PB - Nature Portfolio
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Adaptive shifts in amygdala-hippocampal theta coupling govern aversive learning and extinction",
"container-title": "Nature communications",
"author": [
{
"family": "Sonkusare",
"given": "Saurabh"
},
{
"family": "Ding",
"given": "Qiong"
},
{
"family": "Weirich",
"given": "Christopher"
},
{
"family": "Feng",
"given": "Yashu"
},
{
"family": "Liu",
"given": "Wei"
},
{
"family": "Yang",
"given": "Ruoqi"
},
{
"family": "Mandali",
"given": "Alekhya"
},
{
"family": "Sallie",
"given": "Samantha"
},
{
"family": "Casero",
"given": "Violeta"
},
{
"family": "Cao",
"given": "Chunyan"
},
{
"family": "Li",
"given": "Dianyou"
},
{
"family": "Sun",
"given": "Bomin"
},
{
"family": "Zhan",
"given": "Shikun"
},
{
"family": "Voon",
"given": "Valerie"
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "7835",
"DOI": "10.1038/
"PMID": "42270631",
"PMCID": "PMC13439568",
"ISSN": "2041-1723",
"publisher": "Nature Portfolio",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
10
]
]
}
}
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.1038/s41467-025-65179-z [code]
- Prefrontal-bed nucleus of the stria terminalis physiological and neuropsychological biomarkers predict therapeutic outcomes in depression.Journal: Nature communicationsIn common: Signal Processing Toolbox, 1 reference, 6 authors
- [2] doi:10.1038/s41562-025-02268-5 [code]
- Representational dynamics during extinction of fear memories in the human brain.Journal: Nature human behaviourIn common: Signal Processing Toolbox, EEG, 14 references
- [3] doi:10.1093/brain/awaf431 [code]
- Behavioural and clinical biomarkers of the human bed nucleus of stria terminalis from direct neural recordings.Journal: Brain : a journal of neurologyIn common: Signal Processing Toolbox, 6 references, 2 authors
- [4] doi:10.1038/s44220-024-00289-z [code]
- Modeling impulsivity and risk aversion in the subthalamic nucleus with deep brain stimulation.Journal: Nature. Mental healthIn common: cognitive, 1 reference, 3 authors
- [5] doi:10.1038/s41467-024-53521-w [code]
- Reward recalibrates rule representations in human amygdala and hippocampus intracranial recordings.Journal: Nature communicationsIn common: cognitive, 4 references, 2 authors
- [6] doi:10.21203/rs.3.rs-6231369/v1
- Dissociable Physiological Biomarkers of Psychiatric Symptoms in Parkinson’s disease in the Subthalamic Nucleus: Evidence from Deep Brain Stimulation Intracranial RecordingsJournal: Research Square (preprint)In common: 1 reference, 2 authors
- [7] doi:10.7554/elife.89519 [code]
- Basolateral amygdala oscillations enable fear learning in a biophysical model.Journal: eLifeIn common: Signal Processing Toolbox, 7 references
- [8] doi:10.1038/s41467-023-42315-1 [code]
- Thalamic nucleus reuniens coordinates prefrontal-hippocampal synchrony to suppress extinguished fear.Journal: Nature communicationsIn common: Signal Processing Toolbox, 7 references
- [9] doi:10.1016/j.ynirp.2026.100402
- Dopamine D2/
3 receptors and functional connectivity during fear extinction: A PET-fMRI study. Journal: Neuroimage. ReportsIn common: 8 references - [10] doi:10.1016/j.ijchp.2025.100581
- Executive functions modulate conditioned fear extinction and reinstatement: The differential roles of shifting, updating, and inhibition.Journal: International journal of clinical and health psychology : IJCHPIn common: cognitive, 7 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: 1 repository of the authors' code, each at its verified commit and with its license, 2 scripts, and 2 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:a805c57e2470230a…
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-73967-4)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s41467-026-73967-4.svg
:target: https://openscicode.org/badge/doi/10.1038/s41467-026-73967-4
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-73967-4"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-73967-4.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".
- srbsonkusare/amygdala_hippocampal_dynamics_in_conditioning-extinction on GitHub (add a README there)
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.
