Skip to main content

Brainways

DOI License GNU GPL v3.0 PyPI Python Version tests codecov Documentation Status napari hub

Overview

Brainways is an AI-powered tool designed for the automated analysis of brain-wide activity networks from fluorescence imaging in coronal slices. It streamlines the process of registration, cell quantification, and statistical comparison between experimental groups, all accessible through a user-friendly interface without requiring programming expertise. For advanced users, Brainways also offers a flexible Python backend for customization.

Brainways User Interface Demo

Key Features

Brainways simplifies complex analysis workflows into manageable steps:

  1. Rigid Registration: Aligns coronal slices to a 3D reference atlas.
  2. Non-rigid Registration: Refines alignment to account for individual variations and tissue distortions.
  3. Cell Detection: Automatically identifies cells using the StarDist algorithm.
  4. Quantification: Counts cells within defined brain regions.
  5. Statistical Analysis:
    • Performs ANOVA contrast analysis between experimental conditions.
    • Conducts Partial Least Squares (PLS) analysis.
    • Generates network graphs visualizing brain-wide activity patterns.

Getting Started

!!! note "Windows GPU Support Pre-installation" If you plan to use Brainways with GPU acceleration on Windows, you must install GPU-compatible versions of PyTorch and TensorFlow before installing Brainways. Follow the instructions on the PyTorch and TensorFlow websites. Once these dependencies are met, proceed with the Brainways installation below.

Install and launch the Brainways user interface using pip:

pip install brainways
brainways ui

For a detailed walkthrough, please refer to our Getting Started Guide.

!!! tip "Achieving Reliable Results" To ensure the best possible outcomes with Brainways, we highly recommend reviewing our Best Practices Guide.

Architecture

Brainways is built as a monorepo containing two primary components:

  • brainways: The core library housing all backend functionalities, including registration algorithms, quantification logic, and statistical tools. It can be used programmatically via Python for custom workflows. The automatic registration model inference code resides within the brainways.model subpackage.
  • brainways.ui: A napari plugin providing the graphical user interface for interactive analysis.

Development Status

Brainways is under active development by Ben Kantor at the Bartal Lab, Tel Aviv University, Israel. Check out our releases page for the latest updates.

Citation

If Brainways contributes to your research, please cite our publication: Kantor and Bartal (2025).

@article{kantor2025mapping,
    title={Mapping brain-wide activity networks: brainways as a tool for neurobiological discovery},
    author={Kantor, Ben and Ruzal, Keren and Ben-Ami Bartal, Inbal},
    journal={Neuropsychopharmacology},
    pages={1--11},
    year={2025},
    publisher={Springer International Publishing Cham}
}

License

Brainways is distributed under the terms of the GNU GPL v3.0 license. It is free and open-source software.

Issues and Support

Encountering problems? Please file an issue on our GitHub repository with a detailed description of the problem.

Metadata

Release files for brainways 0.1.16.3

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

Source distribution (sdist)

Source distribution for brainways 0.1.16.3
File Size Uploaded Provenance Actions
brainways-0.1.16.3.tar.gz 6.4 MB Without provenance Details for brainways-0.1.16.3.tar.gz

Built distribution (wheel)

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

Total release size: 6.9 MB

Release files / brainways-0.1.16.3.tar.gz

Download URL brainways-0.1.16.3.tar.gz
Size 6.4 MB
Tags Source
SHA-256 checksum
How to use checksums
c320cc703aa6627407334fdb03b393c618960b2eba0b16efc23275b13b409934
BLAKE2b-256 checksum
How to use checksums
8452b429fa13f7075e700c553505d903ff2c6441e20c0d38e5ca182b76159748
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / brainways-0.1.16.3-py3-none-any.whl

Download URL brainways-0.1.16.3-py3-none-any.whl
Size 518.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01a4443686a669e4edd43f2d3f27d50dc81c37b5a519122c3e7c9a367b665c83
BLAKE2b-256 checksum
How to use checksums
f1bf2303e17efff7360aa500cbce3da4eae219703333ffef0741f21ce8ad45d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for brainways 0.1.16.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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