apholo8-EGNN
Binding-site predictor based on VN-EGNN (Virtual Node E(n)-equivariant Graph Neural Network), inference only.
Model architecture and training code are from ml-jku/vnegnn. The weights are automatically downloaded from Hugging face.
Hardware and performance
Inference of Cryptobench 1bk2, chain A, 57 residues :
| Inference device | CPU RAM | GPU VRAM | Inference time (57 residues) |
|---|---|---|---|
| CPU | At least 17 GB available | Not required | ~77 s |
| GPU | At least 19 GB available | 15 GB available (tested on Tesla T4) | ~74 s |
These figures are based on the 57-residue example above; larger proteins may need more memory.
Credits
Developed at Owkin by Christian Esposito (Owkin), Laura Dumont (Owkin), Rose Hoste (Owkin), Floriane Montanari (Owkin)
Usage
Install
One install works on GPU and CPU machines (Linux). Choose the device at runtime with
--device (default: cuda if available, else cpu).
pip install apholo8-egnn --find-links https://data.pyg.org/whl/torch-2.11.0+cu130.html
From source:
git clone https://github.com/owkin/apholo8-egnn.git
cd apholo8-egnn
uv sync
uv run apholo8-egnn --help
CLI
Single structure
uv run apholo8-egnn --structure protein.pdb
Results are written to <structure stem>_predictions.csv (override with --output).
Each row is one predicted binding site:
confidence_rank,nms_rank,confidence,x,y,z
1,1,0.823451,12.345,6.789,-3.210
2,4,0.761234,13.100,6.500,-3.000
3,2,0.654321,45.678,23.456,12.345
Folder (batch mode)
uv run apholo8-egnn --folder /path/to/structures/
Results are written to <folder name>_predictions.csv. Each row is one structure file, with
predictions stored in wide format (vn1_conf, vn1_x, vn1_y, vn1_z, vn1_nms_rank, vn2_...).
Virtual nodes are indexed in descending confidence order (vn1 = highest confidence).
Invalid files (empty, no atom records, no protein residues) are rejected before ESM-2 runs.
Failed and invalid structures produce an empty row and processing continues.
structure,vn1_conf,vn1_x,vn1_y,vn1_z,vn1_nms_rank,...
1abc.pdb,0.823451,12.345,6.789,-3.210,1,...
2xyz.cif,0.761234,45.678,23.456,12.345,1,...
All flags
| Flag | Default | Description |
|---|---|---|
--structure / -s |
required | Path to a single .pdb, .cif, or .mmcif file |
--folder / -f |
required | Path to a folder of structure files (batch mode) |
--device / -d |
auto | Device for VNEGNN and ESM-2 3B (cpu, cuda, cuda:1, …). Defaults to cuda if available, else cpu |
--output / -o |
auto | Output CSV path |
--top / -n |
all | Limit to top-N predictions per structure ranked by confidence |
--cycles |
1 |
Number of iterative prediction cycles |
--virtual-nodes |
8 |
Candidate binding sites per cycle |
--nms-radius |
2.0 |
NMS minimum separation radius in Å |
--chains |
all | Comma- or hyphen-separated chain IDs; single-structure mode only |
--vn-seed |
unset | Integer seed enabling reproducible random virtual-node rotations |
--structure and --folder are mutually exclusive; one is required.
NMS is a greedy reordering, not a filter: the highest-confidence site is always picked first,
then each next pick must be ≥ --nms-radius Å from all already-chosen sites.
If no candidate satisfies the constraint, the algorithm falls back to the next best by confidence,
so every prediction appears in both orderings and the global maximum is preserved.
Python API
from apholo8_egnn.predictor import VNEGNNPredictor
from apholo8_egnn.utils.nms import nms_order
import numpy as np
predictor = VNEGNNPredictor(device="cuda") # omit device to auto-detect
coords, confidence = predictor.predict(
structure_path="protein.pdb", # or .cif / .mmcif
num_cycles=1,
num_virtual_nodes=8,
)
# coords: np.ndarray [K, 3] binding-site positions (Å), sorted by descending confidence
# confidence: np.ndarray [K] confidence scores, descending
# NMS reordering ("with NMS" order): returns a permutation of [0..K-1]
nms_perm = nms_order(coords, confidence, radius=2.0)
print("Without NMS (by confidence):")
for rank, (coord, conf) in enumerate(zip(coords, confidence), 1):
print(f" {rank} conf={conf:.4f} xyz=({coord[0]:.2f}, {coord[1]:.2f}, {coord[2]:.2f})")
print("With NMS:")
for nms_rank, idx in enumerate(nms_perm, 1):
coord, conf = coords[idx], confidence[idx]
print(f" {nms_rank} conf={conf:.4f} xyz=({coord[0]:.2f}, {coord[1]:.2f}, {coord[2]:.2f})")
Metadata
Release files for apholo8-egnn 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| apholo8_egnn-0.2.0.tar.gz | 176.1 kB | With provenance | Details for apholo8_egnn-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| apholo8_egnn-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for apholo8_egnn-0.2.0-py3-none-any.whl |
Total release size: 198.1 kB
Release files / apholo8_egnn-0.2.0.tar.gz
| Download URL | apholo8_egnn-0.2.0.tar.gz |
|---|---|
| Size | 176.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6b178b6384fabe4337dfe97cccf9f0ed98333df60183fe288c1c3c9279dd6e1
|
|
BLAKE2b-256 checksum How to use checksums |
42d8850fbbdaa62d1cbe9106e87e829bc55b30a48e522484ed4eed8fbf184d86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / apholo8_egnn-0.2.0-py3-none-any.whl
| Download URL | apholo8_egnn-0.2.0-py3-none-any.whl |
|---|---|
| Size | 22.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c960d5d9d7dbc3b9f42f5ac688c3d051cf70eeffe079d1efea184536911911d
|
|
BLAKE2b-256 checksum How to use checksums |
67ed6031cc04ac14e06d8fd8940e71251fbe8fc966e26cf49f4e4e1334020793
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logSecurity for apholo8-egnn 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for apholo8_egnn-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.