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
.desktopentry under~/.local/share/applicationsand your Desktop. - On Windows, it creates
Gel Annotate.lnkon Desktop and in the Start Menu. - On macOS, it creates a
Gel Annotate.commandlauncher 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aer_gel_annotate-0.1.5.tar.gz.
File metadata
- Download URL: aer_gel_annotate-0.1.5.tar.gz
- Upload date:
- Size: 268.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca3ad186263d96feedef8274d12611210062fc3b06292c94e6b2575667b59152
|
|
| MD5 |
5e4ae231d1d1eddde147e28a3b520302
|
|
| BLAKE2b-256 |
f571a491d79e642a5873c1a19fa3dbbef457c0e47fe4833f53a100d42335bf75
|
File details
Details for the file aer_gel_annotate-0.1.5-py3-none-any.whl.
File metadata
- Download URL: aer_gel_annotate-0.1.5-py3-none-any.whl
- Upload date:
- Size: 270.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2f2c3de69d123d814b10514b75ab2dbaa4abc9d269bbde9800e49831f58f9b4
|
|
| MD5 |
0f3aa70ef43bfaee2959ce6aafc96b9c
|
|
| BLAKE2b-256 |
1102d2dc160014e73079a333f85c43c8f5f58013e6851f1bc94f67681c519904
|