Skip to main content

Brainways

Project description

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 TensorBoard before installing Brainways. Follow the instructions on the PyTorch and TensorBoard 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brainways-0.1.16.1.tar.gz (6.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brainways-0.1.16.1-py3-none-any.whl (517.7 kB view details)

Uploaded Python 3

File details

Details for the file brainways-0.1.16.1.tar.gz.

File metadata

  • Download URL: brainways-0.1.16.1.tar.gz
  • Upload date:
  • Size: 6.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for brainways-0.1.16.1.tar.gz
Algorithm Hash digest
SHA256 cd65ca38e9bc856919c108907c1a0c0015934d8e71fcf690020d3da3501a86ec
MD5 df5edde996aaa5d22c469a2cdb1b59e1
BLAKE2b-256 8956691c64bd497ad82d045d4cda3df2af39999d689fde5a91e299a2ef66ee8f

See more details on using hashes here.

File details

Details for the file brainways-0.1.16.1-py3-none-any.whl.

File metadata

  • Download URL: brainways-0.1.16.1-py3-none-any.whl
  • Upload date:
  • Size: 517.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for brainways-0.1.16.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c0bb9297afd6b2f71d45d846ee1df88670e4a9b973cc9b1e99dca14e59a5fd8c
MD5 601a4f2b2b66bb3028424924fcf94def
BLAKE2b-256 d37581a26e68193fb0ed0c2a0555217a8b09b908311e519fbc0b8c42b9bf52a2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page