The ESKAPE Model Standalone
This repository provides a standalone application to the web version of ESKAPE Model at eskape.mcmaster.ca. The ESKAPE Model is a machine learning-based online resource to facilitate discovery of novel antibiotics against the ESKAPE pathogens, a group of multidrug-resistant bacteria that are responsible for the majority of hospital-acquired infections.
The ESKAPE Model predicts the antibacterial activity of inputted molecules against each of the following ESKAPE pathogens:
- EF - Enterococcus faecium
- SA - Staphylococcus aureus
- KP - Klebsiella pneumoniae
- AB - Acinetobacter baumannii
- PA - Pseudomonas aeruginosa
- BW - Escherichia coli (wildtype)
- DKO - Escherichia coli (hyperpermeable and efflux deficient)
Models were trained on in-house growth inhibition screening datasets against common laboratory strains of each pathogen. A total of 21 models were trained - three model architectures for each pathogen:
- Random forest using Morgan fingerprints
- Chemprop graph neural network
- Chemprop with RDKit features
How to Use
Input:
Molecules are inputted as a CSV file containing SMILES (one per row) with the column heading "smiles". An example csv file with two SMILES (eskape_test_input.csv) is available on this repository.
Output:
Results are outputted as a TSV file containing the following:
- Prediction scores from each of the 21 models are computed for each molecule. A prediction score is a value between 0 and 1 that denotes how confident the model is that a molecule is antibacterial. Predicted antibacterial molecules will have prediction scores closer to 1, while predicted non-antibacterial molecules will have prediction scores closer to 0.
- For any input compounds that were tested against the ESKAPE pathogens during training data acquisition, this tool will additionally output the experimental optical density (OD) values in the "validated" row. OD is a measure of bacterial cell growth, where a high OD means the bacteria grew in the presence of the compound, and a low OD means the compound was able to inhibit the growth of the bacteria. For reference, an OD less than 0.06 denotes full growth inhibition. All OD values were normalized by plate based on the interquartile mean.
- Several metrics are also calculated for each compound:
- Sum of PS: Sum of prediction scores from all pathogen models for one compound. This metric can be used to prioritize broad-spectrum antibacterial compounds.
- PPF: The ratio of the highest prediction score for a compound (PS1) to the second highest (PS2). This metric can be used to prioritize pathogen-prioritized antibacterial compounds.
- Molecular weight: Size of the molecule in g/mol
- clogP: Calculated octanol-water partition coefficient, where high clogP values mean the compound is more lipophilic. clogP is an important metric for solubility and bioavailability.
- TNN: The TNN similarity measures the structural similarity (value between 0-1) of an input molecule to the most similar molecule (nearest neighbour) from the training set. TNN similarity closer to 1 indicates the molecules are more similar (TNN similarity = 1 means the molecules are equal). Predictions on compounds that are more similar to the training set are likely to be more accurate. Nearest neighbor SMILES from the training set are included in the TSV.
Output files:
<INPUT-FILENAME>_sanitized.txt-final.tsv and <INPUT-FILENAME>_sanitized.txt-final.json summary files
The final results are saved to a JSON and TSV files, containing the fields detailed in the table below:
| Field | Description |
|---|---|
| smiles | The molecule representation in SMILES format. |
| molecular_weight | Size of the molecule in g/mol |
| clogp | The calculated octanol-water partition coefficient, where high clogP values mean the compound is more lipophilic. clogP is an important metric for solubility and bioavailability. |
| sum_rdkit | The sum of prediction scores for rdkit from all pathogen models for one compound. This metric can be used to prioritize broad-spectrum antibacterial compounds. |
| sum_chemprop | The sum of prediction scores for chemprop from all pathogen models for one compound. This metric can be used to prioritize broad-spectrum antibacterial compounds. |
| sum_rf | The sum of prediction scores for random forest from all pathogen models for one compound. This metric can be used to prioritize broad-spectrum antibacterial compounds. |
| ppf_rdkit | The ratio of the highest prediction score for a compound (PS1) to the second highest (PS2). This metric can be used to prioritize pathogen-prioritized antibacterial compounds. Calculated for rdkit models. |
| ppf_chemprop | The ratio of the highest prediction score for a compound (PS1) to the second highest (PS2). This metric can be used to prioritize pathogen-prioritized antibacterial compounds. Calculated for chemprop models. |
| ppf_rf | The ratio of the highest prediction score for a compound (PS1) to the second highest (PS2). This metric can be used to prioritize pathogen-prioritized antibacterial compounds. Calculated for random forest models. |
| ef_rdkit | A prediction score between 0 and 1 that denotes how confident the rdkit model is that a molecule is antibacterial for Enterococcus faecium. |
| ef_chemprop | A prediction score between 0 and 1 that denotes how confident the chemprop model is that a molecule is antibacterial for Enterococcus faecium. |
| ef_rf | A prediction score between 0 and 1 that denotes how confident the rf model is that a molecule is antibacterial for Enterococcus faecium. |
| sa_rdkit | A prediction score between 0 and 1 that denotes how confident the rdkit model is that a molecule is antibacterial for Staphylococcus aureus. |
| sa_chemprop | A prediction score between 0 and 1 that denotes how confident the chemprop model is that a molecule is antibacterial for Staphylococcus aureus. |
| sa_rf | A prediction score between 0 and 1 that denotes how confident the rf model is that a molecule is antibacterial for Staphylococcus aureus. |
| kp_rdkit | A prediction score between 0 and 1 that denotes how confident the rdkit model is that a molecule is antibacterial for Klebsiella pneumoniae. |
| kp_chemprop | A prediction score between 0 and 1 that denotes how confident the chemprop model is that a molecule is antibacterial for Klebsiella pneumoniae. |
| kp_rf | A prediction score between 0 and 1 that denotes how confident the rf model is that a molecule is antibacterial for Klebsiella pneumoniae. |
| ab_rdkit | A prediction score between 0 and 1 that denotes how confident the rdkit model is that a molecule is antibacterial for Acinetobacter baumannii. |
| ab_chemprop | A prediction score between 0 and 1 that denotes how confident the chemprop model is that a molecule is antibacterial for Acinetobacter baumannii. |
| ab_rf | A prediction score between 0 and 1 that denotes how confident the rf model is that a molecule is antibacterial for Acinetobacter baumannii. |
| pa_rdkit | A prediction score between 0 and 1 that denotes how confident the rdkit model is that a molecule is antibacterial for Pseudomonas aeruginosa. |
| pa_chemprop | A prediction score between 0 and 1 that denotes how confident the chemprop model is that a molecule is antibacterial for Pseudomonas aeruginosa. |
| pa_rf | A prediction score between 0 and 1 that denotes how confident the rf model is that a molecule is antibacterial for Pseudomonas aeruginosa. |
| bw_rdkit | A prediction score between 0 and 1 that denotes how confident the rdkit model is that a molecule is antibacterial for Escherichia coli (wildtype). |
| bw_chemprop | A prediction score between 0 and 1 that denotes how confident the chemprop model is that a molecule is antibacterial for Escherichia coli (wildtype). |
| bw_rf | A prediction score between 0 and 1 that denotes how confident the rf model is that a molecule is antibacterial for Escherichia coli (wildtype). |
| dko_rdkit | A prediction score between 0 and 1 that denotes how confident the rdkit model is that a molecule is antibacterial for Escherichia coli (hyperpermeable and efflux deficient). |
| dko_chemprop | A prediction score between 0 and 1 that denotes how confident the chemprop model is that a molecule is antibacterial for Escherichia coli (hyperpermeable and efflux deficient). |
| dko_rf | A prediction score between 0 and 1 that denotes how confident the rf model is that a molecule is antibacterial for Escherichia coli (hyperpermeable and efflux deficient). |
| ef_validated | The experimental optical density (OD) values for input compounds that were tested against the Enterococcus faecium pathogen during training data acquisition. |
| sa_validated | The experimental optical density (OD) values for input compounds that were tested against the Staphylococcus aureus pathogen during training data acquisition. |
| kp_validated | The experimental optical density (OD) values for input compounds that were tested against the Klebsiella pneumoniae pathogen during training data acquisition. |
| ab_validated | The experimental optical density (OD) values for input compounds that were tested against the Acinetobacter baumannii pathogen during training data acquisition. |
| pa_validated | The experimental optical density (OD) values for input compounds that were tested against the Pseudomonas aeruginosa pathogen during training data acquisition. |
| bw_validated | The experimental optical density (OD) values for input compounds that were tested against the Escherichia coli (wildtype) pathogen during training data acquisition. |
| dko_validated | The experimental optical density (OD) values for input compounds that were tested against the Escherichia coli (hyperpermeable and efflux deficient) pathogen during training data acquisition. |
| tanimoto_nearest_neighbor | Nearest neighbor SMILES from the training set. |
| tanimoto_nearest_neighbor_similarity | The TNN similarity measures the structural similarity (value between 0-1) of an input molecule to the most similar molecule (nearest neighbour) from the training set. TNN similarity closer to 1 indicates the molecules are more similar (TNN similarity = 1 means the molecules are equal). |
| [Table 1: rf - random forest] |
Other output files.
| File | Description |
|---|---|
<INPUT-FILENAME>_errors.txt |
Contains invalid SMILES. |
<INPUT-FILENAME>_sanitized.txt |
Contains valid SMILES. |
<INPUT-FILENAME>_sanitized.txt-nearest-neighbor.txt |
Contains nearest neighbor caluculations results. |
<INPUT-FILENAME>_sanitized.txt-properties.txt |
Contains properties calculations results i.e., mol_weight,clogp |
<INPUT-FILENAME>_sanitized.txt-canonical.txt |
Contains canonical SMILES. |
<INPUT-FILENAME>_sanitized.txt-validated.txt |
A prediction scores for training data. |
<INPUT-FILENAME>_sanitized.txt.json |
Temporary JSON for summary results. |
<INPUT-FILENAME>_sanitized.txt-<PATHOGEN>_<MODEL-TYPE>.csv |
A prediction scores for <PATHOGEN> using <MODEL-TYPE> model |
Interpretation:
While all models were trained on the same datasets using the same training scheme, the three model types differ in terms of architecture and molecular representation. Prediction scores for the same molecule and pathogen will therefore vary based on the model type. Note that prediction scores do not correlate directly with likelihood of activity or potency, but rather represent model confidence.
Runtime:
Note: Predictions on 1 molecule takes ~2 minutes. Predictions on 100 molecules takes ~3.5 minutes.
Installation
The tool requires at least Python 3.10. Installation takes ~5 minutes.
Create a virtual environment
python3 -m venv eskape_env
source eskape_env/bin/activate
Install eskape_model using pip
The latest release can be installed directly from pip which will also install the dependencies chemprop and chemfunc.
pip install eskape_model==1.0.4
Dependencies
The following are required dependencies (listed below):
- chemprop version 1.6.1 - https://github.com/chemprop/chemprop.git
- chemfunc version 1.0.10 - https://github.com/swansonk14/chemfunc.git
- scikit-learn==1.3.2
- numpy==1.26.4
- torch==2.2.2
- typed-argument-parser version 1.11.0 - https://github.com/swansonk14/typed-argument-parser.git
test functions
Run test commands inside the created environment (eskape_env):
chemprop_predict -h
sklearn_predict -h
chemfunc -h
eskape_model -h
Download ESKAPE model models from eskape.mcmaster.ca or GitHub
Please download the models and training data at GitHub.
Create a directory db with two sub-directories canonical_data and models. From the downloaded models data, add training_data_canonical.csv to db/canonical_data/ directory. Add all models to directory db/models/all/.
The tree structure of db should look like so:
(eskape_env) amos@Amogelangs-MacBook-Pro db % tree -L 3
.
├── canonical_data
│ └── training_data_canonical.csv
└── models
└── all
├── AB_chemprop
├── AB_rdkit
├── AB_rf
├── BW_chemprop
├── BW_rdkit
├── BW_rf
├── DKO_chemprop
├── DKO_rdkit
├── DKO_rf
├── EF_chemprop
├── EF_rdkit
├── EF_rf
├── KP_chemprop
├── KP_rdkit
├── KP_rf
├── PA_chemprop
├── PA_rdkit
├── PA_rf
├── SA_chemprop
├── SA_rdkit
└── SA_rf
Run eskape_model
Run example command inside the created environment (eskape_env):
eskape_model \
--input_file input.txt \
--output_directory output \
--models_directory db \
--debug > run.log 2>&1 &
Run eskape_model using selected model list and pathogen list
Please note that both --pathogen_list and --model_list must be specified to run predictions on a subset.
Otherwise, predictions will be run for all pathogens using all available models.
Run example command inside the created environment (eskape_env):
eskape_model \
--input_file input.txt \
--output_directory output \
--models_directory db \
--pathogen_list "AB,KP" \
--model_list "rf" \
--debug > run.log 2>&1 &
Run eskape_model using GPU
Please note that chemprop version 1.6.1 supports only 1 GPU and looks for index 0.
CUDA_VISIBLE_DEVICES=0 \
eskape_model \
--input_file input.txt \
--output_directory output \
--models_directory db --debug \
--pathogen_list "KP" \
--model_list "rdkit,rf,chemprop" \
> run-1.log 2>&1
Metadata
Release files for eskape-model 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| eskape_model-1.0.5.tar.gz | 14.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| eskape_model-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.3 kB
Release files / eskape_model-1.0.5.tar.gz
| Download URL | eskape_model-1.0.5.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05734cc0d9938e1896e44432f19b6eba7169ddd5ab1c40f3c701e85ecaa2ec0e
|
|
BLAKE2b-256 checksum How to use checksums |
fdbafd50de52cf56864e2c09985247f97a199bfea318a2c892ef30024e0030a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 16, 2026.
Transparency logRelease files / eskape_model-1.0.5-py3-none-any.whl
| Download URL | eskape_model-1.0.5-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0445be1cd8a208d250f686be4cc6f83836d8391b9725fe8373fc1408dec4a0ec
|
|
BLAKE2b-256 checksum How to use checksums |
0136ede0bf4815e8a4ef910a522829d63a7a3c1ea61b62c0af42d18a738719c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 16, 2026.
Transparency log