Skip to main content

A reimplementation of the actifPTM score for assessing AlphaFold-Multimer interface confidence.

Project description

reactifptm

A reimplementation of the actifpTM score for assessing AlphaFold-Multimer interface confidence.

actifpTM is a variant of ipTM that restricts the per-residue alignment score to interface contacts only — pairs of residues whose Cβ–Cβ distance falls under a contact threshold. This focuses the score on the residues that actually mediate the predicted interaction.

Installation

pip install reactifptm

Or, from a clone:

git clone https://github.com/adamsimpkin/reactifptm
cd reactifptm
pip install -e .

Quickstart

Command line

reactifptm scores.json model.pdb -o results.json

scores.json is a PAE file (any of .json, .npz, .npy, or .pkl containing the predicted aligned error matrix). model.pdb is the corresponding predicted structure (.pdb or .cif).

Output:

reactifpTM: 0.951

pairwise reactifpTM (directional):
  A-B: 0.951
  B-A: 0.940

pairwise reactifpTM (max of both directions):
  A-B: 0.951

Python

from reactifptm import Reactifptm

r = Reactifptm("scores.json", "model.pdb")
overall, pairwise = r.compute_reactifptm()

print(overall)                       # global reactifpTM
print(pairwise)                      # {"A-B": 0.951, "B-A": 0.940}
print(r.reactifptm_pairwise_max)     # {"A-B": 0.951}

r.save_results("results.json")

Output

  • reactifptm — the global reactifpTM score, computed over interface contacts across the entire complex.
  • reactifptm_pairwise — directional pairwise scores. A-B is the best-aligned residue from chain A's perspective onto its partner; B-A is the same from chain B's side. Useful for diagnosing which side of an interface dominates the score.
  • reactifptm_pairwise_max — per unordered pair, the max of the two directional scores. This is what you'd typically compare against reference single-direction implementations.

Options

Flag Default Description
-t, --threshold 8.0 Cβ–Cβ contact threshold in Ångström
-o, --output Path to write JSON results

Development

pip install -e ".[dev]"
pytest

The test suite verifies reactifPTM values against reference actifptm fields shipped in tests/data/.

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reactifptm-0.1.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reactifptm-0.1.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file reactifptm-0.1.0.tar.gz.

File metadata

  • Download URL: reactifptm-0.1.0.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for reactifptm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9e3742820755aac7d1db66070bf51940cd4fe34ff62f23177d6f72cf26d4b6ac
MD5 9e1b99f75f058e337c014d79236cdeee
BLAKE2b-256 0a28c73fe3de7478f25708a9ebe2237fc8cb5505230f12b7166835a18e23e337

See more details on using hashes here.

File details

Details for the file reactifptm-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: reactifptm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for reactifptm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b7455a2b926c07284e27c5009e3c74047542b6598f0ce5a234c371ec1dfa980
MD5 4d6b926c08267c0c0a001872257b86cf
BLAKE2b-256 e08632b27e57b2002adcf75089e091c0e84b403201204746e7b422cfdf9b30e8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page