Skip to main content

Fast Rust reimplementation of the DockQ protein/nucleic-acid docking scorer, with a Python API

Project description

dockq-rs

Fast Rust reimplementation of the DockQ protein / nucleic-acid docking scorer, with a Python API. Same scores as DockQ v2.1.3 (validated to f32 precision against the reference), ~20–25× faster, with parallel batch scoring.

pip install dockq-rs

Usage

import dockq_rs

# single model vs native
r = dockq_rs.score("model.pdb", "native.pdb")
print(r["GlobalDockQ"], r["best_mapping_str"])

# rank many models against one native (parallel in Rust)
outcomes = dockq_rs.score_one_vs_many("native.pdb", ["m1.pdb", "m2.pdb", "m3.pdb"])

# arbitrary (model, native) pairs (parallel)
outcomes = dockq_rs.score_pairs([("m1.pdb", "n1.pdb"), ("m2.pdb", "n2.pdb")])

Migrating from DockQ

The function-level API mirrors the reference. Change:

from DockQ.DockQ import load_PDB, run_on_all_native_interfaces

to:

from dockq_rs import load_PDB, run_on_all_native_interfaces

load_PDB(path, chains=[], small_molecule=False, n_model=0) and run_on_all_native_interfaces(model, native, chain_map=..., no_align=False, capri_peptide=False) keep the same arguments and return shapes — the per-interface dict has the same keys (DockQ, F1, iRMSD, LRMSD, fnat, fnonnat, nat_correct, nat_total, nonnat_count, model_total, clashes, len1, len2, class1, class2, chain1, chain2).

Scope

Protein and nucleic-acid scoring, all mapping modes, capri_peptide, no_align, allowed_mismatches. Small-molecule (HETATM) symmetry-corrected scoring is not implemented in this build and raises a clear error (no silent fallback).

Links

Source, standalone CLI, benchmarks, and correctness details: https://github.com/aarteixeira/dockq-rs. MIT licensed.

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

dockq_rs-0.1.0.tar.gz (501.7 kB view details)

Uploaded Source

Built Distributions

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

dockq_rs-0.1.0-cp38-abi3-win_amd64.whl (362.6 kB view details)

Uploaded CPython 3.8+Windows x86-64

dockq_rs-0.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (495.9 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

dockq_rs-0.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (492.7 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

dockq_rs-0.1.0-cp38-abi3-macosx_11_0_arm64.whl (448.5 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

dockq_rs-0.1.0-cp38-abi3-macosx_10_12_x86_64.whl (451.6 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: dockq_rs-0.1.0.tar.gz
  • Upload date:
  • Size: 501.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dockq_rs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ae1ff6e2467a678c5e7dd5c47cede361453b9e28f8fdb0c339dbc8781cc9cae5
MD5 1915abd12b700282e120634d5fc53d3c
BLAKE2b-256 7ad414e12458a09846d1690e5f052bbe91f96181e4299c5aaddeaf4dc372a2bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for dockq_rs-0.1.0.tar.gz:

Publisher: release.yml on aarteixeira/dockq-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dockq_rs-0.1.0-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: dockq_rs-0.1.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 362.6 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dockq_rs-0.1.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a09aa4b26366804633cfa09410e0a21915487d076a5c65b8839ab36451fc0128
MD5 547fc77d3b9c4a7cbae61ab47f8a19bb
BLAKE2b-256 3cb296ad06911613444935778c3607663a7be5e8e27f268652cc844e567ad854

See more details on using hashes here.

Provenance

The following attestation bundles were made for dockq_rs-0.1.0-cp38-abi3-win_amd64.whl:

Publisher: release.yml on aarteixeira/dockq-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dockq_rs-0.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dockq_rs-0.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0b1bf122de90f493704164655ffc3cc4ea3cf785dfc1e4aa0c3fa30fd89a580b
MD5 f20aa7d3f0d4d53ec21ab3e6c6d173bd
BLAKE2b-256 5710708d773e991caee0781a2250ec037e66790dd67c5982f94b7cee1f87cd50

See more details on using hashes here.

Provenance

The following attestation bundles were made for dockq_rs-0.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on aarteixeira/dockq-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dockq_rs-0.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dockq_rs-0.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 088c21b74c010363e40de7de78d77dd0f5edd084015d87636ab4635744bcdd2e
MD5 0534a1caf7c0d89fc0e433def2fd682e
BLAKE2b-256 9d9c293079900f302fca42da27d94fa8e9f80814bcb9161d614d885a3cec97aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for dockq_rs-0.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on aarteixeira/dockq-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dockq_rs-0.1.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dockq_rs-0.1.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9c6d1895ac106ea36f40487051f14eeeb733ecf5c50bfd9bd77eaa4d62578ce5
MD5 ddd3b1448d8ba9da43d38c8693789b18
BLAKE2b-256 f5d2e8ffdd416ade40a0db0c148a6da75cfce7654f9ecb5f30daac6340698442

See more details on using hashes here.

Provenance

The following attestation bundles were made for dockq_rs-0.1.0-cp38-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on aarteixeira/dockq-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dockq_rs-0.1.0-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dockq_rs-0.1.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d20043046adfd2dfbb7b38a02b515ec6ed07e7142783aaf230a481936031b836
MD5 502411584ac0eae60ed52d43a6f7adec
BLAKE2b-256 4b5c9e21124f63dba766551210d8ad747e164495dd1e8e5f9db9640ddab893bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for dockq_rs-0.1.0-cp38-abi3-macosx_10_12_x86_64.whl:

Publisher: release.yml on aarteixeira/dockq-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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