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
Release history Release notifications | RSS feed
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)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e77fad750779342c03bec5e0cc27c446cd658ed78d51b77b03c6bffda71d02f
|
|
| MD5 |
c357219218b66d50cbe8b73ca2afb201
|
|
| BLAKE2b-256 |
6183fbbadb8db60123b12ba703ea1234472955e3ee75f899a05dd8b27be39256
|
Provenance
The following attestation bundles were made for haddock_restraints-0.0.1.tar.gz:
Publisher:
publish.yml on haddocking/haddock-restraints-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
haddock_restraints-0.0.1.tar.gz -
Subject digest:
2e77fad750779342c03bec5e0cc27c446cd658ed78d51b77b03c6bffda71d02f - Sigstore transparency entry: 579041197
- Sigstore integration time:
-
Permalink:
haddocking/haddock-restraints-py@2605a66ae7cce3aabdbb5692409e5d78fd2209fa -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/haddocking
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2605a66ae7cce3aabdbb5692409e5d78fd2209fa -
Trigger Event:
release
-
Statement type: