- Notifications
You must be signed in to change notification settings - Fork0
haddocking/haddock-restraints-py
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This repository contains the bindings of thehaddock-restraints codeso that it can be used as a python library.
pip install haddock-restraintsfromhaddock_restraintsimportInteractor,Air# Define binding regionsbinding_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 regionsbinding_region_1.set_target(2)binding_region_2.set_target(1)# Set passive residues from active residuesbinding_region_1.set_passive_from_active()# Generate AIR tableair=Air(interactors=[binding_region_1,binding_region_2])tbl=air.gen_tbl()# Print the restraintsprint(tbl)
🚧 🚧 🚧
About
Python bindings for haddock-restraints
Resources
Uh oh!
There was an error while loading.Please reload this page.