Metadata-Version: 2.5
Name: patchkori
Version: 0.1.1
Summary: Modular open-source bioinformatics platform for large-scale pyramidal biological imaging
Author: Jubayer
License: MIT
Keywords: bioinformatics,gradio,ome-tiff,pathology,qptiff,whole-slide-imaging,zarr
Requires-Python: >=3.10
Requires-Dist: gradio<6.0.0,>=5.0.0
Requires-Dist: imagecodecs>=2024.6.1
Requires-Dist: numpy>=1.26.0
Requires-Dist: pillow>=10.3.0
Requires-Dist: pydantic>=2.7.0
Requires-Dist: tifffile>=2024.5.22
Requires-Dist: typer>=0.12.0
Requires-Dist: zarr>=2.18.0
Provides-Extra: dev
Requires-Dist: mkdocs-material>=9.5.0; extra == 'dev'
Requires-Dist: pytest>=8.2.0; extra == 'dev'
Requires-Dist: ruff>=0.5.0; extra == 'dev'
Description-Content-Type: text/markdown

<div align="center">
  <img src="https://raw.githubusercontent.com/jubayer98/PatchKori/main/assets/logo.svg" alt="PatchKori Logo" width="96" height="96" />
  <h1>PatchKori</h1>
  <p><strong>Bioinformatics Patch Kits Hub for Biological Image Datasets</strong></p>
</div>

---

## 🔬 About PatchKori

**PatchKori** is a modular bioinformatics platform designed to process large-scale biological image datasets. A diverse suite of specialized patch kits will be integrated into the hub over time.

Currently, PatchKori features the **Pyramidal Cropper**:
- **Pyramidal Cropper:** Extracts patches and regions of interest (ROIs) from gigapixel pyramidal biological images (such as **OME-TIFF**, **QPTIFF**, and **Pyramidal TIFF**) out-of-core without loading massive planes into memory.

---

## 🚀 Quickstart

Install PatchKori directly from PyPI:

```bash
pip install patchkori
```

Launch the web interface locally:

```bash
patchkori launch
```

This opens the local web application at `http://127.0.0.1:7860`.

---

## 🖥️ Using the Pyramidal Cropper

1. **Input Image:** Provide a local file path to your pyramidal image (or load the included sample dataset). You can also provide an optional `markerlist.txt` to automatically name your multiplex channels.
2. **Select Region:** Draw an ROI directly on the thumbnail preview with the brush, choose the full slide, or enter coordinates manually.
3. **Choose Level & Channels:** Pick the target pyramid resolution level and select the subset of channels you want.
4. **Extract:** Choose between a single ROI or a sliding-window tile grid, and click **Run Out-of-Core Crop** to stream the tiles directly to your local folder.

---

## ⚡ Headless CLI

You can also run crops directly from the terminal without opening the browser:

```bash
patchkori crop /path/to/image.qptiff --level 0 --x 100 --y 100 --width 512 --height 512 --output-dir ./crops
```

---

## 📜 License & Contact

Open-source for research and development. 

For collaborations, feature suggestions, or custom bioinformatics development, please contact the developer at [Jubayer's GitHub](https://github.com/jubayer98).
