OSCR

Behavioral states affect eye position tuning in the parietal cortex of macaques.

Code ↔ Paper

9 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 9 matches · 1 of them tie a paragraph to a whole file, not to given lines: a weak match, whose lines are not tinted
  1. [1] § STAR★Methods › Quantification and statistical analysis › Vector correlation ↔ Miscellaneous functions/vectorCorrelation.m, lines 1–129 · score 0.81 · vector correlation, randomly shuffling, vector field, nshuffle, permutation, magnitude
  2. [2] § Results › Spatial relationships of the eye position fields in the two behavioral contexts ↔ Miscellaneous functions/vectorCorrelation.m, lines 1–129 · score 0.81 · randomly shuffling, correlation coefficient, vector correlation, vector fields, empirical, eye position
  3. [3] § STAR★Methods › Quantification and statistical analysis › Fano factor analysis ↔ Miscellaneous functions/matchDistributions.m, lines 58–159 · score 0.70 · bin edges, distribution matched, probability, quantiles, subsampling, interval
  4. [4] § STAR★Methods › Quantification and statistical analysis ↔ Miscellaneous functions/computeDAMindex.m, lines 1–93 · score 0.63 · upper bound, lower bound, adjacent, DAM, matrix
  5. [5] § STAR★Methods › Quantification and statistical analysis › Fano factor analysis ↔ Miscellaneous functions/computeMatchedFanoFactor.m, lines 52–87 · score 0.63 · standard error, fitlm, slope, regression, Fano, FF
  6. [6] § Results ↔ Miscellaneous functions/analyzeGazeData.m, lines 1–43 · score 0.62 · gaze velocity exceeds, gaze position, amplitude, Saccades, events, eye
  7. [7] § STAR★Methods › Quantification and statistical analysis ↔ @RecordedData/prepareTensorWithFixBin.m, the whole file · a weak match · score 0.59 · partially overlapping bins, neural activity, firing rate, ms, spike, neuron
  8. [8] § Results › Spatial relationships of the eye position fields in the two behavioral contexts ↔ Miscellaneous functions/computeDAMindex.m, lines 1–93 · score 0.51 · parietal cortex, eye position, neighboring, DAM, metric, scalar
  9. [9] § STAR★Methods › Quantification and statistical analysis › Fano factor analysis ↔ Miscellaneous functions/computeMatchedFanoFactor.m, lines 52–87 · score 0.50 · corresponding variance, Fano, FF, matched

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 · 177 lines · 6.6 KB · BSD-3-Clause · 2 matches

  1. function [rho, beta, theta, p] = vectorCorrelation(x, y, u, v, varargin)
  2. % VECCORRELATION 2D vector correlation between two vector sets
  3. %
  4. % [rho, beta, theta, p] = VECCORRELATION(x, y, u, v)
  5. % Computes the correlation between two paired 2D vector sets [x,y] and
  6. % [u,v] using the approach from Hanson et al., 1992.
  7. %
  8. % Inputs
  9. % x, y - Numeric vectors (Nx1 or 1xN) containing the first set of
  10. % paired coordinates. x(i) and y(i) form the i-th 2D vector.
  11. % u, v - Numeric vectors (same length as x and y) containing the
  12. % second set of paired coordinates. u(i) and v(i) form the
  13. % i-th 2D vector to compare to [x(i),y(i)].
  14. % Name/value optional inputs (use quoted names):
  15. % 'pvalue' - 'default' (compute p with t-transform) or 'shuffle'
  16. % (compute empirical p by random shuffling). Default:
  17. % 'default'.
  18. % 'nShuffle' - Positive integer number of permutations used when
  19. % 'pvalue' is 'shuffle'. Default: 1000.
  20. %
  21. % Outputs
  22. % rho - Scalar correlation coefficient in [-1, +1]. Positive values
  23. % indicate rotation-like alignment; negative values indicate
  24. % reflection-like alignment.
  25. % beta - Scale factor relating the magnitudes of the two vector sets.
  26. % Example: Beta = 2 indicates that [x,y] vector fields must
  27. % be scaled by a factor of 2 to match [u,v].
  28. % theta - Rotation/reflection angle in degrees (computed via atand).
  29. % p - Two-tailed p-value for rho. If 'pvalue' is 'default', p is
  30. % computed from a t-transform. If 'pvalue' is 'shuffle', p
  31. % is an empirical two-tailed p-value from the permutation
  32. % null distribution (add-one correction applied).
  33. %
  34. % Notes
  35. % - All input vectors must have equal length N >= 3 for the t-transform.
  36. % - When using 'shuffle', the implementation applies the same random
  37. % permutation to x and y (preserving their pairing) and a separate
  38. % same random permutation to u and v. Each shuffle yields a rho; the
  39. % empirical p is the fraction of |rho_null| >= |rho_observed|.
  40. % - For reproducible permutations, set the RNG state before calling:
  41. % rng(seed)
  42. %
  43. % Examples
  44. % % Default p via t-transform
  45. % [rho,beta,theta,p] = veccorrelation(x,y,u,v);
  46. %
  47. % % Empirical p with 5000 permutations
  48. % [rho,beta,theta,p] = veccorrelation(x,y,u,v,'pvalue','shuffle','nShuffle',5000);
  49. %
  50. % References
  51. % ----------
  52. % Hanson, B., Klink, K., Matsuura, K., Robeson, S. M., & Willmott, C. J. (1992).
  53. % Vector correlation: Review, exposition, and geographic application.
  54. % Annals of the Association of American Geographers, 82(1), 103–116.
  55. % https://doi.org/10.1111/j.1467-8306.1992.tb01900.x
  56. %
  57. % Please cite
  58. % Hadjidimitrakis, K., Vaccari, F. E., De Vitis, M., Filippini, M., Diomedi, S., & Fattori, P. (2026).
  59. % Spontaneous oculomotor behavior sharpens eye position signals in parietal cortex.
  60. % [Manuscript under review].
  61. narginchk(4, inf);
  62. % Default options
  63. opts.pvalue = 'default';
  64. opts.nShuffle = 1000;
  65. % Parse optional name/value pairs
  66. if ~isempty(varargin)
  67. if mod(length(varargin),2) ~= 0
  68. error('Optional parameters must be provided as name/value pairs.');
  69. end
  70. for k = 1:2:length(varargin)
  71. name = varargin{k};
  72. val = varargin{k+1};
  73. validateattributes(name, {'char','string'}, {'scalartext'});
  74. switch lower(char(name))
  75. case 'pvalue'
  76. validateattributes(val, {'char','string'}, {'scalartext'});
  77. valstr = lower(char(val));
  78. if ~ismember(valstr, {'default','shuffle'})
  79. error('''pvalue'' must be ''default'' or ''shuffle''.');
  80. end
  81. opts.pvalue = valstr;
  82. case 'nshuffle'
  83. validateattributes(val, {'numeric'}, {'scalar','integer','positive'});
  84. opts.nShuffle = double(val);
  85. otherwise
  86. error('Unknown option name ''%s''.', char(name));
  87. end
  88. end
  89. end
  90. n = length(x);
  91. if length(y) ~= n || length(u) ~= n || length(v) ~= n
  92. error('All input vectors must have the same length.');
  93. end
  94. % Compute observed rho, beta, theta
  95. [rho, beta, theta] = veccorrelation_core_compute(x, y, u, v);
  96. switch opts.pvalue
  97. case 'default'
  98. % Default p-value by t-transform (two-tailed)
  99. tstat = rho * sqrt(length(x) - 2) / sqrt(1 - rho^2);
  100. p = 2 * (1 - tcdf(abs(tstat), length(x) - 2)); % two-tailed
  101. case 'shuffle'
  102. % Shuffle-based p-value
  103. nShuffle = opts.nShuffle;
  104. rho_null = zeros(nShuffle, 1);
  105. % For reproducibility a user can set rng before calling this function.
  106. for i = 1:nShuffle
  107. perm_uv = randperm(n); % same permutation for u and v
  108. u_sh = u(perm_uv);
  109. v_sh = v(perm_uv);
  110. [rho_i, ~, ~] = veccorrelation_core_compute(x, y, u_sh, v_sh);
  111. rho_null(i) = rho_i;
  112. end
  113. % Two-tailed empirical p-value: proportion of |rho_null| >= |rho_observed|
  114. count_extreme = sum(abs(rho_null) >= abs(rho));
  115. p = (count_extreme + 1) / (nShuffle + 1); % add-one correction
  116. end
  117. end
  118. function [rho, beta, theta] = veccorrelation_core_compute(x, y, u, v)
  119. % Core computations (returns rho, beta, theta)
  120. sigmax = std(x, 1);
  121. sigmay = std(y, 1);
  122. sigmau = std(u, 1);
  123. sigmav = std(v, 1);
  124. tmp = cov(x, u, 1);
  125. sigmaxu = tmp(1,2);
  126. tmp = cov(x, v, 1);
  127. sigmaxv = tmp(1,2);
  128. tmp = cov(y, u, 1);
  129. sigmayu = tmp(1,2);
  130. tmp = cov(y, v, 1);
  131. sigmayv = tmp(1,2);
  132. ksi = (sigmaxu * sigmayv) - (sigmaxv * sigmayu);
  133. % handle degenerate ksi == 0 (avoid division by zero)
  134. if ksi == 0
  135. s = 0;
  136. disp("WARNING: (sigmaxu * sigmayv) - (sigmaxv * sigmayu) == 0, computations might be altered")
  137. else
  138. s = ksi / abs(ksi);
  139. end
  140. a = sigmaxu^2 + sigmayv^2 + sigmaxv^2 + sigmayu^2 + (2 * s * ksi);
  141. b = (sigmax^2 + sigmay^2) * (sigmau^2 + sigmav^2);
  142. if b <= 0
  143. rho = NaN;
  144. else
  145. rho = s * sqrt(a / b);
  146. end
  147. if (sigmax^2 + sigmay^2) <= 0
  148. beta = NaN;
  149. else
  150. beta = s * rho * sqrt(sigmau^2 + sigmav^2) / sqrt(sigmax^2 + sigmay^2);
  151. end
  152. denom = (sigmaxu - s * sigmayv);
  153. if denom == 0
  154. theta = NaN;
  155. else
  156. theta = atand((sigmaxv - s * sigmayu) / denom);
  157. end
  158. end

vectorCorrelation.m at commit e8bd6f9, under BSD-3-Clause · at the source

Overview

Authors: Kostas Hadjidimitrakis1, Francesco Edoardo Vaccari1, Marina De Vitis1, Matteo Filippini1, Stefano Diomedi2, Patrizia Fattori1
  1. Department of Biomedical and Neuromotor Sciences, University of Bologna, Piazza di Porta San Donato 2, 40126 Bologna, Italy
  2. National Research Council (CNR), Institute of Cognitive Sciences and Technologies (ISTC), Padova, Italy
Journal: iScience, volume 29, issue 9, article 117459
Dates: received 26 October 2025; accepted 20 August 2026; published online 7 September 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1016/j.isci.2026.117459 · PMID 42750784 · PMCID PMC13578477 · OpenAlex W4416179163
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: non-human primate (organism), systems (subfield)
Methods: Spectral & time-frequency, Connectivity, Statistics, fMRI & imaging, Single-unit activity, calcium imaging, Physiology & signal measures
Keywords: parietal cortex, gaze, eye position, visuomotor, spontaneous activity
Topic: Visual perception and processing mechanisms (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: European Regional Development Fund; Ministero dell'Istruzione e del Merito (PRIN2022-2022BK2NPS); NextGenerationEU
Citations: not cited yet (Europe PMC); 88 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repository

Its files are read in the Code ↔ Paper reader above, with 9 matches between paragraphs and lines of code.

francescovaccari/NeuralDataAnalysis_MATLAB

License: BSD-3-Clause
State: the link answers, verified on 26 September 2026
Evidence: files inventoried
Commit: e8bd6f9a1c65893578e2186f9c793cf9e25a45dc, 31 August 2026
Languages: MATLAB (26)
Size: 30 files, 26 scripts
Software Heritage: not archived
Found in: “Data and code availability”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 26 September 2026: the link answers
  • 26 September 2026: the link answers
28 files

The paper's code and data availability statement is in the Data section.

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;
  • 26 scripts, each with its path and the digest of its content;
  • 9 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.

Code and data availability statement

The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1016/j.isci.2026.117459.

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 3, 28 September 2026

  • Authors: added Kostas Hadjidimitrakis (0000-0002-6850-8412); removed Kostas Hadjidimitrakis
  • Funding: added European Commission; Ministero dell'Istruzione e del Merito: PRIN2022-2022BK2NPS; NextGenerationEU

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 6 authors, 5 keywords, 88 references.

Cite

This paper

Hadjidimitrakis, K., Vaccari, F. E., De Vitis, M., Filippini, M., Diomedi, S., & Fattori, P. (2026). Behavioral states affect eye position tuning in the parietal cortex of macaques. iScience, 29(9), 117459. https://doi.org/10.1016/j.isci.2026.117459

BibTeX

@article{hadjidimitrakis2026behavioral,
author = {Hadjidimitrakis, Kostas and Vaccari, Francesco Edoardo and De Vitis, Marina and Filippini, Matteo and Diomedi, Stefano and Fattori, Patrizia},
title = {{Behavioral states affect eye position tuning in the parietal cortex of macaques}},
journal = {iScience},
year = {2026},
month = sep,
volume = {29},
number = {9},
pages = {117459},
publisher = {Elsevier},
issn = {2589-0042},
doi = {10.1016/j.isci.2026.117459},
url = {https://doi.org/10.1016/j.isci.2026.117459},
pmid = {42750784},
pmcid = {PMC13578477}
}

RIS

TY - JOUR
AU - Hadjidimitrakis, Kostas
AU - Vaccari, Francesco Edoardo
AU - De Vitis, Marina
AU - Filippini, Matteo
AU - Diomedi, Stefano
AU - Fattori, Patrizia
TI - Behavioral states affect eye position tuning in the parietal cortex of macaques
T2 - iScience
J2 - iScience
PY - 2026
DA - 2026/09/07
VL - 29
IS - 9
SP - 117459
SN - 2589-0042
PB - Elsevier
DO - 10.1016/j.isci.2026.117459
UR - https://doi.org/10.1016/j.isci.2026.117459
LA - en
ER -

CSL-JSON

{
"id": "10.1016/j.isci.2026.117459",
"type": "article-journal",
"title": "Behavioral states affect eye position tuning in the parietal cortex of macaques",
"container-title": "iScience",
"author": [
{
"family": "Hadjidimitrakis",
"given": "Kostas"
},
{
"family": "Vaccari",
"given": "Francesco Edoardo"
},
{
"family": "De Vitis",
"given": "Marina"
},
{
"family": "Filippini",
"given": "Matteo"
},
{
"family": "Diomedi",
"given": "Stefano"
},
{
"family": "Fattori",
"given": "Patrizia"
}
],
"container-title-short": "iScience",
"volume": "29",
"issue": "9",
"page": "117459",
"DOI": "10.1016/j.isci.2026.117459",
"PMID": "42750784",
"PMCID": "PMC13578477",
"ISSN": "2589-0042",
"publisher": "Elsevier",
"URL": "https://doi.org/10.1016/j.isci.2026.117459",
"language": "en",
"issued": {
"date-parts": [
[
2026,
9,
7
]
]
}
}

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/s42003-026-10036-y
Drifting population dynamics with transient resets characterize sensorimotor transformation in the monkey superior colliculus.
Journal: Communications biology
In common: non-human primate, systems, 6 references
[2] doi:10.1038/s41467-026-74818-y [code]
Stable readout of visual representations mediates flexible generalization.
Journal: Nature communications
In common: Statistics and Machine Learning Toolbox, non-human primate, 5 references
[3] doi:10.1371/journal.pbio.3003707 [code]
Behavioral engagement facilitates auditory neuron responses beyond their receptive fields.
Journal: PLoS biology
In common: Statistics and Machine Learning Toolbox, non-human primate, systems, 4 references
[4] doi:10.1038/s41467-026-72146-9 [code]
Modeling attention and binding in the brain through bidirectional recurrent gating.
Journal: Nature communications
In common: 5 references
[5] doi:10.1038/s41598-026-55225-1 [code]
Benchmarking criteria to determine latent linear dimensionality in neural data.
Journal: Scientific reports
In common: Statistics and Machine Learning Toolbox, 3 references
[6] doi:10.1038/s41467-026-75492-w [code]
Place and behavioral modulation of hippocampal neurons during immobility.
Journal: Nature communications
In common: Statistics and Machine Learning Toolbox, systems, 3 references
[7] doi:10.1111/ejn.70543 [code]
Neural Oscillations Track Subjective and Pupillary Arousal During Naturalistic Movie Viewing.
Journal: The European journal of neuroscience
In common: Statistics and Machine Learning Toolbox, 3 references
[8] doi:10.1038/s41467-026-70326-1 [code]
Selective control of prefrontal neural timescales by parietal cortex.
Journal: Nature communications
In common: non-human primate, systems, 2 references
[9] doi:10.7554/elife.110685 [code]
Sensory adaptation and pupil-linked arousal support flexible evidence accumulation during perceptual decision making.
Journal: eLife
In common: Statistics and Machine Learning Toolbox, non-human primate, 2 references
[10] doi:10.1038/s41467-026-71725-0 [code]
Interactions across hemispheres in prefrontal cortex reflect global cognitive processing.
Journal: Nature communications
In common: Statistics and Machine Learning Toolbox, non-human primate, 2 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.