Skip to main content

Python bindings for haddock-restraints

Project description

haddock-restraints-py

This repository contains the bindings of the haddock-restraints code so that it can be used as a python library.

pip install haddock-restraints
from haddock_restraints import Interactor, Air

# Define binding regions
binding_region_1 = Interactor(id=1, chain="A", active=[10, 11], passive=[])
binding_region_2 = Interactor(id=2, chain="B", active=[2, 22], passive=[])

# Define the relation between the regions
binding_region_1.set_target(2)
binding_region_2.set_target(1)

# Set passive residues from active residues
binding_region_1.set_passive_from_active()

# Generate AIR table
air = Air(interactors=[binding_region_1, binding_region_2])
tbl = air.gen_tbl()

# Print the restraints
print(tbl)

🚧 🚧 🚧

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

haddock_restraints-0.0.1.tar.gz (13.9 kB view details)

Uploaded Source

File details

Details for the file haddock_restraints-0.0.1.tar.gz.

File metadata

  • Download URL: haddock_restraints-0.0.1.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for haddock_restraints-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2e77fad750779342c03bec5e0cc27c446cd658ed78d51b77b03c6bffda71d02f
MD5 c357219218b66d50cbe8b73ca2afb201
BLAKE2b-256 6183fbbadb8db60123b12ba703ea1234472955e3ee75f899a05dd8b27be39256

See more details on using hashes here.

Provenance

The following attestation bundles were made for haddock_restraints-0.0.1.tar.gz:

Publisher: publish.yml on haddocking/haddock-restraints-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