OSCR

Updating an allocentric goal from lateralised egocentric visual memories.

Code ↔ Paper

4 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 4 matches · 3 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § Result › A closed-loop interaction between egocentric terrestrial and allocentric celestial guidance ↔ Fig4 Paths_Sun_Mirror/model_prediction/Run_CX_Processing_mirror.m, lines 1–141 · score 0.80 · Mirrored Sun, Sun rotation, motor noise, Real ant, turn angles, onset
  2. [2] § Result › A closed-loop interaction between egocentric terrestrial and allocentric celestial guidance ↔ Fig3 CX_model/CX_Agent_FB_bump.m, the whole file · a weak match · score 0.67 · motor noise, familiarity signals, bump, FB, activates, cell
  3. [3] § Result › The CX circuitry is suited to receive lateralised input to produce goal-oriented paths ↔ Fig3 CX_model/CX_Agent_FB_bump.m, the whole file · a weak match · score 0.57 · familiarity signal, visual memories, agent, decay, CX, steers
  4. [4] § Result › Guidance based on memorised views involves the celestial compass ↔ Fig4 Paths_Sun_Mirror/model_prediction/CX_Agent_Ant_mirrorsun.m, the whole file · a weak match · score 0.52 · heading direction, visual memories, sun, steering, CX, motor

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

MATLAB · 109 lines · 3.4 KB · no license · 2 matches

  1. function [x,y,th,turn,err_dir,straightness] =CX_Agent_FB_bump(time, mem_bias, decay_CPU4, gain, motor_noise_deg, mem_noise_deg)
  2. %(x,y) are the agent coordinate
  3. %th is the current heading direction;
  4. % Basic parameters
  5. step_length = 1;
  6. max_angle = 180/180*pi; %boundary condition for the oscillation Careful below of the sign if not 180 and zero!
  7. min_angle = 0/180*pi;
  8. PB_thref = 0:pi/4:2*pi-0.1;
  9. bump_pwr = 4; % the higher the more the winner take all, the smaller the more linear
  10. % PB=((pi-abs(pi2pi(PB_thref - th))).^pwr) / pi.^pwr; % example
  11. mem_L= mem_bias/180*pi;
  12. mem_R= -mem_bias/180*pi;
  13. mem_noise=mem_noise_deg/180*pi;
  14. motor_noise=motor_noise_deg/180*pi;
  15. % Allocation variable cumulative
  16. turn=nan([1,time]);
  17. th=nan([1,time+1]);
  18. x=nan([1,time+1]);
  19. y=nan([1,time+1]);
  20. % Initial conditions
  21. x(1)=0;
  22. y(1)=0;
  23. th(1)=pi22pi(rand*2*pi); % th is the actual agent bearing
  24. HDB = zeros([1,8]);
  25. for i=1:time %i refer to time before movement.
  26. % Get EPG activation (0-1)
  27. EPG_raw =((pi-abs(pi2pi(PB_thref - th(i)))).^bump_pwr);
  28. EPG = (EPG_raw / max(EPG_raw) );
  29. %--------------- Update CPU4 memory -------------
  30. % Add noise to the direction of the visual memory
  31. mem_Ln = mem_L + normrnd(0,mem_noise);
  32. mem_Rn = mem_R + normrnd(0,mem_noise);
  33. % Get View Familiarities (0-1)
  34. Fam_L = ((pi - abs(pi2pi(mem_Ln - th(i)))) /pi)^2;
  35. Fam_R = ((pi - abs(pi2pi(mem_Rn - th(i)))) /pi)^2;
  36. % fam_R =0; % Covered eye = always max unfamiliair (pi)
  37. % Get PFN input. Here Familiarity signal activate a shifted activation in the FB (PFN cells)
  38. PFN_L_input = Fam_L * circshift(EPG,-1);%-1 put the bump 45° clockwise (left), so towards the forward direction (as Fam_L is when heading Right off the nest)
  39. PFN_R_input = Fam_R * circshift(EPG,+1);%+1
  40. % Updtate allocentric goal (HdB cells) by adding the PFN cell and its decay
  41. HDB = PFN_L_input + PFN_R_input + HDB - HDB*decay_CPU4;
  42. %--------------- Steering -------------
  43. % Get CPU1 activation
  44. CPU1_L = HDB - circshift(EPG,+1);
  45. CPU1_R = HDB - circshift(EPG,-1);
  46. CPU1_L(CPU1_L<0) = 0;
  47. CPU1_R(CPU1_R<0) = 0;
  48. % Get the turning rate (mean instead of sum to stay between 0-1)
  49. turn_r = sum(CPU1_L); % Note that a good left match (high CPU1_L) means turn right
  50. turn_l = sum(CPU1_R);
  51. % Will need to change when the oscillator comes into play
  52. turn(i) = turn_l - turn_r;
  53. angle_modul = turn(i)*gain ;
  54. % boundary
  55. if abs(angle_modul) < min_angle; angle_modul = min_angle * sign(angle_modul); end
  56. if abs(angle_modul) > max_angle; angle_modul = max_angle * sign(angle_modul); end
  57. th(i+1)= th(i)+ angle_modul; %set the new heading
  58. %add some motor noise (sensory noise could be also added)
  59. th(i+1) = th(i+1) + normrnd(0,motor_noise);
  60. % % calculate the stepsize
  61. stepsize = step_length;
  62. % stepsize = (step_length* (1-fwd_modul)) / nb_step;
  63. % if stepsize<0 ; stepsize=0;
  64. % end
  65. %--------move to time i+1------------
  66. [X, Y]=pol2cart(th(i+1) , stepsize); %move along this direction
  67. x(i+1)= x(i)+X;
  68. y(i+1)= y(i)+Y;
  69. end
  70. [th_end, r_end]=cart2pol(x(end),y(end));
  71. err_dir=abs(th_end);
  72. straightness = r_end/time;

CX_Agent_FB_bump.m at commit f251e17, no license · at the source

Overview

Authors: Antoine Wystrach1, Florent Le Moël1,2, Leo Clement1, Sebastian Schwarz1,3
  1. Centre de Recherches sur la Cognition Animale, Centre de Biologie Intégrative, Université de Toulouse, CNRS, Toulouse, France
  2. School of Informatics, University of Edinburgh, Edinburgh, United Kingdom
  3. Department of Biology, University of Graz, Graz, Austria
Journal: Nature communications, volume 17, issue 1, article 3594
Dates: received 12 February 2025; accepted 3 December 2025; published online 6 March 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s41467-025-67545-3 · PMID 41792124 · PMCID PMC13096645 · OpenAlex W7134050448
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: other (organism), cognitive (subfield)
Keywords: Cognitive neuroscience, Animal behaviour
MeSH: Ants*, Memory*, Visual Perception*, Animals, Brain, Cues, Goals, Mushroom Bodies, Space Perception, Spatial Navigation (* major topic)
Topic: Neurobiology and Insect Physiology Research (Cellular and Molecular Neuroscience, Neuroscience), according to OpenAlex
Funding: European Research Council (101125881, 759817)
Citations: not cited yet (Europe PMC); 107 references in the paper

Abstract

Animals navigate by combining egocentric (viewpoint-dependent) and allocentric (world-referenced) spatial representations, yet how their brains achieve this integration remains unclear. Here we show how the brains of insect expert navigators, such as ants, accomplish this task. Field experiments reveal that ants recognise long-term egocentric visual memories – assumed to be encoded in the Mushroom Bodies – via a lateralized mechanism: instead of memorising views while facing their goal, ants store these memories by looking to the sides. Recognition signals inform whether to turn left or right, but do not directly drive motor responses. Instead, they are processed separately – presumably in the two brain hemispheres – and integrated to update a goal heading in an ancestral, central brain region –the central complex. This goal heading —now anchored in an allocentric frame—is then used with celestial compass cues for robust steering. Computational models based on insect neural circuits validate this two-stage process, demonstrating how noisy, viewpoint-dependent lateralized inputs are transformed into stable allocentric directional control. These findings reveal how compact brains leverage bilateral processing to combine spatial representations for visual navigation.

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

antnavteam/lateralised_visual_memories

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: f251e17ac9f4117f39df2a9af0660ce9e802f268, 6 November 2025
Languages: MATLAB (27), R (1)
Size: 38 files, 28 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Statistics and Machine Learning Toolbox (7 files), CircStat (2 files), ggplot2 (1 file), nlme (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
29 files

Code availability

Codes to analyse data and run simulations have been deposited on GitHub: https://github.com/antnavteam/lateralised_visual_memories.

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;
  • 28 scripts, each with its path and the digest of its content;
  • 4 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 Statement

The data generated in this study have been deposited on GitHub: https://github.com/antnavteam/lateralised_visual_memories.

Codes to analyse data and run simulations have been deposited on GitHub: https://github.com/antnavteam/lateralised_visual_memories.

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

Recorded: type, language, journal, volume, issue, pages, dates, 4 authors, 2 keywords, 10 MeSH terms, 1 funder, 93 references.

Cite

This paper

Wystrach, A., Le Moël, F., Clement, L., & Schwarz, S. (2026). Updating an allocentric goal from lateralised egocentric visual memories. Nature communications, 17(1), 3594. https://doi.org/10.1038/s41467-025-67545-3

BibTeX

@article{wystrach2026updating,
author = {Wystrach, Antoine and Le Moël, Florent and Clement, Leo and Schwarz, Sebastian},
title = {{Updating an allocentric goal from lateralised egocentric visual memories}},
journal = {Nature communications},
year = {2026},
month = mar,
volume = {17},
number = {1},
pages = {3594},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/s41467-025-67545-3},
url = {https://doi.org/10.1038/s41467-025-67545-3},
pmid = {41792124},
pmcid = {PMC13096645}
}

RIS

TY - JOUR
AU - Wystrach, Antoine
AU - Le Moël, Florent
AU - Clement, Leo
AU - Schwarz, Sebastian
TI - Updating an allocentric goal from lateralised egocentric visual memories
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/03/06
VL - 17
IS - 1
SP - 3594
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/s41467-025-67545-3
UR - https://doi.org/10.1038/s41467-025-67545-3
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-025-67545-3",
"type": "article-journal",
"title": "Updating an allocentric goal from lateralised egocentric visual memories",
"container-title": "Nature communications",
"author": [
{
"family": "Wystrach",
"given": "Antoine"
},
{
"family": "Le Moël",
"given": "Florent"
},
{
"family": "Clement",
"given": "Leo"
},
{
"family": "Schwarz",
"given": "Sebastian"
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "3594",
"DOI": "10.1038/s41467-025-67545-3",
"PMID": "41792124",
"PMCID": "PMC13096645",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41467-025-67545-3",
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
6
]
]
}
}

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.7554/elife.107589 [code]
Distinct evolutionary trajectories of two integration centres, the central complex and mushroom bodies, across Heliconiini butterflies.
Journal: eLife
In common: other, 19 references
[2] doi:10.1038/s41586-026-10827-7 [code]
A vector-based strategy for olfactory navigation in Drosophila.
Journal: Nature
In common: cognitive, 10 references
[3] doi:10.1038/s41467-026-75945-2 [code]
Neural dynamics for working memory and evidence integration during olfactory navigation in Drosophila.
Journal: Nature communications
In common: Statistics and Machine Learning Toolbox, cognitive, 7 references
[4] doi:10.1126/sciadv.aeh7220 [code]
Central complex representations of self-movement are sufficient to compute wind direction in flight.
Journal: Science advances
In common: CircStat, Statistics and Machine Learning Toolbox, 6 references
[5] doi:10.1016/j.isci.2026.116039 [code]
Caste- and sex-specific differential investment in brain regions of Australian ants.
Journal: iScience
In common: other, 7 references
[6] doi:10.3389/fnsys.2026.1822122 [code]
Convergence-divergence circuits for multimodal integration of innate and learned opponent valences.
Journal: Frontiers in systems neuroscience
In common: 6 references
[7] doi:10.1038/s41586-026-10735-w [code]
Distributed control circuits across a brain-and-cord connectome.
Journal: Nature
In common: ggplot2, 5 references
[8] doi:10.1073/pnas.2609141123
Odor tracking in flying &lt;i&gt;Drosophila&lt;/i&gt; requires visual reafference and compass neurons.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: cognitive, 5 references
[9] doi:10.1371/journal.pcbi.1014577 [code]
Combining sampling and attractor dynamics in spiking models of head direction systems.
Journal: PLoS computational biology
In common: 4 references
[10] doi:10.1038/s41593-026-02257-5 [code]
Neural sequences underlying directed turning in Caenorhabditis elegans.
Journal: Nature neuroscience
In common: 4 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.

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.