
Getting Started
Mesoscopy is an open-source package for the analysis of mesoscale calcium recordings. It preprocesses mesoscale recording files to extract ∆F responses, registers recordings to the Allen Brain atlas, and analyses recordings captured at rest or with behaviour.
Prerequisites
Mesoscopy works best with data acquired in the NWB format. It also takes recordings acquired as HDF5 files that follow mesoscopy's raw data schema.
Dual-channel recordings with a haemodynamic response channel, such as 470nm and 405nm excitation for GCaMP, are separated during preprocessing and yield a corrected ∆F signal.
An example acquisition script for FLIR Grasshopper cameras is here.
Installing mesoscopy
Install mesoscopy with pipx. pipx creates an isolated python environment for
mesoscopy to run from and leaves the system python alone, so it does not interfere with any other python
packages on your system.
On Linux
-
Install
pipx.-
On Ubuntu / Debian:
-
On Fedora:
-
On other distributions, install
pipxwithpip:
-
-
Install
mesoscopy.
On MacOS
-
Install
pipxwith homebrew. -
Install
mesoscopy.
On Windows
On Windows, use mesoscopy under the
Windows Subsystem for Linux (WSL) and follow the Linux
instructions above. mesoscopy targets Unix-like systems first, so this is the path we recommend.
To run mesoscopy directly on Windows instead, install pipx with Scoop in PowerShell.
Then install mesoscopy with pipx.
Next steps
The typical workflow guide takes you through the processing steps for analysing mesoscale
recordings with mesoscopy.
The how-to guides go deeper into individual aspects of analysis, including
quality control. If you are about to start acquiring data, or want to convert existing data to a
format mesoscopy reads, start with the data schema and
converting videos to HDF5 guides.