Skip to main content

Information-driven protein-protein docking using a genetic algorithm - Python bindings

Project description

gdock-py

Minimal Python bindings for gdock, an information-driven protein-protein docking engine using a genetic algorithm.

Installation

pip install gdock

Usage

import gdock

receptor_pdb = open("receptor.pdb").read()
ligand_pdb = open("ligand.pdb").read()

# Score a receptor-ligand complex
scores = gdock.score(receptor_pdb, ligand_pdb)
print(scores)  # {"vdw": ..., "elec": ..., "desolv": ..., "total": ...}

# Run the full GA docking pipeline
result = gdock.dock(
    receptor_pdb,
    ligand_pdb,
    restraints=[(10, 20), (15, 25)],  # (receptor_resseq, ligand_resseq) pairs
    max_generations=250,
    seed=42,
)
print(f"Generations run: {result['generationsRun']}")
print(f"Best fitness: {result['poses'][0]['fitness']}")
best_pdb = result["poses"][0]["pdb"]

API

score(receptor_pdb, ligand_pdb, w_vdw=0.4, w_elec=0.05, w_desolv=3.4) -> dict

Computes VDW, electrostatic and desolvation energy terms for a receptor-ligand pose. Returns {"vdw", "elec", "desolv", "total"}.

dock(receptor_pdb, ligand_pdb, restraints=None, max_generations=250, seed=42) -> dict

Runs the genetic algorithm docking pipeline and returns ranked poses:

{
  "generationsRun": int,
  "poses": [
    {"rank", "fitness", "vdw", "elec", "desolv", "air", "pdb"},
    ...
  ]
}

Development

uv venv --python 3.13 .venv
source .venv/bin/activate
uv pip install maturin pytest
maturin develop
pytest tests/

License

0BSD

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

gdock-0.1.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distributions

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

gdock-0.1.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (479.3 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

gdock-0.1.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (478.4 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.17+ x86-64

gdock-0.1.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (479.1 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

gdock-0.1.0-cp314-cp314-macosx_11_0_arm64.whl (403.0 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

gdock-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (478.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

gdock-0.1.0-cp313-cp313-macosx_11_0_arm64.whl (403.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

gdock-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (478.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

gdock-0.1.0-cp312-cp312-macosx_11_0_arm64.whl (403.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

gdock-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (479.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

gdock-0.1.0-cp311-cp311-macosx_11_0_arm64.whl (405.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

gdock-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (479.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

gdock-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (480.1 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

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

File metadata

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

File hashes

Hashes for gdock-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b60e3ec40ef7c271b831dcaa9f0fe1b9c373b71e8d302638078f74622fcd797f
MD5 3a0fa5a9aa3d86f62ba8ce8121e330b7
BLAKE2b-256 f7d25721ed6343ee1c787f613e73538ee8c6f91c85c178dcc183d47c544f6a2c

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on rvhonorato/gdock-py

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

File details

Details for the file gdock-0.1.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gdock-0.1.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9fd37fad7b5d0b7a73f41408c4932ba52af9ce4676ed129ab6134c13b1dd954f
MD5 24de652c02d1dba033d45e169b2b823c
BLAKE2b-256 956516a722ffc6b941d9b97d13e7af3271258a0aaeb024bc7780a4713ed7bcec

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdock-0.1.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on rvhonorato/gdock-py

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

File details

Details for the file gdock-0.1.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gdock-0.1.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 69a7db0c2e381bb1d5c4fbccbcc4311e46f871239cf3f6ed5a153b1c814c2b77
MD5 d8b5b00b98b4e43f1bdf56a99964f275
BLAKE2b-256 85b35aa63fd56937250a5ad1c7b7ca9ad5a657503a1b37a2e06c8ff6ec0992fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdock-0.1.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on rvhonorato/gdock-py

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

File details

Details for the file gdock-0.1.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gdock-0.1.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4ae1f5f00c77635d20dca31f2c10cc8d497d3c1852d1aee40a6687cf56cdc0b8
MD5 ff61428c2605c2247bcb6316b6be5140
BLAKE2b-256 f632698bf695ba3db7412a5e16314419320f9a6147d11b151c7872b8fa630489

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdock-0.1.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on rvhonorato/gdock-py

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

File details

Details for the file gdock-0.1.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gdock-0.1.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6fe6b8f4a73fdd42174ba89868ffd1410ee690d7d0d6e761e3cc4042a0f89f2c
MD5 17570296f5f9ed1a1d5a246d6de3afab
BLAKE2b-256 e8c346cf3836409f64f33156768284f21505cef9a8ede2a5214d7a92b75ff97f

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdock-0.1.0-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: publish.yml on rvhonorato/gdock-py

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

File details

Details for the file gdock-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gdock-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 62ea069b5bb22565beec8fbef9894bbb1a584c3a7dfb1667627cb1d10000bb97
MD5 616c495c4d397a3d9d77732eeee1511e
BLAKE2b-256 895f5b88b1f2b0459b98b749a0c428e29bf9c6e171398e8114c0419d3523d1b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdock-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on rvhonorato/gdock-py

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

File details

Details for the file gdock-0.1.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gdock-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 04f3c0194a035f25bae26df5194d1affce99aa63106e93f42d7bfa6d7821745f
MD5 531e7009df198a91f652dbba14c6ef98
BLAKE2b-256 efdc4375e520788cd5df03e4cc7ca79f99f06f92c076b732ac5b4e6f84e44f51

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdock-0.1.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: publish.yml on rvhonorato/gdock-py

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

File details

Details for the file gdock-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gdock-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 842004592f729d322984a0b68ec00d92ade82fda32d4a7de45bc15938c3b8e8b
MD5 17f0a6c8a2897b84fe763f782e758957
BLAKE2b-256 1b59866d21f334f2a94b136b1c8fd86d00653fcd6ce7ed02abac44b72c19b4b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdock-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on rvhonorato/gdock-py

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

File details

Details for the file gdock-0.1.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gdock-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f0eeb08e27a6387f549dc36662889eb49d2419c7cb2293d33e2cec9065f39653
MD5 31c4cc6f7026f3df8c068f4a232d828a
BLAKE2b-256 f343024239cbff1812c299923b232705361c08afe5fc3babf858fad1e99a828a

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdock-0.1.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: publish.yml on rvhonorato/gdock-py

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

File details

Details for the file gdock-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gdock-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8bbea667cb17eca1c85ebed41b6a189fd9ffa3a08de9398a19f385012862dfc2
MD5 5a748fe123d803ef07f8e78f70851783
BLAKE2b-256 2ad3e4955436ee02f5f3817623c78eb6e6d747d0dd7109f20db39a0efc983d15

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdock-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on rvhonorato/gdock-py

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

File details

Details for the file gdock-0.1.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gdock-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1b5efecd532354b22b194958ed667be445e3d05288aefe3a8734de25e0903218
MD5 3b286816b262d6d46e9cabbf75243f4a
BLAKE2b-256 52cb17cb380454bd6c1ee63b2443fc42a19c245e5857a3ecb366bd91aa5510bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdock-0.1.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: publish.yml on rvhonorato/gdock-py

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

File details

Details for the file gdock-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gdock-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 755935d54e6e592f984d4444309588ac1b08c95aaeb9532fe899e8dd5e9bcd63
MD5 b23850a35d8d942c1537ac44a87751b4
BLAKE2b-256 1f3bbc27541227e07fbb153af3fe8b6793d0d27be5cce3b4ef94a951563b2ad7

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdock-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on rvhonorato/gdock-py

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

File details

Details for the file gdock-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gdock-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 809b111c77bd828e3971ca50543cbe7b43d78d6b435303ac225314e8ee977593
MD5 87fef38d0711fdebb91bad923374b110
BLAKE2b-256 e1a12f586d15d82a13b8df5e53378cf3cbb38a99d7460484ce2ded4e9892e642

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdock-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on rvhonorato/gdock-py

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