CORE Score is a way of measuring how certain a co-folding model is about its prediction, by measuring how closely ligand predictions agree with each other. Higher agreement has been shown to indicate that predictions are more likely to be correct (paper link coming). Additionally, we also calculate the PoseBusters checks for each prediction, and an experimental structure can be provided and used to calculate each prediction's ligand RMSD and lDDT-PLI against it.
The full description of how CORE Score is calculated can be found in the paper (paper link coming).
Install
conda install -c conda-forge -c bioconda openstructure
pip install core-score
OpenStructure is not on PyPI, so it comes from conda.
Usage
Write a CSV naming each ensemble's ligand and predictions, then run CORE Score on it. For example:
ensemble,ligand,predictions
target1,CC(=O)Nc1ccc(O)cc1,predictions/target1/**/*.cif
core-score core_score_input.csv --out results/
Required columns
| Column | Meaning |
|---|---|
ensemble |
Name of the ensemble. Rows with the same name form one ensemble. |
ligand |
The ligand, as a SMILES or an SDF file. |
predictions |
A predicted structure, or a wildcard matching several. Every ensemble needs at least four. |
Optional columns
| Column | Meaning |
|---|---|
confidence |
The model's confidence for the prediction, one prediction per row. |
reference |
The experimental structure. |
ligand_chain |
The ligand's chain, or chains separated by spaces. |
Paths are relative to the CSV. For AlphaFold3, match predictions/target1/seed-*/*.cif so the
copy of its top model beside the seed folders is left out.
For AlphaFold3, Boltz, Chai-1, Protenix and OpenFold3 output, core-score-csv can write
this CSV for you, with one row per prediction and each prediction's confidence read from
the model's own files.
core-score-csv --predictions predictions/ --ligands ligands.csv --output core_score_input.csv
Here predictions/ holds one folder per ensemble, named for it, and ligands.csv names
each ensemble's ligand.
ensemble,ligand
target1,CC(=O)Nc1ccc(O)cc1
target2,ligands/target2.sdf
Add --references references/, a folder holding <ensemble>.cif, to fill in the
references too.
Output
core_scores.csv has one row per ensemble, with its CORE Score, how many predictions it
has and how many pass PoseBusters.
| ensemble | core_score | prediction_count | valid_prediction_count |
|---|---|---|---|
| 7uy4 | 0.885 | 25 | 23 |
predictions.csv has one row per prediction, and its columns depend on what you give.
| You give | predictions.csv |
|---|---|
| Ligands and predictions | ensemble, prediction, core_score, pb_valid for each prediction |
| + confidences | + confidence for each prediction |
| + references | + rmsd, lddt_pli for each prediction |
With ligands and predictions only:
| ensemble | prediction | core_score | pb_valid |
|---|---|---|---|
| 7uy4 | predictions/7uy4/seed_2519/pred.model_idx_0.cif | 0.885 | True |
| 7uy4 | predictions/7uy4/seed_2519/pred.model_idx_1.cif | 0.885 | True |
With confidences:
| ensemble | prediction | core_score | confidence | pb_valid |
|---|---|---|---|---|
| 7uy4 | predictions/7uy4/seed_2519/pred.model_idx_0.cif | 0.885 | 0.853 | True |
| 7uy4 | predictions/7uy4/seed_2519/pred.model_idx_1.cif | 0.885 | 0.852 | True |
With confidences and references:
| ensemble | prediction | core_score | confidence | pb_valid | rmsd | lddt_pli |
|---|---|---|---|---|---|---|
| 7uy4 | predictions/7uy4/seed_2519/pred.model_idx_0.cif | 0.885 | 0.853 | True | 2.11 | 0.76 |
| 7uy4 | predictions/7uy4/seed_2519/pred.model_idx_1.cif | 0.885 | 0.852 | True | 2.11 | 0.77 |
These come from Chai-1's 25 predictions for 7UY4, and the examples folder has every input and output file for each case in full.
pb_valid is True when a prediction passes every PoseBusters dock check. A ligand present
in several copies is scored once per binding site, as <ensemble>_site_1,
<ensemble>_site_2 and so on. A note column appears when something could not be
calculated, saying why.
results/details/ holds the evidence behind both files.
| File | Contents |
|---|---|
pairs.csv |
The RMSD for every pair of predictions, the numbers CORE is built from. |
posebusters.json |
Every individual PoseBusters check for every prediction, so you can see why one failed. |
reference_details.json |
OpenStructure's full output against the reference, when you gave one. |
run.json |
The settings and package versions used. |
Two more appear only when needed: sites.json, saying how the copies of a ligand were
matched to binding sites, and failed_pairs.json, with OpenStructure's error for any pair
of predictions it could not compare.
Options
| Option | Meaning |
|---|---|
--workers N |
Run N OpenStructure comparisons at once (default 1). |
--plot |
Also plot the scores. Needs pip install "core-score[plot]". |
--skip-posebusters |
Do not run PoseBusters. |
--rmsd-thresholds 1 2 |
Calculate CORE at each threshold T in Å (default 2). |
--timeout SECONDS |
Time limit for each OpenStructure call. |
--no-radius-fallback |
Do not retry failed binding-site comparisons at 6 and 8 Å. |
Predicted structures can also be given directly, as one ensemble.
core-score predictions/*.cif --ligand "CCO" --out results/
Citing
- Broster JH, et al. Structural Agreement Indicates Prediction Accuracy For Protein-Ligand Co-Folding. Paper link coming.
CORE Score runs OpenStructure and PoseBusters, so please cite them too.
- Biasini M, et al. OpenStructure: an integrated software framework for computational structural biology. Acta Crystallographica D (2013).
- Robin X, et al. Assessment of protein–ligand complexes in CASP15. Proteins (2023).
- Buttenschoen M, Morris GM, Deane CM. PoseBusters: AI-based docking methods fail to generate physically valid poses or generalise to novel sequences. Chemical Science (2024).
Licence
BSD 3-Clause.
Metadata
Release files for core-score 0.5.1
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 |
|---|---|---|---|---|
| core_score-0.5.1.tar.gz | 45.1 kB | Without provenance | Details for core_score-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| core_score-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for core_score-0.5.1-py3-none-any.whl |
Total release size: 81.4 kB
Release files / core_score-0.5.1.tar.gz
| Download URL | core_score-0.5.1.tar.gz |
|---|---|
| Size | 45.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
915b3168f02d00d06b2348efd94088842fb5d043b03e792b9691fdf9d2632044
|
|
BLAKE2b-256 checksum How to use checksums |
a9ef5e39037b0f63e7c9f77cfff151bb446d7139b5835836c5d3622ad5f78424
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Release files / core_score-0.5.1-py3-none-any.whl
| Download URL | core_score-0.5.1-py3-none-any.whl |
|---|---|
| Size | 36.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f0545e7ba4b789262a344f2afb0a1efc3fe8fc4b2a80807c7b1f2b7ea5eba8c
|
|
BLAKE2b-256 checksum How to use checksums |
c94b91b61b69551fc6c7494d31a463ffb8818b97c8d621be6d32a49efa81fcf6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Security for core-score 0.5.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.