Skip to content

Commit 3c91267

Browse files
author
Yousef Ashraf Hassan Kotb Hassan
committed
feat: prepare v1.0.0 release
- Move git dependencies (SAM2, CONCH, MUSK) out of pyproject.toml for PyPI compatibility - Update README installation instructions with manual git install steps - Add Hugging Face link to README
1 parent 7156e0f commit 3c91267

3 files changed

Lines changed: 41 additions & 6 deletions

File tree

README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@
1414
<p align="center">
1515
<a href="https://atlasanalyticslab.github.io/AtlasPatch/"><b>Project Page</b></a> |
1616
<a href="https://arxiv.org/abs/XXXX.XXXXX"><b>Paper</b></a> |
17+
<a href="https://huggingface.co/AtlasAnalyticsLab/AtlasPatch"><b>Hugging Face</b></a> |
1718
<a href="https://github.com/AtlasAnalyticsLab/AtlasPatch"><b>GitHub</b></a>
1819
</p>
1920

2021
## Table of Contents
2122
- [Installation](#installation)
2223
- [Quick Install (Recommended)](#quick-install-recommended)
2324
- [OpenSlide Prerequisites](#openslide-prerequisites)
25+
- [Optional Encoder Dependencies](#optional-encoder-dependencies)
2426
- [Alternative Installation Methods](#alternative-installation-methods)
2527
- [Usage Guide](#usage-guide)
2628
- [Pipeline Checkpoints](#pipeline-checkpoints)
@@ -62,7 +64,11 @@
6264
### Quick Install (Recommended)
6365

6466
```bash
67+
# Install AtlasPatch
6568
pip install atlas-patch
69+
70+
# Install SAM2 (required for tissue segmentation)
71+
pip install git+https://github.com/facebookresearch/sam2.git
6672
```
6773

6874
> **Note:** AtlasPatch requires the OpenSlide system library for WSI processing. See [OpenSlide Prerequisites](#openslide-prerequisites) below.
@@ -88,6 +94,20 @@ Before installing AtlasPatch, you need the OpenSlide system library:
8894

8995
- **Other systems**: Visit [OpenSlide Documentation](https://openslide.org/)
9096

97+
### Optional Encoder Dependencies
98+
99+
Some feature extractors require additional dependencies that must be installed separately:
100+
101+
```bash
102+
# For CONCH encoder (conch_v1, conch_v15)
103+
pip install git+https://github.com/Mahmoodlab/CONCH.git
104+
105+
# For MUSK encoder
106+
pip install git+https://github.com/lilab-stanford/MUSK.git
107+
```
108+
109+
These are only needed if you plan to use those specific encoders.
110+
91111
### Alternative Installation Methods
92112

93113
<details>
@@ -101,8 +121,9 @@ conda activate atlas_patch
101121
# Install OpenSlide
102122
conda install -c conda-forge openslide
103123

104-
# Install AtlasPatch
124+
# Install AtlasPatch and SAM2
105125
pip install atlas-patch
126+
pip install git+https://github.com/facebookresearch/sam2.git
106127
```
107128
</details>
108129

@@ -117,8 +138,9 @@ curl -LsSf https://astral.sh/uv/install.sh | sh
117138
uv venv
118139
source .venv/bin/activate # On Windows: .venv\Scripts\activate
119140

120-
# Install AtlasPatch
141+
# Install AtlasPatch and SAM2
121142
uv pip install atlas-patch
143+
uv pip install git+https://github.com/facebookresearch/sam2.git
122144
```
123145
</details>
124146

docs/release-notes/v1.0.0.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,25 @@ If your encoder isn't in the list, the plugin system lets you add it without tou
3838
## Installation
3939

4040
```bash
41+
# Install AtlasPatch
4142
pip install atlas-patch
43+
44+
# Install SAM2 (required for tissue segmentation)
45+
pip install git+https://github.com/facebookresearch/sam2.git
4246
```
4347

44-
You'll need OpenSlide installed on your system. If you're using conda:
48+
You'll also need OpenSlide installed on your system. If you're using conda:
4549

4650
```bash
4751
conda install -c conda-forge openslide
4852
```
4953

54+
Optional encoders (install only if needed):
55+
```bash
56+
pip install git+https://github.com/Mahmoodlab/CONCH.git # for CONCH
57+
pip install git+https://github.com/lilab-stanford/MUSK.git # for MUSK
58+
```
59+
5060
## Quick start
5161

5262
Process a directory of slides with UNI embeddings:
@@ -70,6 +80,7 @@ We are planning to add slide-level encoders (TITAN, PRISM, GigaPath slide encode
7080

7181
- GitHub: https://github.com/AtlasAnalyticsLab/AtlasPatch
7282
- PyPI: https://pypi.org/project/atlas-patch/
83+
- Hugging Face: https://huggingface.co/AtlasAnalyticsLab/AtlasPatch
7384

7485
## Issues?
7586

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,12 @@ dependencies = [
3232
"timm>=0.9.0",
3333
"huggingface-hub>=0.23.0",
3434
"gdown>=5.2.0",
35-
"conch @ git+https://github.com/Mahmoodlab/CONCH.git",
3635
"transformers>=4.41.0",
3736
"sentencepiece>=0.2.0",
3837
"open-clip-torch>=2.24.0",
3938
"fairscale>=0.4.0",
4039
"einops>=0.8.0",
4140
"einops-exts>=0.0.4",
42-
"sam-2 @ git+https://github.com/facebookresearch/sam2.git",
43-
"MUSK @ git+https://github.com/lilab-stanford/MUSK.git",
4441
]
4542

4643
[project.optional-dependencies]
@@ -52,6 +49,11 @@ dev = [
5249
"mypy>=1.0.0",
5350
]
5451

52+
# See README for installation instructions:
53+
# pip install git+https://github.com/facebookresearch/sam2.git (required)
54+
# pip install git+https://github.com/Mahmoodlab/CONCH.git (optional)
55+
# pip install git+https://github.com/lilab-stanford/MUSK.git (optional)
56+
5557
[project.scripts]
5658
atlaspatch = "atlas_patch.cli:main"
5759

0 commit comments

Comments
 (0)