Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

po-sco

po-sco analyses a protein–ligand (or protein–protein) complex and lists, atom by atom, its hydrogen bonds, lipophilic contacts, π, halogen and metal contacts and salt bridges. It scores hydrogen bonds and lipophilic contacts with empirical pair terms, writes per-residue interaction fingerprints, and can add the solvent-accessible surface and buried polar sites. A Repulsion Gate flags poses with severe steric clashes or like-charge contacts. Results are Arrow tables and Feather files, and a PyMOL viewer draws them.

The scores are empirical descriptors, not binding free energies. Their sums are not experimental or computed free energies, and no parameter was calibrated against affinities.

Inputs are fully protonated structures with explicit hydrogens: the receptor is a PDB file, the ligand is a PDB file or an SD file / molfile (.sdf, .sd, .mol). po-sco validates the protonation and never changes it.

Status: alpha (2.2.0-alpha.3). The engine is C++20 with a Python package (posco). Wheels target Linux x86-64 and CPython 3.10 to 3.13; it is tested with CPython 3.12. The package is not on PyPI yet: build it from this repository (below).

Install

pip install .                 # builds the C++ engine; needs cmake, ninja and a C++20 compiler

The command-line program po-sco and the Python package come from the same sources. Build options and the tests: docs/development/building.md. Releasing: docs/development/release.md.

Quick start

po-sco receptor.pdb ligand.sdf                      # summary
po-sco --format json receptor.pdb ligand.pdb > result.json
import posco

result = posco.analyze("receptor.pdb", "ligand.sdf")
print(result.interactions.num_rows, result.scoring_model_id)   # a pyarrow.Table
result.to_feather("results/single")                            # one Feather V2 file per table
tables = posco.read_feather("results/single")

batch = posco.analyze_batch(pairs, on_error="collect")         # (receptor, ligand[, pose_id]) items

Every interaction record has its atoms, its measured geometry and, where defined, its score. Geometry that cannot be measured is null with an outcome column, never zero.

Command-line tools

Command Writes per complex
posco-features the Feather tables (one folder per complex, or one dataset for a --pairs CSV)
posco-pymol the Feather tables and a PyMOL viewer bundle (.iviz)
posco-session the Feather tables, the bundle and a saved PyMOL session (.pse)
posco-session receptor.pdb ligand.sdf -o out
posco-features --pairs complexes.csv -o out --workers 4

Details: docs/scripts.md. The PyMOL viewer is posco.pymol; see docs/pymol/installation.md.

What it computes

Topic Document
Interaction terms, criteria and sources docs/interactions.md
Output tables and the schema docs/feature_schema.md
Command line docs/cli.md
Python API docs/python_api.md
SD-file ligands docs/sdf_input.md
PDB input, topology, perception, geometry docs/pdb_input.md, docs/topology.md, docs/perception.md, docs/geometry.md
Fingerprints docs/fingerprints.md
Solvent accessibility and buried polar sites (opt-in) docs/biophysics_solvent.md, docs/polar_site_rules.md
Repulsion Gate (opt-in) docs/repulsion_gate.md
Validation docs/validation.md
Sources and DOIs docs/references.md
History of the modernization docs/project_history.md, CHANGELOG.md

Citation

If you use po-sco, please cite the preprint that describes the method:

Sellner MS, Lill MA, Smieško M. Quality Matters: Deep Learning-Based Analysis of Protein-Ligand Interactions with Focus on Avoiding Bias. bioRxiv 2023. doi: 10.1101/2023.11.13.566916

CITATION.cff holds the same reference. The lipophilic term, its weights and the fingerprint features follow that work; docs/interactions.md and docs/fingerprints.md state exactly where.

Key references for the interaction analysis

The criteria and parameters are documented with their sources in docs/references.md (DOIs checked there). The main ones:

  • Salentin S et al. PLIP: fully automated protein–ligand interaction profiler. Nucleic Acids Res 2015. 10.1093/nar/gkv315. Adasme MF et al. PLIP 2021. Nucleic Acids Res 2021, 49, W530. 10.1093/nar/gkab294. Geometric criteria for π stacking, cation–π, halogen bonds, metal coordination and salt bridges.
  • Bouysset C, Fiorucci S. ProLIF. J Cheminform 2021. 10.1186/s13321-021-00548-6. Independent interaction fingerprints (background).
  • Arunan E et al. Definition of the hydrogen bond (IUPAC 2011). Pure Appl Chem 83, 1637. 10.1351/PAC-REC-10-01-02. Desiraju GR et al. Definition of the halogen bond (IUPAC 2013). Pure Appl Chem 85, 1711. 10.1351/PAC-REC-12-05-10.
  • Vedani A. YETI. J Comput Chem 1988, 9, 269. 10.1002/jcc.540090310; Vedani A, Huhta DW. J Am Chem Soc 1990, 112, 4759. 10.1021/ja00168a021. The 12-10 hydrogen-bond form with cos² directionality and metal-site parameters (plausible origins, see docs/references.md).
  • Cordero B et al. Covalent radii revisited. Dalton Trans 2008, 2832. 10.1039/b801115j. Covalent radii for the bond topology.
  • Mitternacht S. FreeSASA. F1000Research 2016, 5:189. 10.12688/f1000research.7931.1. Independent oracle for the solvent-accessible surface.

Authors and license

Manuel S. Sellner and Martin Smieško (University of Basel). The original interaction-analysis programs are by Martin Smieško; Markus A. Lill is a co-author of the preprint. The package is maintained by Peter Rüthemann.

Released under the MIT License (LICENSE).

The po-sco 1.0 programs (interaction-analyzer and the v1.24 binary) are no longer part of this repository; they remain in its history up to tag v2.2.0-alpha.2 (docs/legacy_removed.md).

Metadata

Release files for posco 2.2.0a3

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

Source distribution (sdist)

Source distribution for posco 2.2.0a3
File Size Uploaded Provenance Actions
posco-2.2.0a3.tar.gz 4.0 MB Without provenance Details for posco-2.2.0a3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for posco 2.2.0a3
File Actions
posco-2.2.0a3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for posco-2.2.0a3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
posco-2.2.0a3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for posco-2.2.0a3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
posco-2.2.0a3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for posco-2.2.0a3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
posco-2.2.0a3-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for posco-2.2.0a3-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Total release size: 9.6 MB

Release files / posco-2.2.0a3.tar.gz

Download URL posco-2.2.0a3.tar.gz
Size 4.0 MB
Tags Source
SHA-256 checksum
How to use checksums
2ca436efa7efda06fba4c1e6353285ac176d3ccb0122fd069a67d8d8398e3fe4
BLAKE2b-256 checksum
How to use checksums
4ddc22a8ab8a03d655f91e48c5a5cdf9ace3e462e49592d481f2dc6c5000ea2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / posco-2.2.0a3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL posco-2.2.0a3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 1.4 MB
Tags CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
1bfb03386648d216ea0f177db335566704acdec730eec4858ecd5f42741a88be
BLAKE2b-256 checksum
How to use checksums
f94c52270b04c69c9783cba8bd83ecf0d8a7d4e6b349bfee681d063b6c4d79e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / posco-2.2.0a3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL posco-2.2.0a3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 1.4 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5eb05bac21dfd771f199a24e0ab673cede73718477728dca62131589bd09eaa7
BLAKE2b-256 checksum
How to use checksums
94519fe3533f3601480b05a925e7576aa39babe9c4efe63939f096931dd74381
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / posco-2.2.0a3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL posco-2.2.0a3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 1.4 MB
Tags CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
be7fac200ca571c196732308c84a9c9acd0b7f3ac8f73b4dd7c97ca79b81f53e
BLAKE2b-256 checksum
How to use checksums
648340ee0fed89317ec03aa5008237d9d99433e20fbf3b96945156517f10b8cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / posco-2.2.0a3-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL posco-2.2.0a3-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 1.4 MB
Tags CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
0cb268cec67d6c6e7b98fa838a66faf5ea2dcc9342a9f7795d54ce4e0135efbd
BLAKE2b-256 checksum
How to use checksums
25375990d62483666fd4b10edc7cf6b4ddd75b0de25784f5fc16e3267cdc1bca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for posco 2.2.0a3

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.

Release history Release notifications | RSS feed

This release
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