bothlab / pomidaq

Portable Miniscope Data Acquisition
GNU Lesser General Public License v3.0
20 stars 7 forks source link
linux miniscope neuroscience opencv

PoMiDAQ

PoMiDAQ Screenshot

Build DOI

PoMiDAQ is a recording software for UCLA Miniscopes for neuroscientific research. It provides an easy way to record videos from Miniscopes, create Z-stacks to give an overview of visible cells or tissue features and provides an online background subtraction feature to gain an initial insight into cellular calcium activity while data is recorded.

PoMiDAQ was written from the start to be portable, and runs on Linux and Windows (and could likely be ported to macOS too).

The software provides all Miniscope functions as a shared library, so Miniscope recording features can easily be embedded into other programs and pipelines. PoMiDAQ will work with Miniscope V3, V4 and the Siminiscope hardware using the standard DAQ box v3.2. Recorded data is encoded with the FFV1 codec by default, to allow for smaller video files at lossless quality that are safe to archive.

PoMiDAQ also provides an experimental Python module to access a Miniscope easily from Python. This feature has currently only been tested on Linux (and may stay Linux-only) and is still considered a bit experimental.

Some features like parallel behavior recording, are intentionally left out of PoMiDAQ. You may like to use Syntalos for advanced multimodal data acquisition with Miniscopes and a variety of cameras, or try Miniscope-DAQ-QT-Software instead.

Users

The CI system provides up-to-date builds for PoMiDAQ for the Windows (64-bit), Debian and Ubuntu (amd64) platforms. You can fetch builds from there or download prebuilt binaries from the Github releases. Don't hesitate to file issues if you notice anything unusual.

On Linux, you can also just install the software from your software center when Flathub is configured:

Notes

On Linux

On Windows

No BNO orientation information

If you can't record any valid data from the Miniscope's BNO sensor, your firmware version may be too old. You can test for that by showing the Minscope log (Info → Show Miniscope Log) and check for a warning mentioning a bad firmware version. If that is the case, please download the latest Miniscope_DAQ_256K_EEPROM.img firmware from the Miniscope firmware site and flash it to your DAQ box.

Citing

If you want to cite PoMiDAQ, please use its Zenodo DOI:

Klumpp, Matthias. (2023). PoMiDAQ. Zenodo. https://doi.org/10.5281/zenodo.8225049

Developers

Dependencies

Before attempting to build PoMiDAQ, ensure all dependencies (and their development files) are installed on your system. You should then be able to build the software after configuring the build with cmake for your platform.

On Debian-based Linux systems, all dependencies can be installed from the package repositories with this command:

sudo apt install build-essential cmake ninja-build qtbase5-dev libqt5opengl5-dev \
                 libkf5configwidgets-dev libopencv-dev libavcodec-dev libavformat-dev libswscale-dev \
                 pybind11-dev python3-dev python3-numpy

The software can then be built like this, for an optimized release build with debug infos included:

mkdir build && cd build
cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
ninja
sudo ninja install
sudo ldconfig

Pull-requests are very welcome! (Code should be valid C++14, use 4 spaces for indentation)