patchkori 0.1.1__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- patchkori-0.1.2/PKG-INFO +81 -0
- patchkori-0.1.2/README.md +59 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/pyproject.toml +1 -1
- {patchkori-0.1.1 → patchkori-0.1.2}/src/patchkori/__init__.py +1 -1
- patchkori-0.1.1/PKG-INFO +0 -81
- patchkori-0.1.1/README.md +0 -59
- {patchkori-0.1.1 → patchkori-0.1.2}/.github/workflows/publish.yml +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/.gitignore +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/app.py +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/assets/logo.svg +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/assets/sample_data/sample_tonsil_pyramidal.ome.tif +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/docs/adding-tools.md +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/docs/index.md +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/mkdocs.yml +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/src/patchkori/cli.py +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/src/patchkori/config.py +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/src/patchkori/core/__init__.py +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/src/patchkori/core/models.py +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/src/patchkori/core/pyramidal_cropper/__init__.py +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/src/patchkori/core/pyramidal_cropper/adapter.py +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/src/patchkori/core/sample_generator.py +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/src/patchkori/ui/__init__.py +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/src/patchkori/ui/app.py +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/src/patchkori/ui/icons.py +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/src/patchkori/ui/registry.py +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/src/patchkori/ui/theme.py +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/src/patchkori/ui/tools/__init__.py +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/src/patchkori/ui/tools/pyramidal_cropper.py +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/tests/conftest.py +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/tests/test_cropper_adapter.py +0 -0
- {patchkori-0.1.1 → patchkori-0.1.2}/tests/test_registry.py +0 -0
patchkori-0.1.2/PKG-INFO
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: patchkori
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary: Modular open-source bioinformatics platform for large-scale pyramidal biological imaging
|
|
5
|
+
Author: Jubayer
|
|
6
|
+
License: MIT
|
|
7
|
+
Keywords: bioinformatics,gradio,ome-tiff,pathology,qptiff,whole-slide-imaging,zarr
|
|
8
|
+
Requires-Python: >=3.10
|
|
9
|
+
Requires-Dist: gradio<6.0.0,>=5.0.0
|
|
10
|
+
Requires-Dist: imagecodecs>=2024.6.1
|
|
11
|
+
Requires-Dist: numpy>=1.26.0
|
|
12
|
+
Requires-Dist: pillow>=10.3.0
|
|
13
|
+
Requires-Dist: pydantic>=2.7.0
|
|
14
|
+
Requires-Dist: tifffile>=2024.5.22
|
|
15
|
+
Requires-Dist: typer>=0.12.0
|
|
16
|
+
Requires-Dist: zarr>=2.18.0
|
|
17
|
+
Provides-Extra: dev
|
|
18
|
+
Requires-Dist: mkdocs-material>=9.5.0; extra == 'dev'
|
|
19
|
+
Requires-Dist: pytest>=8.2.0; extra == 'dev'
|
|
20
|
+
Requires-Dist: ruff>=0.5.0; extra ==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uZCIgLz4KPC9zdmc+Cg==" alt="PatchKori Logo" width="96" height="96" />
|
|
25
|
+
<h1>PatchKori</h1>
|
|
26
|
+
<p><strong>Bioinformatics Patch Kits Hub for Biological Image Datasets</strong></p>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## 🔬 About PatchKori
|
|
32
|
+
|
|
33
|
+
**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.
|
|
34
|
+
|
|
35
|
+
Currently, PatchKori features the **Pyramidal Cropper**:
|
|
36
|
+
- **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.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## 🚀 Quickstart
|
|
41
|
+
|
|
42
|
+
Install PatchKori directly from PyPI:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
pip install patchkori
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Launch the web interface locally:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
patchkori launch
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
This opens the local web application at `http://127.0.0.1:7860`.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## 🖥️ Using the Pyramidal Cropper
|
|
59
|
+
|
|
60
|
+
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.
|
|
61
|
+
2. **Select Region:** Draw an ROI directly on the thumbnail preview with the brush, choose the full slide, or enter coordinates manually.
|
|
62
|
+
3. **Choose Level & Channels:** Pick the target pyramid resolution level and select the subset of channels you want.
|
|
63
|
+
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.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## ⚡ Headless CLI
|
|
68
|
+
|
|
69
|
+
You can also run crops directly from the terminal without opening the browser:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
patchkori crop /path/to/image.qptiff --level 0 --x 100 --y 100 --width 512 --height 512 --output-dir ./crops
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## 📜 License & Contact
|
|
78
|
+
|
|
79
|
+
Open-source for research and development.
|
|
80
|
+
|
|
81
|
+
For collaborations, feature suggestions, or custom bioinformatics development, please contact the developer at [Jubayer's GitHub](https://github.com/jubayer98).
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgZmlsbD0ibm9uZSI+CiAgPGRlZnM+CiAgICA8IS0tIEV5ZS1zb290aGluZywgY29sb3JibGluZC1zYWZlIHBhbGV0dGU6IERlZXAgTmF2eSwgQmlvLVRlYWwsIE11dGVkIEFtYmVyIChObyB2aW9sZXQvcHVycGxlKSAtLT4KICAgIDxsaW5lYXJHcmFkaWVudCBpZD0icGtfdGlsZV9uYXZ5IiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIxMDAlIj4KICAgICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzFFM0E4QSIgLz4KICAgICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjMjU2M0VCIiAvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDxsaW5lYXJHcmFkaWVudCBpZD0icGtfdGlsZV90ZWFsIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyP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OCBMIDkyIDIyIiBzdHJva2U9IiMxNEI4QTYiIHN0cm9rZS13aWR0aD0iMi41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIC8+CiAgPHBhdGggZD0iTSA4IDc4IEwgOCA5MiBMIDIyIDkyIiBzdHJva2U9IiM2NDc0OEIiIHN0cm9rZS13aWR0aD0iMi41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIC8+CiAgPHBhdGggZD0iTSA3OCA5MiBMIDkyIDkyIEwgOTIgNzgiIHN0cm9rZT0iI0Q5NzcwNiIgc3Ryb2tlLXdpZHRoPSIyLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgLz4KPC9zdmc+Cg==" alt="PatchKori Logo" width="96" height="96" />
|
|
3
|
+
<h1>PatchKori</h1>
|
|
4
|
+
<p><strong>Bioinformatics Patch Kits Hub for Biological Image Datasets</strong></p>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 🔬 About PatchKori
|
|
10
|
+
|
|
11
|
+
**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.
|
|
12
|
+
|
|
13
|
+
Currently, PatchKori features the **Pyramidal Cropper**:
|
|
14
|
+
- **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.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 🚀 Quickstart
|
|
19
|
+
|
|
20
|
+
Install PatchKori directly from PyPI:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pip install patchkori
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Launch the web interface locally:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
patchkori launch
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
This opens the local web application at `http://127.0.0.1:7860`.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## 🖥️ Using the Pyramidal Cropper
|
|
37
|
+
|
|
38
|
+
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.
|
|
39
|
+
2. **Select Region:** Draw an ROI directly on the thumbnail preview with the brush, choose the full slide, or enter coordinates manually.
|
|
40
|
+
3. **Choose Level & Channels:** Pick the target pyramid resolution level and select the subset of channels you want.
|
|
41
|
+
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.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## ⚡ Headless CLI
|
|
46
|
+
|
|
47
|
+
You can also run crops directly from the terminal without opening the browser:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
patchkori crop /path/to/image.qptiff --level 0 --x 100 --y 100 --width 512 --height 512 --output-dir ./crops
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## 📜 License & Contact
|
|
56
|
+
|
|
57
|
+
Open-source for research and development.
|
|
58
|
+
|
|
59
|
+
For collaborations, feature suggestions, or custom bioinformatics development, please contact the developer at [Jubayer's GitHub](https://github.com/jubayer98).
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "patchkori"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.2"
|
|
8
8
|
description = "Modular open-source bioinformatics platform for large-scale pyramidal biological imaging"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
patchkori-0.1.1/PKG-INFO
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.5
|
|
2
|
-
Name: patchkori
|
|
3
|
-
Version: 0.1.1
|
|
4
|
-
Summary: Modular open-source bioinformatics platform for large-scale pyramidal biological imaging
|
|
5
|
-
Author: Jubayer
|
|
6
|
-
License: MIT
|
|
7
|
-
Keywords: bioinformatics,gradio,ome-tiff,pathology,qptiff,whole-slide-imaging,zarr
|
|
8
|
-
Requires-Python: >=3.10
|
|
9
|
-
Requires-Dist: gradio<6.0.0,>=5.0.0
|
|
10
|
-
Requires-Dist: imagecodecs>=2024.6.1
|
|
11
|
-
Requires-Dist: numpy>=1.26.0
|
|
12
|
-
Requires-Dist: pillow>=10.3.0
|
|
13
|
-
Requires-Dist: pydantic>=2.7.0
|
|
14
|
-
Requires-Dist: tifffile>=2024.5.22
|
|
15
|
-
Requires-Dist: typer>=0.12.0
|
|
16
|
-
Requires-Dist: zarr>=2.18.0
|
|
17
|
-
Provides-Extra: dev
|
|
18
|
-
Requires-Dist: mkdocs-material>=9.5.0; extra == 'dev'
|
|
19
|
-
Requires-Dist: pytest>=8.2.0; extra == 'dev'
|
|
20
|
-
Requires-Dist: ruff>=0.5.0; extra == 'dev'
|
|
21
|
-
Description-Content-Type: text/markdown
|
|
22
|
-
|
|
23
|
-
<div align="center">
|
|
24
|
-
<img src="https://raw.githubusercontent.com/jubayer98/PatchKori/main/assets/logo.svg" alt="PatchKori Logo" width="96" height="96" />
|
|
25
|
-
<h1>PatchKori</h1>
|
|
26
|
-
<p><strong>Bioinformatics Patch Kits Hub for Biological Image Datasets</strong></p>
|
|
27
|
-
</div>
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
## 🔬 About PatchKori
|
|
32
|
-
|
|
33
|
-
**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.
|
|
34
|
-
|
|
35
|
-
Currently, PatchKori features the **Pyramidal Cropper**:
|
|
36
|
-
- **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.
|
|
37
|
-
|
|
38
|
-
---
|
|
39
|
-
|
|
40
|
-
## 🚀 Quickstart
|
|
41
|
-
|
|
42
|
-
Install PatchKori directly from PyPI:
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
pip install patchkori
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
Launch the web interface locally:
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
patchkori launch
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
This opens the local web application at `http://127.0.0.1:7860`.
|
|
55
|
-
|
|
56
|
-
---
|
|
57
|
-
|
|
58
|
-
## 🖥️ Using the Pyramidal Cropper
|
|
59
|
-
|
|
60
|
-
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.
|
|
61
|
-
2. **Select Region:** Draw an ROI directly on the thumbnail preview with the brush, choose the full slide, or enter coordinates manually.
|
|
62
|
-
3. **Choose Level & Channels:** Pick the target pyramid resolution level and select the subset of channels you want.
|
|
63
|
-
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.
|
|
64
|
-
|
|
65
|
-
---
|
|
66
|
-
|
|
67
|
-
## ⚡ Headless CLI
|
|
68
|
-
|
|
69
|
-
You can also run crops directly from the terminal without opening the browser:
|
|
70
|
-
|
|
71
|
-
```bash
|
|
72
|
-
patchkori crop /path/to/image.qptiff --level 0 --x 100 --y 100 --width 512 --height 512 --output-dir ./crops
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
---
|
|
76
|
-
|
|
77
|
-
## 📜 License & Contact
|
|
78
|
-
|
|
79
|
-
Open-source for research and development.
|
|
80
|
-
|
|
81
|
-
For collaborations, feature suggestions, or custom bioinformatics development, please contact the developer at [Jubayer's GitHub](https://github.com/jubayer98).
|
patchkori-0.1.1/README.md
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
<img src="https://raw.githubusercontent.com/jubayer98/PatchKori/main/assets/logo.svg" alt="PatchKori Logo" width="96" height="96" />
|
|
3
|
-
<h1>PatchKori</h1>
|
|
4
|
-
<p><strong>Bioinformatics Patch Kits Hub for Biological Image Datasets</strong></p>
|
|
5
|
-
</div>
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## 🔬 About PatchKori
|
|
10
|
-
|
|
11
|
-
**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.
|
|
12
|
-
|
|
13
|
-
Currently, PatchKori features the **Pyramidal Cropper**:
|
|
14
|
-
- **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.
|
|
15
|
-
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
## 🚀 Quickstart
|
|
19
|
-
|
|
20
|
-
Install PatchKori directly from PyPI:
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
pip install patchkori
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
Launch the web interface locally:
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
patchkori launch
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
This opens the local web application at `http://127.0.0.1:7860`.
|
|
33
|
-
|
|
34
|
-
---
|
|
35
|
-
|
|
36
|
-
## 🖥️ Using the Pyramidal Cropper
|
|
37
|
-
|
|
38
|
-
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.
|
|
39
|
-
2. **Select Region:** Draw an ROI directly on the thumbnail preview with the brush, choose the full slide, or enter coordinates manually.
|
|
40
|
-
3. **Choose Level & Channels:** Pick the target pyramid resolution level and select the subset of channels you want.
|
|
41
|
-
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.
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
## ⚡ Headless CLI
|
|
46
|
-
|
|
47
|
-
You can also run crops directly from the terminal without opening the browser:
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
patchkori crop /path/to/image.qptiff --level 0 --x 100 --y 100 --width 512 --height 512 --output-dir ./crops
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
---
|
|
54
|
-
|
|
55
|
-
## 📜 License & Contact
|
|
56
|
-
|
|
57
|
-
Open-source for research and development.
|
|
58
|
-
|
|
59
|
-
For collaborations, feature suggestions, or custom bioinformatics development, please contact the developer at [Jubayer's GitHub](https://github.com/jubayer98).
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|