Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finding H-bonds and KIHs with Isambard2 #13

Open
broncio123 opened this issue Sep 1, 2018 · 1 comment
Open

Finding H-bonds and KIHs with Isambard2 #13

broncio123 opened this issue Sep 1, 2018 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@broncio123
Copy link

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:

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 for hb in 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 for x in range(len(kih.hole))]

I would appreciate any help so that I can upgrade my code to Isambard2.

Cheers,
Broncio

@kls93
Copy link
Contributor

kls93 commented Sep 5, 2018

This functionality is in isambard_dev but not isambard v2 - I'll see if it's possible to port the find_hydrogen_bonds function across.

Thanks,
Kathryn

@ChrisWellsWood ChrisWellsWood added the enhancement New feature or request label Sep 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants