You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm struggling to find a way with the ampal module to get all H-bonds (Sidechain-Sidechain, Sidechain-Mainchain, etc) and Knobs into Holes, given a PDB.
With previous isambard versions I used to do something like:
import isambard_dev
# Passed a PDB which already includes hydrogens
p = isambard_dev.ampal.convert_pdb_to_ampal(pdb_path)
hbonds = isambard_dev.interactions.find_hydrogen_bonds(p)
# Find all H-bonds and select those between sidechain atoms
sc_hbonds = [hb forhbin hbonds if hb.is_sidechain_sidechain == True]
# Get donor/acceptor info
hb = sc_hbonds[0]
donor_H = [hb.donor.ampal_parent.id , hb.donor.res_label]
acceptor_O = [hb.acceptor.ampal_parent.id , hb.acceptor.res_label]
and
kihs = isambard_dev.add_ons.knobs_into_holes.find_kihs(p)
# Get KIH info
kih = kihs[0]
knob_data = kih.knob.unique_id
hole_data = [kih.hole[x].unique_id forxin range(len(kih.hole))]
I would appreciate any help so that I can upgrade my code to Isambard2.
Cheers,
Broncio
The text was updated successfully, but these errors were encountered:
Hi,
I'm struggling to find a way with the
ampal
module to get all H-bonds (Sidechain-Sidechain, Sidechain-Mainchain, etc) and Knobs into Holes, given a PDB.With previous
isambard
versions I used to do something like:and
I would appreciate any help so that I can upgrade my code to Isambard2.
Cheers,
Broncio
The text was updated successfully, but these errors were encountered: