Updated 26 May 2023
Zapit is software that runs a scanning opto-stim system for head-fixed mouse behavior.
How it works
A pair of scan mirrors deflect an incoming laser beam, which is focused onto the exposed skull with a lens. This lens is also used to image the sample onto a camera in order to visualise where the beam is pointing. Zapit registers the scanners to the camera, allowing the user to place the beam in any desired location by clicking there on a live image feed. Zapit then registers stereotaxic coordinates into the camera space, allowing the user to point the beam to coordinates defined with respect to bregma. A graphical tool builds experiment coordinate files using a top-down view of the Allen Atlas. There is a simple MATLAB API for integrating stimulation into existing behavioral code and a Python version of the API is also provided.
Install & Usage
See the Installation & User Manual. Please see the list of known obvious bugs and issues. There is a Change Log if you are concerned about applying updates.
- Image Processing Toolbox
- Image Acquisition Toolbox
- DAQmx installed with .NET support (tested versions: 19.0 to 21.8).
- Curve Fittting Toolbox (Desirable but perhaps not needed)
- Instrument Control Toolbox (Optional)
- Currently only Basler cameras are supported but in principle others can be incorporated. File an Issue if you need this.
If any of the above Toolboxes are included in your licence but not installed, you may install them using the Add On Manager.
Code was written by Maja Skretowska and Rob Campbell at the Sainsbury Wellcome Centre (UCL) in 2021/2022. Contributions and collaborations are welcome. Please see the CONTRIBUTING.md file for more information.
This project was inspired by studies from Svoboda and Tank and Brody.
Rob Campbell (2023). zapit (https://github.com/Zapit-Optostim/zapit/releases/tag/v0.11.1), GitHub. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
See release notes for this release on GitHub: https://github.com/Zapit-Optostim/zapit/releases/tag/v0.11.1
See release notes for this release on GitHub: https://github.com/Zapit-Optostim/zapit/releases/tag/v0.11.0
See release notes for this release on GitHub: https://github.com/Zapit-Optostim/zapit/releases/tag/v0.10.6
See release notes for this release on GitHub: https://github.com/Zapit-Optostim/zapit/releases/tag/v0.10.5
See release notes for this release on GitHub: https://github.com/Zapit-Optostim/zapit/releases/tag/v0.10.4
See release notes for this release on GitHub: https://github.com/Zapit-Optostim/zapit/releases/tag/v0.10.2
See release notes for this release on GitHub: https://github.com/Zapit-Optostim/zapit/releases/tag/v0.10.0