OSCR

Linking spatially distributed neuronal activation overlap to the limits of perceptual discrimination in rodent primary somatosensory cortex.

Code ↔ Paper

The paper beside its authors' code: matches between them have not been computed for this paper yet.

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 · 171 lines · 6.2 KB · no license

  1. clear all; clc; close all;
  2. % Create "Extracted Matrices" folder if it doesn't exist
  3. if ~exist('Extracted Matrices', 'dir')
  4. mkdir('Extracted Matrices');
  5. end
  6. % Select .fig files
  7. [fileNames, path1] = uigetfile('*.fig', 'Select Figure Files', 'MultiSelect', 'on');
  8. if isequal(fileNames, 0)
  9. disp('No files selected. Exiting...');
  10. return;
  11. end
  12. if ischar(fileNames)
  13. fileNames = {fileNames};
  14. end
  15. for f = 1:length(fileNames)
  16. file = fileNames{f};
  17. fprintf('\nProcessing %s...\n', file);
  18. fig = openfig(fullfile(path1, file), 'invisible');
  19. ax = findobj(fig, 'Type', 'axes');
  20. scatterData = findobj(ax, 'Type', 'Line');
  21. % Initialize storage
  22. RedPoints = []; MagentaPoints = []; YellowPoints = [];
  23. GreenPoints = []; BluePoints = []; GrayPoints = [];
  24. for i = 1:length(scatterData)
  25. xData = get(scatterData(i), 'XData');
  26. yData = get(scatterData(i), 'YData');
  27. zData = get(scatterData(i), 'ZData');
  28. cData = get(scatterData(i), 'Color');
  29. if isequal(cData, [1, 0, 0])
  30. RedPoints = [RedPoints; xData', yData', zData'];
  31. elseif isequal(cData, [1, 0, 1])
  32. MagentaPoints = [MagentaPoints; xData', yData', zData'];
  33. elseif isequal(cData, [251 177 23]/255)
  34. YellowPoints = [YellowPoints; xData', yData', zData'];
  35. elseif isequal(cData, [0 100 0]/255)
  36. GreenPoints = [GreenPoints; xData', yData', zData'];
  37. elseif isequal(cData, [0, 0, 1])
  38. BluePoints = [BluePoints; xData', yData', zData'];
  39. elseif isequal(cData, [169 169 169]/255)
  40. GrayPoints = [GrayPoints; xData', yData', zData'];
  41. end
  42. end
  43. fileBase = file(1:end-4);
  44. saveName = fullfile('Extracted Matrices', [fileBase, '.mat']);
  45. save(saveName, 'RedPoints', 'MagentaPoints', 'YellowPoints', ...
  46. 'GreenPoints', 'BluePoints', 'GrayPoints');
  47. fprintf('\nExtracted Data Summary for: %s\n', file);
  48. fprintf(' Red (Activated Neurons): %d points\n', size(RedPoints, 1));
  49. close(fig);
  50. %% --- User input for center and capture percentages ---
  51. center = [200 200 200]; % Fixed user-defined center
  52. capturePercentages = [100];
  53. if isempty(RedPoints)
  54. disp('No red points found. Skipping ellipsoid calculation...');
  55. return;
  56. end
  57. % Preallocate results structure
  58. EllipsoidFits = struct([]);
  59. % Loop through each capture percentage
  60. for c = 1:numel(capturePercentages)
  61. capperc = capturePercentages(c);
  62. fprintf('\n--- Running capture percentage: %.1f%% ---\n', capperc);
  63. % Find initial spreads using percentile ranges
  64. half_width = capperc / 2;
  65. bottomrange = 50 - half_width;
  66. toprange = 50 + half_width;
  67. x_range = prctile(RedPoints(:,1), [bottomrange, toprange]);
  68. y_range = prctile(RedPoints(:,2), [bottomrange, toprange]);
  69. z_range = prctile(RedPoints(:,3), [bottomrange, toprange]);
  70. xspread = (x_range(2) - x_range(1)) / 2;
  71. yspread = (y_range(2) - y_range(1)) / 2;
  72. zspread = (z_range(2) - z_range(1)) / 2;
  73. % Initial check for capture
  74. inside = checkEllipsoid(xspread, yspread, zspread, center, RedPoints);
  75. captured_percent = 100 * nnz(inside) / size(RedPoints, 1);
  76. % Growth loop
  77. axgrowths = [1 10]; % Two passes with different growth steps
  78. maxIter = 10000;
  79. for g = 1:numel(axgrowths)
  80. if captured_percent >= capperc
  81. disp("Already captured enough in first trial. Skipping rescue capture.")
  82. break; % Already captured enough — skip the next growth phase
  83. end
  84. axgrowth = axgrowths(g);
  85. iter = 0;
  86. while captured_percent < capperc && iter < maxIter
  87. iter = iter + 1;
  88. % Try growing each axis
  89. spreads = [xspread, yspread, zspread];
  90. labels = {'xspread', 'yspread', 'zspread'};
  91. axesIdx = [1, 2, 3];
  92. for i = axesIdx
  93. test_spreads = spreads;
  94. test_spreads(i) = test_spreads(i) + axgrowth;
  95. temp_inside = checkEllipsoid(test_spreads(1), test_spreads(2), test_spreads(3), center, RedPoints);
  96. new_percent = 100 * nnz(temp_inside) / size(RedPoints, 1);
  97. if new_percent > captured_percent
  98. spreads(i) = test_spreads(i);
  99. inside = temp_inside;
  100. captured_percent = new_percent;
  101. end
  102. end
  103. xspread = spreads(1);
  104. yspread = spreads(2);
  105. zspread = spreads(3);
  106. if captured_percent >= capperc
  107. break;
  108. end
  109. end
  110. end
  111. % Compute volume of the ellipsoid within voxel grid
  112. dx = 1; dy = 1; dz = 5;
  113. [X, Y, Z] = ndgrid(0:dx:400, 0:dy:400, 0:dz:2000);
  114. ellipsoidMask = ((X - center(1)).^2 / xspread^2 + ...
  115. (Y - center(2)).^2 / yspread^2 + ...
  116. (Z - center(3)).^2 / zspread^2) <= 1;
  117. voxelVolume = dx * dy * dz; % in um³
  118. clippedVolume = nnz(ellipsoidMask) * voxelVolume;
  119. % Store and display results
  120. EllipsoidFits(c).capturePercent = capperc;
  121. EllipsoidFits(c).center = center;
  122. EllipsoidFits(c).axes_um = [xspread yspread zspread];
  123. EllipsoidFits(c).totalRed = size(RedPoints, 1);
  124. EllipsoidFits(c).numCaptured = nnz(inside);
  125. EllipsoidFits(c).capturedPercent = captured_percent;
  126. EllipsoidFits(c).clippedVolume_um3 = clippedVolume;
  127. fprintf(' Center: [%.2f, %.2f, %.2f] um\n', center);
  128. fprintf(' Axes (x, y, z): %.2f, %.2f, %.2f um\n', xspread, yspread, zspread);
  129. fprintf(' Red Points: %d\n', size(RedPoints, 1));
  130. fprintf(' Captured: %d (%.2f%%)\n', nnz(inside), captured_percent);
  131. fprintf(' Volume: %.2f um³\n', clippedVolume);
  132. end
  133. end
  134. % Optional: Save the results
  135. save(saveName, 'EllipsoidFits', '-append');
  136. %% --- Function to check if the points are inside the ellipsoid ---
  137. function inside = checkEllipsoid(xspread, yspread, zspread, center, RedPoints)
  138. x_shifted = (RedPoints(:,1) - center(1)).^2 / xspread^2;
  139. y_shifted = (RedPoints(:,2) - center(2)).^2 / yspread^2;
  140. z_shifted = (RedPoints(:,3) - center(3)).^2 / zspread^2;
  141. inside = (x_shifted + y_shifted + z_shifted) <= 1;
  142. end

GetEllipsoidDataOnly.m at commit 2570706, no license · at the source

Overview

Authors: Madison Jiang1, Joseph J. Pancrazio2, Thomas J. Smith1
  1. School of Behavioral and Brain Sciences, The University of Texas at Dallas, Richardson, TX, United States
  2. Department of Bioengineering, The University of Texas at Dallas, Richardson, TX, United States
Institutions: The University of Texas at Dallas (United States)
Journal: Frontiers in computational neuroscience, volume 20, article 1876230
Dates: received 8 May 2026; accepted 31 July 2026; published online 14 August 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.3389/fncom.2026.1876230 · PMID 42666294 · PMCID PMC13522154 · OpenAlex W7203443586
Open access: gold, a free copy (OpenAlex)
Status: code verified
Keywords: computational model, intracortical microstimulation, rodent, sensory discrimination, somatosensory cortex
Topic: Neuroscience and Neural Engineering (Cellular and Molecular Neuroscience, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 27 references in the paper

Abstract

Introduction: Intracortical microstimulation (ICMS) of the primary somatosensory cortex can evoke localized tactile percepts, yet the spatial factors that influence perceptual discrimination remain poorly defined. In prior work, we showed that discrimination accuracy between behaviorally evaluated ICMS-evoked percepts declines as stimulation sites converge across cortical depths and adjacent cortical columns. Those results suggest that overlap in neuronal recruitment may constrain perceptual differentiation.

Methods: Here, we combine simulated data from a biophysically realistic computational model of the somatosensory cortex with previously collected behavioral data from rats to quantify how overlap in ICMS-evoked activation volume relates to discrimination performance. Within the model, ICMS patterns investigated behaviorally were simulated, and activation volumes were estimated by fitting a range of 50–100% capture ellipsoids to the spatial distribution of activated somata. Overlap in activation volumes between pairs of ICMS patterns was then quantified using the intersection-over-union (IoU) metric.

Results: Across both single- and four-shank microelectrode array configurations, we found that discrimination accuracy decreased in an exponential decay-like relationship (R2 = 0.88) as model-derived activation volume overlap increased. Independent of depth vs. lateral separation between ICMS pattern pairs, minimal overlap (IoU < 1%) was associated with high discrimination accuracy (>70%; average of 85%), whereas IoU values exceeding 20% corresponded to near-chance performance.

Discussion: These results suggest that ICMS-evoked activation volume overlap between stimulation sites may provide mechanistic insight into the spatial limits of perceptual discrimination in ICMS applications. More broadly, these findings may help guide future investigations aimed at determining appropriate electrode spacing and stimulation strategies for sensory neuroprosthetic design.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above.

msj220001/Ssctx-column-model-4-electrode-ICMS

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 2570706badd0c5f75b6d92fccb96ffbfe6114ae0, 6 May 2026
Languages: NEURON (612), Shell (76), Python (53), MATLAB (4)
Size: 999 files, 745 scripts
Software Heritage: not archived
Found in: “Data availability statement”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NEURON (737 files), Matplotlib (50 files), NumPy (50 files)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
746 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;
  • 745 scripts, each with its path and the digest of its content;
  • no match between paragraphs and code yet;
  • 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 datasets presented in this study can be found in online repositories. The names of the repository/repositories and accession number(s) can be found below: https://github.com/msj220001/Ssctx-column-model-4-electrode-ICMS.

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, pages, dates, 3 authors, 5 keywords, 1 funder, 26 references.

Cite

This paper

Jiang, M., Pancrazio, J. J., & Smith, T. J. (2026). Linking spatially distributed neuronal activation overlap to the limits of perceptual discrimination in rodent primary somatosensory cortex. Frontiers in computational neuroscience, 20, 1876230. https://doi.org/10.3389/fncom.2026.1876230

BibTeX

@article{jiang2026linking,
author = {Jiang, Madison and Pancrazio, Joseph J. and Smith, Thomas J.},
title = {{Linking spatially distributed neuronal activation overlap to the limits of perceptual discrimination in rodent primary somatosensory cortex}},
journal = {Frontiers in computational neuroscience},
year = {2026},
month = aug,
volume = {20},
pages = {1876230},
publisher = {Frontiers Media SA},
issn = {1662-5188},
doi = {10.3389/fncom.2026.1876230},
url = {https://doi.org/10.3389/fncom.2026.1876230},
pmid = {42666294},
pmcid = {PMC13522154}
}

RIS

TY - JOUR
AU - Jiang, Madison
AU - Pancrazio, Joseph J.
AU - Smith, Thomas J.
TI - Linking spatially distributed neuronal activation overlap to the limits of perceptual discrimination in rodent primary somatosensory cortex
T2 - Frontiers in computational neuroscience
J2 - Front Comput Neurosci
PY - 2026
DA - 2026/08/14
VL - 20
SP - 1876230
SN - 1662-5188
PB - Frontiers Media SA
DO - 10.3389/fncom.2026.1876230
UR - https://doi.org/10.3389/fncom.2026.1876230
LA - en
ER -

CSL-JSON

{
"id": "10.3389/fncom.2026.1876230",
"type": "article-journal",
"title": "Linking spatially distributed neuronal activation overlap to the limits of perceptual discrimination in rodent primary somatosensory cortex",
"container-title": "Frontiers in computational neuroscience",
"author": [
{
"family": "Jiang",
"given": "Madison"
},
{
"family": "Pancrazio",
"given": "Joseph J."
},
{
"family": "Smith",
"given": "Thomas J."
}
],
"container-title-short": "Front Comput Neurosci",
"volume": "20",
"page": "1876230",
"DOI": "10.3389/fncom.2026.1876230",
"PMID": "42666294",
"PMCID": "PMC13522154",
"ISSN": "1662-5188",
"publisher": "Frontiers Media SA",
"URL": "https://doi.org/10.3389/fncom.2026.1876230",
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
14
]
]
}
}

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.1016/j.celrep.2026.117420 [code]
Neural population dynamics of direct electrical stimulation of neocortex.
Journal: Cell reports
In common: Matplotlib, NumPy, 8 references
[2] doi:10.1126/sciadv.aef0343 [code]
Learning induces activation-mechanism-dependent neural plasticity in an intracortical microstimulation task.
Journal: Science advances
In common: Matplotlib, NumPy, 7 references
[3] doi:10.1038/s41591-026-04498-0
A neuroprosthesis for restoring hand movement and sensation in a person with complete tetraplegia.
Journal: Nature medicine
In common: 3 references
[4] doi: [code]
Going deeper with morphologically detailed neural networks by simulation-based gradient propagation
Journal: Frontiers in computational neuroscience
In common: NEURON, Matplotlib, NumPy
[5] doi:10.7554/elife.100880 [code]
An applicable and efficient retrograde monosynaptic circuit mapping tool for larval zebrafish.
Journal: eLife
In common: NEURON, Matplotlib, NumPy
[6] doi:10.1126/sciadv.aec4911 [code]
Dendritic shaft constrictions shape synaptic integration in neurons.
Journal: Science advances
In common: NEURON, Matplotlib, NumPy
[7] doi:10.3389/fncom.2026.1862383 [code]
Microstructural spine alterations increase neuronal excitability in focal cortical dysplasia Type I.
Journal: Frontiers in computational neuroscience
In common: NEURON, Matplotlib, NumPy
[8] doi:10.1016/j.ebiom.2026.106418 [code]
Corticostriatal glutamate mechanisms underlying beta synchrony and motor deficits via striatal NMDA receptors in Parkinson's disease.
Journal: EBioMedicine
In common: NEURON, Matplotlib, NumPy
[9] doi:10.1371/journal.pcbi.1014615 [code]
Toward reliable machine learning models for neural circuit inference: A diagnostic study of CNNs on spike trains.
Journal: PLoS computational biology
In common: NEURON, Matplotlib, NumPy
[10] doi:10.1016/j.celrep.2026.117793 [code]
Clustered inputs engage dendritic nonlinearities and calcium signaling to support efficient place-field formation in CA1 pyramidal neurons.
Journal: Cell reports
In common: NEURON, Matplotlib, NumPy

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.