Skip to main content

GUI + pipeline for gel well detection, ladder reading, and PCR band annotation.

Project description

Gel Annotate

Gel Annotate is a Python package + GUI tool for automated detection and annotation of gel electrophoresis wells, ladders, and PCR bands.
It was developed for lab workflows to speed up gel image analysis and make the results reproducible and easy to share.


Features

  • Automatic detection of sample wells and ladder wells from gel images (TIFF, PNG, JPG, etc.).
  • PCR band detection with adjustable thresholds.
  • Interactive PyQt5 GUI:
    • View annotated gels with labeled wells/bands.
    • Edit probable wells manually by typing coordinates.
    • Save and reload results (.json).
    • Export results to CSV or JSON.
    • Save annotated PNGs for reports.
  • Command-line interface for batch processing.
  • Cross-platform (Windows, Linux, macOS).
  • Optional desktop/start menu shortcuts for quick access.

Installation

You can install from PyPI:

pip install aer-gel-annotate

On Windows (to allow shortcut creation), install with:

pip install aer-gel-annotate[windows]

Usage

Run the GUI

After installation:

gel-annotate

This opens the GUI application.

Run the CLI

For quick batch analysis:

gel-annotate-cli path/to/gel_image.tif --ladder --detect_bars

GUI Overview

  • Top row:

    • Select an image file.
    • Set detection parameters (comb size, combs per row, ladder/band detection).
    • Run detection.
  • Left sidebar:

    • Manual overrides (force YES/NO for PCR bands).
    • Detected wells and ladder wells (read-only).
    • Probable wells (editable — add/modify coordinates).
    • Save/export options (PNG, CSV, JSON).
    • Load JSON results.
  • Main area:

    • Annotated gel image with labeled wells and bands.

Export & Reload Results

  • CSV: table of wells, ladder wells, bands.
  • JSON: full structured result (including probable wells, ladder bands, etc.).

You can later reload a JSON file into the GUI, edit probable wells, and re-run detection.


Application Shortcuts

  • To create a desktop/start menu shortcut (after installation):
gel-annotate-shortcut
  • On Linux, this creates a .desktop entry under ~/.local/share/applications and your Desktop.
  • On Windows, it creates Gel Annotate.lnk on Desktop and in the Start Menu.
  • On macOS, it creates a Gel Annotate.command launcher on the Desktop.

️ Development

Clone the repository and install in editable mode:

git clone https://github.com/your-org/aer-gel-annotate
cd aer-gel-annotate
pip install -e .[windows]  # add [windows] on Windows

Run the GUI locally:

python -m annotation.gui.gel_gui_wrapper

License

MIT License © 2025 Manan Shah

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

aer_gel_annotate-0.1.6.tar.gz (268.5 kB view details)

Uploaded Source

Built Distribution

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

aer_gel_annotate-0.1.6-py3-none-any.whl (270.5 kB view details)

Uploaded Python 3

File details

Details for the file aer_gel_annotate-0.1.6.tar.gz.

File metadata

  • Download URL: aer_gel_annotate-0.1.6.tar.gz
  • Upload date:
  • Size: 268.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for aer_gel_annotate-0.1.6.tar.gz
Algorithm Hash digest
SHA256 154309504d503c9e4526c1a4f97e80f373433396f6c5b244aba2600e8534a111
MD5 9ebb70dd6a0e4461d0d4ab07289e3320
BLAKE2b-256 5f25cff0542feaec81b951184d4e58b073e91ee290f5aa4c9e41e87412a90cb5

See more details on using hashes here.

File details

Details for the file aer_gel_annotate-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for aer_gel_annotate-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 60fbf8ad3baaf60215c0bff76c470fcc4bb9b9d3e6a5e63f72daef11e713c186
MD5 c3034d4c66f166493457cdd37ccb139f
BLAKE2b-256 2264a0f251c70cc307709f5e9c62e08a155a3228c126e2f2395ddebcda7eb590

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