Skip to main content

CORE Score

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.

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.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for core-score 0.5.0
File Size Uploaded Provenance Actions
core_score-0.5.0.tar.gz 44.7 kB Without provenance Details for core_score-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for core-score 0.5.0
File Interpreter ABI Platform Actions
core_score-0.5.0-py3-none-any.whl Python 3 none any Details for core_score-0.5.0-py3-none-any.whl

Total release size: 81.6 kB

Release files / core_score-0.5.0.tar.gz

Download URL core_score-0.5.0.tar.gz
Size 44.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9ec88bbda2185c9b8ae6a92006cdea29c2868c3e6c28a42c98898e3833c13d1a
BLAKE2b-256 checksum
How to use checksums
c03547df4e70a5091e609bb3c8b632dd49276aa9911890772988558414fd2695
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.0-py3-none-any.whl

Download URL core_score-0.5.0-py3-none-any.whl
Size 36.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50db686c65915bf182ded7f961474e1c6f25a3c8bbd9c083f60a6201e1e7ddc9
BLAKE2b-256 checksum
How to use checksums
ad347704f3b36645ccfc8d634d1f590cfb69bb70db810e54d348f084ae81f1ea
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.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.

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page