Stytra: An open-source, integrated system for stimulation, tracking and closed-loop behavioral experiments
Open accessThe DOI matches its Crossref record; 7 of the 7 references it cites were found in a registry or an index.
Abstract
We present Stytra, a flexible, open-source software package, written in Python and designed to cover all the general requirements involved in larval zebrafish behavioral experiments. It provides timed stimulus presentation, interfacing with external devices and simultaneous real-time tracking of behavioral parameters such as position, orientation, tail and eye motion in both freely-swimming and head-restrained preparations. Stytra logs all recorded quantities, metadata, and code version in standardized formats to allow full provenance tracking, from data acquisition through analysis to publication. The package is modular and expandable for different experimental protocols and setups. Current releases can be found at https://github.com/portugueslab/stytra. We also provide complete documentation with examples for extending the package to new stimuli and hardware, as well as a schema and parts list for behavioral setups. We showcase Stytra by reproducing previously published behavioral protocols in both head-restrained and freely-swimming larvae. We also demonstrate the use of the software in the context of a calcium imaging experiment, where it interfaces with other acquisition devices. Our aims are to enable more laboratories to easily implement behavioral experiments, as well as to provide a platform for sharing stimulus protocols that permits easy reproduction of experiments and straightforward validation. Finally, we demonstrate how Stytra can serve as a platform to design behavioral experiments involving tracking or visual stimulation with other animals and provide an example integration with the DeepLabCut neural network-based tracking method.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
DeepLabCut: markerless pose estimation of user-defined body parts with deep learning
Mathis, A., Mamidanna, P., Cury, K. M., Abe, T., Murthy, V. N., Mathis, M. W., & Bethge, M. (2018) · Nature Neuroscience · doi:10.1038/s41593-018-0209-y · Cited by 5,187
Locomotor repertoire of the larval zebrafish: swimming, turning and prey capture
Budick, S. A., & O’Malley, D. M. (2000) · Journal of Experimental Biology · doi:10.1242/jeb.203.17.2565 · Cited by 499
Whole-brain activity maps reveal stereotyped, distributed networks for visuomotor behavior
Portugues, R., Feierstein, C. E., Engert, F., & Orger, M. B. (2014) · Neuron · doi:10.1016/j.neuron.2014.01.019 · Cited by 305
Self-citationControl of visually guided behavior by distinct populations of spinal projection neurons
Orger, M. B., Kampff, A. R., Severi, K. E., Bollmann, J. H., & Engert, F. (2008) · Nature Neuroscience · doi:10.1038/nn2048 · Cited by 274
The neural basis of visual behaviors in the larval zebrafish
Portugues, R., & Engert, F. (2009) · Current Opinion in Neurobiology · doi:10.1016/j.conb.2009.10.007 · Cited by 171 · cited 3×
“29 Stytra was developed primarily in the context of a laboratory working with larval 30 zebrafish, and it fulfills the common requirements of behavioral paradigms used with 31 this animal [3].”
BackgroundMethodSelf-citationSpinal projection neurons control turning behaviors in zebrafish
Huang, K.-H., Ahrens, M. B., Dunn, T. W., & Engert, F. (2013) · Current Biology · doi:10.1016/j.cub.2013.06.044 · Cited by 133
Adaptive locomotor behavior in larval zebrafish
Portugues, R., & Engert, F. (2011) · Frontiers in Systems Neuroscience · doi:10.3389/fnsys.2011.00072 · Cited by 119
Self-citation
Cited by
Deep learning tools for the measurement of animal behavior in neuroscience
Mathis, M. W., & Mathis, A. (2020) · Current Opinion in Neurobiology · doi:10.1016/j.conb.2019.10.008 · Cited by 450
Evidence accumulation during a sensorimotor decision task revealed by whole-brain imaging
Dragomir, E. I., Štih, V., & Portugues, R. (2020) · Nature Neuroscience · doi:10.1038/s41593-019-0535-8 · Cited by 89
Self-citationKist, A. M., & Portugues, R. (2019) · Cell Reports · doi:10.1016/j.celrep.2019.09.024 · Cited by 55
Self-citationArtificial embodied circuits uncover neural architectures of vertebrate visuomotor behaviors
Liu, X., Loring, M. D., Zunino, L., Fouke, K. E., Longchamp, F. A., Bernardino, A., Ijspeert, A. J., & Naumann, E. A. (2025) · Science Robotics · doi:10.1126/scirobotics.adv4408 · Cited by 8
Metadata
- Authors
- Štih, V., Petrucco, L., Kist, A. M., & Portugues, R.
- Venue
- PLOS Computational Biology
- Publisher
- Public Library of Science (PLoS)
- Published
- 2019-04-08
- Volume
- 15
- Issue
- 4
- Pages
- e1006699
- ISSN
- 1553-734X (ISSN-L)
- 1553-7358
- OpenAlex
- W2904059336
- Cited by
- 100
- References
- 7
- FWCI
- 3.99
- Type
- journal article
- Language
- en
- Open access
- gold
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: Stytra: An open-source, integrated system for stimulation, tracking and closed-loop behavioral experiments. https://app.cochat.ai/papers/10.1371/journal.pcbi.1006699
- The paper
- Štih, V., Petrucco, L., Kist, A. M., & Portugues, R. (2019). Stytra: An open-source, integrated system for stimulation, tracking and closed-loop behavioral experiments. PLOS Computational Biology. https://doi.org/10.1371/journal.pcbi.1006699
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.