-
Notifications
You must be signed in to change notification settings - Fork 115
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
Calculating PLEC by bypassing completely OpenBabel #155
Comments
Hi Thomas, In oddt we have created additional module for such operations in RDKit in from oddt.toolkits.extras.rdkit.fixer import ExtractPocketAndLigand
mol = Chem.MolFromPDBFile("complex_forscoring_frm.1.min.pdb", sanitize=False)
pocket, ligand = ExtractPocketAndLigand(mol, cutoff=12., ligand_residue='LIG') Pocket and ligand are still oddt_pocket = oddt.toolkit.Molecule(pocket) If you wish to get wole protein you can set high cutoff. oddt/oddt/toolkits/extras/rdkit/fixer.py Lines 166 to 196 in 8cf5558
|
Hi Maciek, I wrote the following function in line with your suggestion, but I get an error.
The input PDB file is this complex_forscoring_frm.1.min.pdb.gz and the error I get is the following:
Do I need to upgrade RDKit or is it due to something else? |
@tevang It looks like you need to sanitize the molecule first. Or at least generate rings with |
@mwojcikowski I use the following workaround that - at least seemingly - does not require sanitization or ring generation. Does it produce correct PLEC fingerprints?
|
@mwojcikowski essentially my query is whether I am getting correct PLEC vectors without sanitizing the ligands or generating rings with FastFindRings() as you stated. Otherwise, it works. |
@tevang I would say that sanitization is highly recommended. That said being consistent is the key for most use cases, so you might get away with it. Keep in mind that the input is also important (e.g. kekulization), that is why sanitization helps normalising the data. |
Hi Maciek,
I want to create PLEC vectors without using OpenBabel at all. The first step is to load the receptor and ligand files, which by convenience I have them in a single PDB file. So according to your explanation on RDKit's mailing list, I extract the ligand's Mol like this:
How can I extract the receptor's Mol object (everything but 'LIG' residue)? Is there a command to fuse all these individual RDKit Mol objects and reconstruct an intact receptor Mol object?
Thanks in advance.
Thomas
The text was updated successfully, but these errors were encountered: