Skip to main content

https://www.mesoscopy.org


Build & Test PyPI - Version

Mesoscopy is an open-source package for the analysis of mesoscale calcium recordings. It handles the preprocessing of mesoscale recording files to extract ∆F responses, the anatomical registration of recordings to the Allen Brain atlas as well as analysis of recordings captured at rest or with behaviour.

Prerequisites

Mesoscopy works best with data acquired in the NWB format. Alternatively, recordings acquired as HDF5 files compatible with mesoscopy's raw data schema may be used.

Dual-channel recordings with an accompanying haemodynamic response channel (e.g. using both 470nm and 405nm excitation for GCaMP) will be automatically separated during preprocessing and yield a corrected ∆F signal.

An example acquisition script (designed for FLIR Grasshopper cameras) can be found here.

Installing mesoscopy

The recommended way to install mesoscopy is by using pipx (https://pypa.github.io/pipx/). pipx will create an isolated python environment from which mesoscopy will run, leaving the system python alone. This is the recommended way to install mesoscopy, as it will not interfere with any other python packages you may have installed on your system.

On Linux

  1. Install pipx.

    • On Ubuntu / Debian:

      sudo apt update
      sudo apt install pipx
      pipx ensurepath
      sudo pipx ensurepath
      
    • On Fedora:

      sudo dnf install pipx
      pipx ensurepath
      sudo pipx ensurepath
      
    • For other distributions, install pipx with pip:

      python3 -m pip install --user pipx
      python3 -m pipx ensurepath
      sudo pipx ensurepath
      
  2. Install mesoscopy.

    pipx install mesoscopy
    

On MacOS

  1. Install pipx with homebrew.

    brew install pipx
    pipx ensurepath
    sudo pipx ensurepath
    
  2. Install mesoscopy.

    pipx install mesoscopy
    

On Windows

With Windows, you have two choices. You can either use mesoscopy with the Windows Subsystem for Linux (WSL) and follow the instructions above for installing mesoscopy on Linux (recommended), or you can run mesoscopy directly on Windows via PowerShell. The choice is of course yours, but you should bear in mind that mesoscopy primarily targets Unix-like OSs (Linux & MacOS) at the moment, so while everything should work fine on Windows, your mileage may vary.

To install mesoscopy directly on Windows, first install pipx using Scoop:

scoop install pipx
pipx ensurepath

Then install mesoscopy via pipx:

pipx install mesoscopy

Usage

For detailed documentation on how to use mesoscopy, please refer to our documentation.

To see all available mesoscopy commands, run

mesoscopy --help

mesoscopy commands are self-documenting. Run mesoscopy <command> --help to get more information or see available sub-commands.

Upgrading

Use pipx to upgrade mesoscopy:

pipx upgrade mesoscopy

Contributing

Mesoscopy is currently closed to PRs, except bugfixes. Please open an issue if you wish to contribute.

Funders

logo

Metadata

Release files for mesoscopy 0.17.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mesoscopy 0.17.0
File Size Uploaded
mesoscopy-0.17.0.tar.gz 7.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for mesoscopy 0.17.0
File Interpreter ABI Platform
mesoscopy-0.17.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 MB

Release files / mesoscopy-0.17.0.tar.gz

Download URL mesoscopy-0.17.0.tar.gz
Size 7.2 MB
Tags Source
SHA-256 checksum
How to use checksums
874d6e65cef1b50578f380f8fa08d0948a442413147da2613b47f2cf9d86ba7e
BLAKE2b-256 checksum
How to use checksums
7ebba97dbfdb32ac07f3a800d5b45de19f5d126210fd7b020f99a62878dede5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mesoscopy-0.17.0-py3-none-any.whl

Download URL mesoscopy-0.17.0-py3-none-any.whl
Size 162.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0bb5e7b242b5af0ad39febffd2ed39804b5ab2e3f13b17f9abfe2b4b6f39d6f
BLAKE2b-256 checksum
How to use checksums
95f64beabb881c809e557225e912bdd5d3baa67578ab42d4c90cd28c816645e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.17.0 This release

2 release files

0.14.0

2 release files

0.13.2

2 release files

0.13.1

2 release files

0.13.0

2 release files

0.12.0

2 release files

0.11.0

2 release files

0.10.0

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.6

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.1.0

2 release files

0.0.27

2 release files

0.0.26

2 release files

0.0.25

2 release files

0.0.24

2 release files

0.0.23

2 release files

0.0.22

2 release files

0.0.21

2 release files

0.0.20

2 release files

0.0.19

2 release files

0.0.18

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page