OSCR

Adaptive shifts in amygdala-hippocampal theta coupling govern aversive learning and extinction.

Code ↔ Paper

2 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.

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. [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. [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

  1. function [TE_1to2, TE_2to1] = calculate_transfer_entropy(signal1, signal2, fs, params)
  2. %Saurabh Sonkusare
  3. %University of CAmbridge
  4. %March 2023
  5. % CALCULATE_TRANSFER_ENTROPY - Computes bidirectional Transfer Entropy between two signals
  6. %
  7. % Inputs:
  8. % signal1 - First time series (N_samples x 1 or 1 x N_samples)
  9. % signal2 - Second time series (same dimensions as signal1)
  10. % fs - Sampling frequency (Hz)
  11. % params - Struct with optional parameters:
  12. % .freq_band - [low_freq high_freq] for filtering (default: no filtering)
  13. % .tau - Time delay in samples (default: 25)
  14. % .k - k-nearest neighbors (default: 4)
  15. % .n_trials - For trial-based data (default: 1)
  16. %
  17. % Outputs:
  18. % TE_1to2 - Transfer Entropy from signal1 ? signal2
  19. % TE_2to1 - Transfer Entropy from signal2 ? signal1
  20. % Set default parameters
  21. if nargin < 4
  22. params = struct();
  23. end
  24. if ~isfield(params, 'tau'), params.tau = 25; end
  25. if ~isfield(params, 'k'), params.k = 4; end
  26. if ~isfield(params, 'n_trials'), params.n_trials = 1; end
  27. % Ensure column vectors
  28. signal1 = signal1(:);
  29. signal2 = signal2(:);
  30. % Optional bandpass filtering
  31. % I have used EEGLAB filter functions though
  32. if isfield(params, 'freq_band')
  33. [b,a] = butter(4, params.freq_band/(fs/2), 'bandpass');
  34. signal1 = filtfilt(b, a, signal1);
  35. signal2 = filtfilt(b, a, signal2);
  36. end
  37. % Reshape for trial-based data
  38. if params.n_trials > 1
  39. signal1 = reshape(signal1, [], params.n_trials)';
  40. signal2 = reshape(signal2, [], params.n_trials)';
  41. end
  42. % Initialize TE arrays
  43. TE_1to2 = zeros(params.n_trials, 1);
  44. TE_2to1 = zeros(params.n_trials, 1);
  45. % Calculate TE for each trial
  46. for trial = 1:params.n_trials
  47. TE_1to2(trial) = compute_transfer_entropy_knn(...
  48. signal1(trial,:), signal2(trial,:), params.k, params.tau);
  49. TE_2to1(trial) = compute_transfer_entropy_knn(...
  50. signal2(trial,:), signal1(trial,:), params.k, params.tau);
  51. end
  52. % Average across trials if needed
  53. if params.n_trials > 1
  54. TE_1to2 = mean(TE_1to2);
  55. TE_2to1 = mean(TE_2to1);
  56. end
  57. end

calculate_transfer_entropy.m at commit 569b655, no license · at the source

Overview

Authors: Saurabh Sonkusare1,2,3, Qiong Ding1,3, Christopher Weirich1, Yashu Feng1, Wei Liu3, Ruoqi Yang3, Alekhya Mandali2,4, Samantha Sallie2, Violeta Casero2, Chunyan Cao3, Dianyou Li3, Bomin Sun3, Shikun Zhan3, Valerie Voon1,2,3
  1. Institute of Science and Technology for Brain-Inspired Intelligence, Fudan University,Shanghai, China
  2. Department of Psychiatry, University of Cambridge,Cambridge, UK
  3. Department of Neurosurgery, Centre for Functional Neurosurgery, Ruijin Hospital, Shanghai Jiao Tong University School of Medicine,Shanghai, China
  4. School of Psychology, University of Sheffield,Sheffield, UK
Institutions: Fudan University (China); University of Cambridge (United Kingdom); Shanghai Jiao Tong University (China); University of Sheffield (United Kingdom)
Journal: Nature communications, volume 17, issue 1, article 7835
Dates: received 2 June 2025; accepted 21 May 2026; published online 10 June 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s41467-026-73967-4 · PMID 42270631 · PMCID PMC13439568 · OpenAlex W7164200923
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: EEG (modality), human (organism), cognitive (subfield)
Methods: Spectral & time-frequency, Preprocessing, Connectivity, Statistics, Machine learning, fMRI & imaging
Keywords: Fear conditioning, Extinction, Hippocampus, Amygdala
MeSH: Amygdala*, Avoidance Learning*, Extinction, Psychological*, Hippocampus*, Theta Rhythm*, Adult, Electroencephalography, Female, Humans, Male, Memory, Young Adult (* major topic)
Topic: Memory and Neural Mechanisms (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: National Institute for Health Research (NIHR) (NIHR203312)
Citations: not cited yet (Europe PMC); 73 references in the paper

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

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 569b65584a86ac9f13f0db5c8bdbd8e76db83a0e, 18 May 2025
Languages: MATLAB (2)
Size: 2 files, 2 scripts
Software Heritage: not archived
Found in: “Code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Signal Processing Toolbox (2 files)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
2 files

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://github.com/srbsonkusare/amygdala_hippocampal_dynamics_in_conditioning-extinction.

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://github.com/srbsonkusare/amygdala_hippocampal_dynamics_in_conditioning-extinction. 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, 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://doi.org/10.1038/s41467-026-73967-4

BibTeX

@article{sonkusare2026adaptive,
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/s41467-026-73967-4},
url = {https://doi.org/10.1038/s41467-026-73967-4},
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/06/10
VL - 17
IS - 1
SP - 7835
SN - 2041-1723
PB - Nature Portfolio
DO - 10.1038/s41467-026-73967-4
UR - https://doi.org/10.1038/s41467-026-73967-4
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-73967-4",
"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": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "7835",
"DOI": "10.1038/s41467-026-73967-4",
"PMID": "42270631",
"PMCID": "PMC13439568",
"ISSN": "2041-1723",
"publisher": "Nature Portfolio",
"URL": "https://doi.org/10.1038/s41467-026-73967-4",
"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 communications
In 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 behaviour
In 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 neurology
In 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 health
In 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 communications
In 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 Recordings
Journal: 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: eLife
In 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 communications
In 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. Reports
In 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 : IJCHP
In 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.

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/s41467-026-73967-4.svg)](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:end
HTML
<!-- 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".

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.