OSCR

StereoPylot: An Open-Source Raspberry Pi-Based Stereotaxic Apparatus Controller with 3D Printed Components for Fully Motorized Control, Digital Display, and Customizable Features.

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.

The 2 matches · all tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § Materials and Methods › Assembly of the upper control box ↔ LeftHand/VariableList.py, the whole file · a weak match · score 0.53 · shift registers, rotary encoders, pins, switch, wiring, buttons
  2. [2] § Materials and Methods › Assembly of the upper control box ↔ RightHand/VariableList.py, the whole file · a weak match · score 0.53 · shift registers, rotary encoders, pins, switch, wiring, buttons

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

Python · 247 lines · 5.7 KB · GPL-3.0 · 1 match

  1. class var_list:
  2. #From UI
  3. countoflistwidget = 0
  4. list_toggle = 9999
  5. #FROM BUTTONCLASS *********************************************************
  6. #Main while loop condition
  7. keepalive = True
  8. #Stepper instances
  9. APmove = None
  10. MLmove = None
  11. DVmove = None
  12. AUXmove = None
  13. # OFFSETS FOR THE DRILL, Syringe, Needle (minus values is back, left or up)
  14. # in mm using the drill as 0
  15. # Change in the file offsetsXX.txt (XX is LH or RH)
  16. DrillAPmm = float(0)
  17. DrillMLmm = float(0)
  18. DrillDVmm = float(0)
  19. NeedleAPmm = float(11.1)
  20. NeedleMLmm = float(-31.22)
  21. NeedleDVmm = float(5)
  22. FiberAPmm = float(-5.069)
  23. FiberMLmm = float(31.22)
  24. FiberDVmm = float(1.1)
  25. # variable to let program know which offset of toggled on. 1-drill,2-syringe,3-probe
  26. TOGGLEoff = 1
  27. offtoggleold = 1
  28. # DEFINE NUMBER OF BUTTONS AND ORDER IN ARRAY
  29. buttonarray = ['DVinsert', 'withdrawl', 'fullretract', 'rezero', 'bregmahomeDVupfive',
  30. 'bregmahomeDVabs', 'ABSzero', 'gotopreset', 'makeitsobut', 'engagebut',
  31. 'selectdown', 'selectup', 'retractAP', 'returnAP', 'bregmahome',
  32. 'gotolambdabut', 'ratselect', 'mouseselect', 'functionone', 'armbut',
  33. 'relativeML', 'retractDV', 'returnDV', 'functiontwo', 'relativeAP',
  34. 'relativeALLset', 'offpostwo', 'offposone', 'unassigned', 'movefast', 'moveslow',
  35. 'relativeDV']
  36. lastbuttonstate = [0 for x in range(len(buttonarray))]
  37. # BUTTON POSITION IN SHIFT REGISTER ARRAY (0 to 31)
  38. moveslow = 30
  39. movefast = 29
  40. offposone = 27
  41. offpostwo = 26
  42. rezero = 3
  43. relativeAP = 24
  44. relativeML = 20
  45. relativeDV = 31
  46. relativeALL = 25
  47. fullretractbut = 2
  48. bregmahome = 14
  49. bregmahomeDVabs = 5
  50. bregmahomeDVupfive = 4
  51. gotolambdabut = 15
  52. ratselect = 16
  53. mouseselect = 17
  54. gotopreset = 7
  55. selectup = 11
  56. selectdown = 10
  57. armbut = 19
  58. engagebut = 9
  59. makeitsobut = 8
  60. withdrawl = 1
  61. DVinsert = 0
  62. retractAP = 12
  63. returnAP = 13
  64. retractDV = 21
  65. returnDV = 22
  66. functionone = 18
  67. functiontwo = 23
  68. ABSzero = 6
  69. #DEFINE EMERGENCY STOP and hard wired buttons GPIO
  70. emergstop = 26
  71. safetybut = 9
  72. disablestepperbut = 10
  73. fourthhardwarebutton = 11 #encoder 4 depress?
  74. #DEFINE SHIFT REGISTER PINS
  75. latchpin = 18
  76. clockpin = 23
  77. datapin = 24
  78. #DEFINE STEPPER SPEEDS - number of steps per call
  79. finespeed = 1
  80. normalspeed = 10
  81. fastspeed = 50
  82. #stepper_speed initializes as 1 BUT changes according to the state of the speed switch
  83. stepper_speed = finespeed
  84. #FROM StepperControl class *********************************************************
  85. btnSteps = 0.001
  86. APsteps = 0
  87. MLsteps = 0
  88. DVsteps = 0
  89. AUXsteps = 0
  90. APrelpos = 0
  91. MLrelpos = 0
  92. DVrelpos = 0
  93. APretractstart = 0
  94. DVretractstart = 0
  95. DVinitREL_holdvalue = 0
  96. MLinitREL_holdvalue = 0
  97. APinitREL_holdvalue = 0
  98. DVcurrentoffsset = 0
  99. MLcurrentoffsset = 0
  100. APcurrentoffsset = 0
  101. APstepdistance = float(0.0075)
  102. MLstepdistance = float(0.0075)
  103. DVstepdistance = float(0.0075)
  104. APcurABSdist = float(0)
  105. MLcurABSdist = float(0)
  106. DVcurABSdist = float(0)
  107. APcurRELdist = float(0)
  108. MLcurRELdist = float(0)
  109. DVcurRELdist = float(0)
  110. #FROM Threadedcontrol class *********************************************************
  111. #Variables that may need tweaking
  112. calibrationsteps = 4000
  113. backoff = 50 #200
  114. APadvance = 2000 #2000
  115. DVadvance = 400 #400
  116. MLadvance = 400 #400
  117. APworking = 6400
  118. MLworking = 6070
  119. DVworking = 3500
  120. fullretract = 7650
  121. fullretractML = 9500
  122. DVup_bregramhome = 268 #about 0.2cm
  123. DVup_lambdabregma = 200 # about 0.15cm
  124. DVup_five = 675 # about 5 mm
  125. # how many steps DV goes up and then back when changing the offsets to avoid scrapping the skull
  126. DVup_OffsetSafety = 1340 #about 1 cm
  127. #DEFINE STEPPER CONTROL PINS
  128. enableAll = 2
  129. directionAP = 3
  130. stepAP = 4
  131. directionML = 17
  132. stepML = 27
  133. directionDV = 5
  134. stepDV = 6
  135. directionAUX = 1
  136. stepAUX = 7
  137. #DEFINE LIMIT SWITCH PINS
  138. limitAP = 22
  139. limitML = 19
  140. limitDV = 0
  141. limitAUX = 13
  142. #DEFINE ROTARY ENCODER PINS
  143. rotoA_AP = 21
  144. rotoB_AP = 20
  145. rotoA_ML = 12
  146. rotoB_ML = 16
  147. rotoA_DV = 8
  148. rotoB_DV = 25
  149. rotoA_fourth = 14
  150. rotoB_fourth = 15
  151. #ENCODER CALC VARIABLES
  152. eventime = 0
  153. eventdelay = 200
  154. backwardrotdelay = 400
  155. lastdirection = 0 #3 = counterclock, 1 = clock
  156. thecount = 0
  157. firstandonly = 0
  158. #DEFINE STEPPER DIRECTIONS
  159. APback = 1
  160. APforward = 0
  161. MLleft = 1
  162. MLright = 0
  163. DVup = 0
  164. DVdown = 1
  165. AuxUP = 0
  166. AuxDown = 1
  167. calibfilename = 'CalibrationLH.txt'
  168. offsetfilename = 'offsetsLH.txt'
  169. lastenablestate = 1
  170. emergencystopflag = 0
  171. engagebutton = 0
  172. safetybutton = 0
  173. withdrawinsertstop = 0
  174. dvinsertstop = 0
  175. DVinsertindicator = 0
  176. Withdrawlindicator = 0
  177. Makeitsoindicator = 0
  178. ratormouseselect = 1 #1 is mouse 2 is rat 3 is null(mouse default)
  179. ratlambda = 1208 # steps for 9mm at 0.0745 per step
  180. mouselambda = 550 # steps for 4.1mm at 0.0745 per step
  181. rellambda = 0
  182. # For timerthread safety timeouts
  183. timeoutlength = 3
  184. DVinserttimeouttime = None
  185. Safetytimeouttime = None
  186. Withdrawltimeouttime = None
  187. Makeitsobuttimeouttime = None
  188. # concept and code created by Kirk Mulatz (original code https://github.com/bustenchops/Stereotaxiccontrol (experiment branch)

VariableList.py at commit db7209a, under GPL-3.0 · at the source

Overview

Authors: Kirk Mulatz1, Aiden E. Glass1, McKenna A. Bolger1, Caleb L. G. White1, John G. Howland1, Justin J. Botterill1
  1. Department of Anatomy, Physiology, and Pharmacology, University of Saskatchewan, Saskatoon, Saskatchewan S7N 5E5, Canada
Institutions: University of Saskatchewan (Canada)
Journal: eNeuro, volume 13, issue 7, pages ENEURO.0460-25.2026
Dates: received 11 December 2025; accepted 15 June 2026; published online 7 July 2026; in print July 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1523/eneuro.0460-25.2026 · PMID 42331622 · PMCID PMC13362190 · OpenAlex W7165559118
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: rat (organism), methods / tools (subfield)
Methods: Statistics
Keywords: 3D printing, adeno-associated virus, anatomy, brain, neuroscience, Raspberry Pi, stereotaxic apparatus
MeSH: Brain*, Printing, Three-Dimensional*, Stereotaxic Techniques*, Animals, Equipment Design, Female, Male, Software (* major topic)
Journal subjects: Research Article: Methods/New Tools, Novel Tools and Methods
Topic: Neurological disorders and treatments (Neurology, Medicine), according to OpenAlex
Funding: Natural Sciences and Engineering Research Council of Canada; University of Saskatchewan College of Medicine
Citations: not cited yet (Europe PMC); 26 references in the paper

Abstract

Stereotaxic surgery is a powerful technique used to deliver drugs, viral vectors, and/or probes into discrete regions of the brain. Over the past decade, the emphasis on performing complex surgeries for neural circuit manipulations or studying multiple brain regions in the same animal has increased. While analog stereotaxic instruments are generally suitable for these types of experiments, the surgeon must accurately read vernier scales for each brain region of interest, which is both time-consuming and prone to user error. Although vendors now offer digital stereotaxic instruments that overcome the limitations of analog instruments, digital units are cost-prohibitive and often come in limited configurations that lack clear paths to customize or upgrade as experimental needs change. To overcome these issues, we've created StereoPylot, an open-source Raspberry Pi-based stereotaxic controller with 3D-printed components. StereoPylot features motorized control of X-, Y-, and Z-axes, variable motor speed, programmable buttons, and a digital display for stereotaxic coordinates. We also created a custom graphical user interface which allows surgeons to move the manipulators to an area of interest by manually entering stereotaxic coordinates on screen or by loading a preset file that contains a list of user-defined stereotaxic coordinates. We demonstrate practical application of StereoPylot by quantifying viral expression in three male and three female Long–Evans rats and provide instrument accuracy and precision measurements. StereoPylot is therefore feature-rich and highly customizable while being relatively inexpensive to implement onto existing analog instruments commonly found in neuroscience laboratories.

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.

botterillneurolab/StereoPylot

License: GPL-3.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: db7209a313dc6a21e145f5616096a121ed564a92, 23 April 2026
Languages: Python (19), Shell (2)
Size: 62 files, 21 scripts
Software Heritage: not archived
Found in: “Code accessibility”
Holds: license file, environment (Requirements/localrequirements.txt, Requirements/requirements.txt)
Not found: README, CITATION.cff, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
22 files

Code accessibility

The code and software described in the paper is freely available online at https://github.com/botterillneurolab/StereoPylot

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;
  • 21 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.

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, 6 authors, 7 keywords, 8 MeSH terms, 2 funders, 24 references.

Cite

This paper

Mulatz, K., Glass, A. E., Bolger, M. A., White, C. L. G., Howland, J. G., & Botterill, J. J. (2026). StereoPylot: An Open-Source Raspberry Pi-Based Stereotaxic Apparatus Controller with 3D Printed Components for Fully Motorized Control, Digital Display, and Customizable Features. eNeuro, 13(7), ENEURO.0460-25.2026. https://doi.org/10.1523/eneuro.0460-25.2026

BibTeX

@article{mulatz2026stereopylot,
author = {Mulatz, Kirk and Glass, Aiden E. and Bolger, McKenna A. and White, Caleb L. G. and Howland, John G. and Botterill, Justin J.},
title = {{StereoPylot: An Open-Source Raspberry Pi-Based Stereotaxic Apparatus Controller with 3D Printed Components for Fully Motorized Control, Digital Display, and Customizable Features}},
journal = {eNeuro},
year = {2026},
month = jul,
volume = {13},
number = {7},
pages = {ENEURO.0460--25.2026},
publisher = {Society for Neuroscience},
issn = {2373-2822},
doi = {10.1523/eneuro.0460-25.2026},
url = {https://doi.org/10.1523/eneuro.0460-25.2026},
pmid = {42331622},
pmcid = {PMC13362190}
}

RIS

TY - JOUR
AU - Mulatz, Kirk
AU - Glass, Aiden E.
AU - Bolger, McKenna A.
AU - White, Caleb L. G.
AU - Howland, John G.
AU - Botterill, Justin J.
TI - StereoPylot: An Open-Source Raspberry Pi-Based Stereotaxic Apparatus Controller with 3D Printed Components for Fully Motorized Control, Digital Display, and Customizable Features
T2 - eNeuro
J2 - eNeuro
PY - 2026
DA - 2026/07/10
VL - 13
IS - 7
SP - ENEURO.0460
EP - 25.2026
SN - 2373-2822
PB - Society for Neuroscience
DO - 10.1523/eneuro.0460-25.2026
UR - https://doi.org/10.1523/eneuro.0460-25.2026
LA - en
ER -

CSL-JSON

{
"id": "10.1523/eneuro.0460-25.2026",
"type": "article-journal",
"title": "StereoPylot: An Open-Source Raspberry Pi-Based Stereotaxic Apparatus Controller with 3D Printed Components for Fully Motorized Control, Digital Display, and Customizable Features",
"container-title": "eNeuro",
"author": [
{
"family": "Mulatz",
"given": "Kirk"
},
{
"family": "Glass",
"given": "Aiden E."
},
{
"family": "Bolger",
"given": "McKenna A."
},
{
"family": "White",
"given": "Caleb L. G."
},
{
"family": "Howland",
"given": "John G."
},
{
"family": "Botterill",
"given": "Justin J."
}
],
"container-title-short": "eNeuro",
"volume": "13",
"issue": "7",
"page": "ENEURO.0460-25.2026",
"DOI": "10.1523/eneuro.0460-25.2026",
"PMID": "42331622",
"PMCID": "PMC13362190",
"ISSN": "2373-2822",
"publisher": "Society for Neuroscience",
"URL": "https://doi.org/10.1523/eneuro.0460-25.2026",
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
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.1111/ejn.70486
Dopamine in the Nucleus Accumbens Signals Salience of Auditory Deviance.
Journal: The European journal of neuroscience
In common: rat, 1 reference
[2] doi:10.1038/s41592-026-03076-z [code]
Neuropixels Opto: combining high-resolution electrophysiology and optogenetics.
Journal: Nature methods
In common: 1 reference
[3] doi:10.1080/26941899.2026.2619222
Neurodatascience: Past, Present, and Future.
Journal: Data science in science
In common: 1 reference
[4] doi:10.1016/j.ynstr.2026.100788
Different early-life adversity paradigms have disparate effects on maternal care, neuronal activation, and social behavior in developing mice.
Journal: Neurobiology of stress
In common: 1 reference
[5] doi:10.1038/s41467-026-76574-5 [code]
Prefrontal-raphe-habenular circuit drives fear memory recall and updating.
Journal: Nature communications
In common: 1 reference
[6] doi:10.1371/journal.pcbi.1014590 [code]
Real-time GPU-accelerated coupled cardiac system: Integrating bidirectional interactions between living optogenetic monolayers and computational simulations.
Journal: PLoS computational biology
In common: 1 reference
[7] doi:10.7554/elife.109313 [code]
Linear and categorical coding units in the mouse gustatory cortex drive population dynamics and behavior in taste decision-making.
Journal: eLife
In common: 1 reference
[8] doi:10.1111/ejn.70582 [code]
Multifiber Array-Based Photometry System for Multiregional Functional Mapping in the Mouse Brain.
Journal: The European journal of neuroscience
In common: 1 reference
[9] doi:10.1038/s41598-026-50423-3 [code]
Theoretical analysis of low power synergistic sono-optogenetic control of calcium-dependent synaptic plasticity.
Journal: Scientific reports
In common: 1 reference
[10] doi:10.1038/s41592-026-03065-2 [code]
PinkyCaMP: an mScarlet-based calcium sensor with enhanced brightness, photostability and multiplexing capabilities.
Journal: Nature methods
In common: 1 reference

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.