Skip to content

mesoSPIM/mesoSPIM-control

Repository files navigation

DOI Python 3.12 License: GPL v3

mesoSPIM-control

Image acquisition software for mesoSPIM light-sheet microscopes. Compatible with all official versions of mesoSPIM hardware (Benchtop, v4, v5), and multple alternative configurations.

Overview

The mesoSPIM (mesoscale selective plane illumination microscope) is a family of versatile open-source microscopes optimized for fast imaging of large (many cm³) cleared tissue samples at near-isotropic resolution. Currently, more than 30 mesoSPIM setups are operational around the world. Parts lists, drawings, and instructions for building a mesoSPIM can be found in the wiki pages:

The mesoSPIM-control is python-based acquisition software with user-friendly GUI, based on PyQt5 framework.

Installation

Prerequisites

  • Windows >=7, 64-bit
  • Python >=3.12, we recommend Miniforge and mamba package manager that comes with it. The Anaconda distribution is not recommended since the change of its terms of service in 2020. If you have existing Anaconda installation, you can still use conda instead of mamba in the instructsions below.

Device drivers

National Instruments DAQ devices

Download and install the latest NI DAQmx drivers with default parameters.

Cameras

Stages

Installation steps

  1. Clone this repository either by via GitHub Desktop (recommended) or by downloading and unpacking the ZIP file into folder C:/Users/Public/mesoSPIM-control

image

  1. Open Miniforge prompt, create and activate a new environment mesoSPIM-py312:
mamba create -p C:/Users/Public/mamba/envs/mesoSPIM-py312 python=3.12
mamba activate C:/Users/Public/mamba/envs/mesoSPIM-py312
  1. Install mesoSPIM-specific libraries:
cd C:/Users/Public/mesoSPIM-control
pip install -r requirements-conda-mamba.txt

Launching

Miniforge prompt

  1. cd C:/Users/Public/mesoSPIM-control/mesoSPIM
  2. python mesoSPIM_Control.py (with argument -D for demo mode)

Desktop shortcut (fast launch)

From Miniforge prompt, type where mamba, and enter the result (e.g. C:\Users\Nikita\miniforge3\Scripts\activate.bat) into line 10 of mesoSPIM.bat file:

"%windir%\System32\cmd.exe" /k ""C:\Users\Nikita\miniforge3\Scripts\activate.bat" "C:\Users\Public\conda\envs\mesoSPIM-py312" && python "mesoSPIM_Control.py""

Save changes and double-click the mesoSPIM.bat file - this should launch the control software. If this does ot happen, check the Anaconda path. Once this works, create a shortcut and place it on your desktop for quick launching.

Prepare a configuration file and wire the hardware

The config files are stored in the mesoSPIM/config directory. The newly installed software will launch with the demo_config.py, which has all external hardware replaced with Demo simulated devices, to make sure installation is successful in "dry run".

If you have multiple config files you will be prompted to choose one that corresponds to your hardware.

Once your hardware is connected and turned on, change the Demo devices to hardware-specific names, set their parameters, and test each device. See Wiki for details.

Updating existing installation

To ensure safe transition to a new version, we recommend fresh installation of each new version into a separate folder (e.g. mesoSPIM-control-Jan2025) using the steps above. In order to unlock all new features, please review and add new sections from the demo config file to your old configuration file.

Troubleshooting

Some errors during software startup and acquisition can be displayed in the mamba/conda terminal, while a highly detailed log will be recorded in the time-stamped file in mesoSPIM/log folder. This log file is individual for each session, named by date and time of software start-up, eg mesoSPIM/log/20241210-154845.log.

Documentation for users

For instructions on how to use mesoSPIM-control, please check out the documentation:

If you have questions, contact the current core developer Nikita Vladimirov.

How to cite this software

Fabian F. Voigt, Nikita Vladimirov, Christian Schulze, Rob Campbell, & Fritjof Helmchen. (2022). MesoSPIM control: An open-source acquisition software for light-sheet microscopy written in Python and Qt. Zenodo. https://doi.org/10.5281/zenodo.6109315

DOI