Metadata-Version: 2.4
Name: pheval
Version: 0.7.10
Author-email: Yasemin Bridges <y.bridges@qmul.ac.uk>, Julius Jacobsen <j.jacobsen@qmul.ac.uk>, Nico Matentzoglu <nicolas.matentzoglu@gmail.com>, Vinícius de Souza <souzadevinicius@gmail.com>
License-File: LICENSE
Requires-Python: <4.0.0,>=3.10
Requires-Dist: class-resolver>=0.4.2
Requires-Dist: click>=8.1.3
Requires-Dist: deprecation>=2.1.0
Requires-Dist: duckdb<2,>=1.0.0
Requires-Dist: google<4,>=3.0.0
Requires-Dist: jaydebeapi>=1.2.3
Requires-Dist: matplotlib<4,>=3.7.0
Requires-Dist: oaklib>=0.5.6
Requires-Dist: pandas>=1.5.1
Requires-Dist: phenopackets<3,>=2.0.2
Requires-Dist: plotly<6,>=5.13.0
Requires-Dist: polars~=1.23
Requires-Dist: pyaml<22,>=21.10.1
Requires-Dist: pyarrow<20,>=19.0.1
Requires-Dist: pyserde<0.10,>=0.9.8
Requires-Dist: scikit-learn<2,>=1.4.0
Requires-Dist: seaborn<0.13,>=0.12.2
Requires-Dist: tqdm>=4.64.1
Description-Content-Type: text/markdown

# PhEval - Phenotypic Inference Evaluation Framework

[![PyPI](https://img.shields.io/pypi/v/pheval)](https://pypi.org/project/pheval/)
![Build Status](https://img.shields.io/github/actions/workflow/status/monarch-initiative/pheval/pypi-publish.yml?branch=main)
![License](https://img.shields.io/github/license/monarch-initiative/pheval)
![Python Version](https://img.shields.io/badge/python-3.10%2B-blue)
![Issues](https://img.shields.io/github/issues/monarch-initiative/pheval)

PhEval (Phenotypic Inference Evaluation Framework) is a **modular, reproducible benchmarking framework** for evaluating **phenotype-driven prioritisation tools**, such as gene, variant, and disease prioritisation algorithms.

It is designed to support **fair comparison across tools, tool versions, datasets, and knowledge updates**, addressing a long-standing gap in standardised evaluation for phenotype-based methods.

📖 **Full documentation:** https://monarch-initiative.github.io/pheval/
---

## Why PhEval?

Evaluating phenotype-driven prioritisation tools is challenging because performance depends on many moving parts, including:

- Phenotype representations and noise
- Ontology structure and versioning
- Gene and disease mappings
- Tool-specific scoring and ranking strategies
- Input cohorts and simulation approaches

PhEval provides a framework that makes these factors **explicit, controlled, and comparable**.

Key features:

- **Standardised outputs** across tools
- **Reproducible benchmarking** with recorded metadata
- **Plugin-based architecture** for extensibility
- **Separation of execution and evaluation**
- Support for **gene, variant, and disease prioritisation**

---

## Installation

PhEval requires **Python 3.10 or later**.

Install from PyPI:

```bash
pip install pheval
```

This installs:

* The core pheval CLI (for running tools via plugins)
* `pheval-utils` (for data preparation, benchmarking, and analysis)

Verify installation:

```bash
pheval --help
pheval-utils --help
```

## How PhEval is used

PhEval workflows typically consist of three phases:

1.	Prepare data 
    Prepare and manipulate phenopackets and related inputs (e.g. VCFs).
2. Run tools 
   Execute phenotype-driven prioritisation tools via plugin-provided runners using:
   ```bash
   pheval run --runner <runner_name> ...
   ```
3. Benchmark and analyse
   Compare results across runs using standardised metrics and plots.

Each phase is documented in detail in the user documentation.

## Plugins and runners

PhEval itself is tool-agnostic.

Support for specific tools is provided via plugins, which implement runners responsible for:

* Preparing tool inputs 
* Executing the tool 
* Converting raw outputs into PhEval standardised results

A list of available plugins is maintained in the documentation:

Plugins: https://monarch-initiative.github.io/pheval/plugins/

Each plugin repository contains tool-specific installation instructions and examples.

## Documentation

The PhEval documentation is organised by audience and task:
* Getting started: installation and first steps 
* Using PhEval: running tools, plugins, and workflows 
* Utilities: data preparation, phenopacket manipulation, simulations 
* Benchmarking: executing benchmarks, metrics, and plots 
* Developer documentation: plugin development and API reference

Start here: https://monarch-initiative.github.io/pheval/

## Contributions

Contributions are welcome across:

* Code 
* Documentation 
* Testing 
* Plugins and integrations

## Citation

If you use **PhEval** in your research, please cite the following publication:

> **Bridges, Y., Souza, V. d., Cortes, K. G., et al.**  
> *Towards a standard benchmark for phenotype-driven variant and gene prioritisation algorithms: PhEval – Phenotypic Inference Evaluation Framework.*  
> **BMC Bioinformatics** 26, 87 (2025).  
> https://doi.org/10.1186/s12859-025-06105-4


