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

RDKIT molecule #166

Open
silviamenin opened this issue Feb 8, 2023 · 1 comment
Open

RDKIT molecule #166

silviamenin opened this issue Feb 8, 2023 · 1 comment

Comments

@silviamenin
Copy link

I'm currently working with fingerprints calculation in molecular dynamics trajectories.
To do this I need to convert protein and ligand in a pdb file for every single frame, and then reopen every file with oddt.toolkits.readfile(). It's a huge quantity of files and it's a very slow process, because every instance need to be opened 2 times.
I've tried to convert protein and ligand instances to rdkit molecule, but I'm not able to transform the rdkit_mol object to oddt_mol object.
How can I overcome this problem?
Thank you to those who will answer me.

@mwojcikowski
Copy link
Contributor

You can construct oddt molecule using rdkit's Chem.Mol object instance when initiating. https://github.com/oddt/oddt/blob/master/oddt/toolkits/rdk.py#L389.

from oddt.toolkits.rdk import Molecule

rdkit_mol = Chem.MolFromSmiles('CCC')
oddt_mol = Molecule(rdkit_mol)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants