Metadata-Version: 2.4
Name: phenome
Version: 1.5.3
Summary: PhenoMe: dataset-agnostic phenotyping pipeline using deep learning embeddings
Author: Aitor González-Marfil
License: MIT
Project-URL: Homepage, https://github.com/PhenoMe-Ecosystem/PhenoMe
Project-URL: Repository, https://github.com/PhenoMe-Ecosystem/PhenoMe
Project-URL: Documentation, https://phenome-ecosystem.github.io/PhenoMe/
Project-URL: AI assistants, https://github.com/PhenoMe-Ecosystem/PhenoMe/blob/main/AGENTS.md
Project-URL: Bug Tracker, https://github.com/PhenoMe-Ecosystem/PhenoMe/issues
Project-URL: Changelog, https://github.com/PhenoMe-Ecosystem/PhenoMe/blob/main/CHANGELOG.md
Keywords: phenotyping,bioimaging,computer vision,deep learning,embeddings,microscopy,cell biology,image analysis,pytorch,drug discovery
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Classifier: Topic :: Scientific/Engineering :: Image Processing
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Typing :: Typed
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: torch>=2.0.0
Requires-Dist: torchvision>=0.15.0
Requires-Dist: numpy>=1.24
Requires-Dist: pandas
Requires-Dist: matplotlib>=3.7
Requires-Dist: plotly
Requires-Dist: kaleido
Requires-Dist: scikit-learn
Requires-Dist: joblib
Requires-Dist: tqdm
Requires-Dist: opencv-python
Requires-Dist: tifffile
Requires-Dist: h5py
Requires-Dist: scipy
Requires-Dist: scikit-image>=0.26.0
Requires-Dist: ipywidgets>=8.1
Requires-Dist: anywidget>=0.9
Requires-Dist: ipykernel>=6.29
Requires-Dist: jupyterlab>=4.0
Requires-Dist: jupyterlab_widgets>=3.0
Requires-Dist: nbformat>=5.9
Requires-Dist: pillow
Requires-Dist: umap-learn==0.5.12
Requires-Dist: nibabel<6,>=5.2.0
Requires-Dist: dcor==0.7
Provides-Extra: full
Requires-Dist: torchdr<0.6,>=0.4; extra == "full"
Requires-Dist: pykeops==2.3; sys_platform != "win32" and extra == "full"
Provides-Extra: mcp
Requires-Dist: mcp>=2.0; extra == "mcp"
Provides-Extra: dev
Requires-Dist: codespell>=2.4; extra == "dev"
Requires-Dist: interrogate>=1.7.0; extra == "dev"
Requires-Dist: mypy>=1.19.1; extra == "dev"
Requires-Dist: pandas-stubs; extra == "dev"
Requires-Dist: pre-commit>=3.7; extra == "dev"
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: ruff>=0.15.4; extra == "dev"
Requires-Dist: types-requests; extra == "dev"
Requires-Dist: types-setuptools; extra == "dev"
Dynamic: license-file

<div align="center">
  <img src="docs/assets/logo.png" alt="PhenoMe logo" width="360"/>
  <p>A modular, <b>dataset-agnostic</b> and <b>model-agnostic</b> framework for phenotyping analysis, combining deep learning embeddings and image properties.</p>
</div>

---

### 🗺️ Navigation

**[✨ Features](#-features)** | **[🚀 Quick Start](#-quick-start)** | **[📦 Installation](#-installation)** | **[📄 Paper reproducibility](#-paper-reproducibility)** | **[📖 Documentation](https://phenome-ecosystem.github.io/PhenoMe/)** | **[📜 Citation](#-citation)**

---

<div align="center">
    <video src="https://github.com/user-attachments/assets/644e18f6-02a7-4700-bec2-9fcf11bde3c6"></video>
</div>

---

## ✨ Features

- 🧠 **Model Agnostic**: Extract embeddings using DINOv2 or any custom vision model (PyTorch, TensorFlow, Keras, etc.).
- 📂 **Dataset Agnostic**: Works with any image dataset structure with customizable metadata extraction.
- 🛠️ **Analysis Toolkit**: Distance quantification, anomaly detection, property extraction, and correlation analysis.
- 📊 **Interactive Visualizations**: High-performance Plotly-based PCA, t-SNE, and UMAP plots.
- 📑 **Automated Reporting**: Generate comprehensive standalone HTML reports.

---

## 🚀 Quick Start

Try the no-code experience with the **[Interactive Quickstart Notebook](Notebooks/tutorials/01_interactive_quickstart.ipynb)** or launch instantly in Colab: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/PhenoMe-Ecosystem/PhenoMe/blob/main/Notebooks/tutorials/01_interactive_quickstart.ipynb)

---

## 📦 Installation

### Create a conda environment

1. Open the terminal and clone the repository with git. 

```bash
git clone https://github.com/PhenoMe-Ecosystem/PhenoMe.git
cd PhenoMe
```
If you don't have git installed, please download this GitHub repository, unzip the folder and open a terminal window already pointing to the PhenoMe folder containing this code (right-click on the folder and choose "New Terminal at Folder").

2. Create a conda environment from the terminal:

**GPU**
```bash
conda env create -f envs/environment-gpu.yml
conda activate phenome-gpu
```
PyTorch is included. An NVIDIA GPU is used when CUDA is available; the same install runs on CPU.


**CPU**
```bash
conda env create -f envs/environment-cpu.yml
conda activate phenome-cpu
```
### Install PhenoMe directly from pip within an existing environment

Using the terminal, install the package:

```bash
pip install phenome
```

PyTorch and the Jupyter packages used by the notebooks are included.

> **💡 Full instructions, verification, and troubleshooting:**
> See the [Getting started](https://phenome-ecosystem.github.io/PhenoMe/getting-started/) guide for install details, verification commands, and first-analysis walkthroughs.

---

## 📄 Paper reproducibility

To reproduce the analyses in the paper, check out the [Paper reproducibility](https://phenome-ecosystem.github.io/PhenoMe/paper-reproducibility/) guide.

---

## 📖 Documentation

**Explore the [Full Documentation](https://phenome-ecosystem.github.io/PhenoMe/)** for detailed guides, API references, and tutorials.

| Step | Resource |
| ---- | -------- |
| 1️⃣ **Install** | [Getting started](https://phenome-ecosystem.github.io/PhenoMe/getting-started/) |
| 2️⃣ **Set up your data** | [Data setup](https://phenome-ecosystem.github.io/PhenoMe/guides/data-setup/) · [Experiment details](https://phenome-ecosystem.github.io/PhenoMe/guides/experiment-details/) |
| 3️⃣ **Tutorials** | [Notebooks/tutorials/](Notebooks/tutorials/) |
| 4️⃣ **Examples** | [Notebooks/examples/](Notebooks/examples/) |

**Learn More:** [Core concepts](https://phenome-ecosystem.github.io/PhenoMe/concepts/) · [Workflows](https://phenome-ecosystem.github.io/PhenoMe/workflows/) · [FAQ](https://phenome-ecosystem.github.io/PhenoMe/faq/) · [Glossary](https://phenome-ecosystem.github.io/PhenoMe/glossary/)

Coding agents must read and follow [AGENTS.md](AGENTS.md) before writing code.

---

## 📜 Publication

[<img width="1084" height="545" alt="Screenshot 2026-11-05 at 15 17 53" src="https://github.com/user-attachments/assets/e4c932f2-d88c-4d4c-988a-777a55770474" />](https://www.biorxiv.org/content/10.64898/2026.10.29.762637v1)

If you use PhenoMe, please cite our work:

```bibtex
@article{Gonzalez-Marfil2026phenome,
  author = {González-Marfil, Aitor and Backová, Lenka and Bernatchez, Renaud and Hidalgo-Cenalmor, Iván and Dufour, Antoine and Jacquemet, Guillaume and Lavoie-Cardinal, Flavie and Arganda-Carreras, Ignacio and Gómez-de-Mariscal, Estibaliz},
  title = {PhenoMe: An interactive AI framework for interpretable, microscopy-driven phenotyping},
  journal = {bioRxiv},
  year = {2026},
  publisher = {Cold Spring Harbor Laboratory},
  doi = {10.64898/2026.10.29.762637},
  url = {https://doi.org/10.64898/2026.10.29.762637}
}
```


