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

QED error Explicit valence for atom # 2 N, 5, is greater than permitted #1

Open
amir-tagh opened this issue Nov 28, 2021 · 2 comments

Comments

@amir-tagh
Copy link

Hello,

I am using qed and rdkit to calculate the QED value for a set of SMILES. It seems there is a problem with some of the SMILES and calculations stop when encountering the problematic SMILES. Is there any way to continue the calculations and ignore the problematic SMILES?

Here is the code:

from qed import qed
from rdkit import Chem
import sys

for line in lines_1:
mol = Chem.MolFromSmiles(line)
#RDLogger.DisableLog('rdApp.*')
p = qed.properties(mol)

error message: Explicit valence for atom # 2 N, 5, is greater than permitted

I have 500k SMILES and calculations stop at 93395.

Thanks in forward.
Best,
Amir

@hansdewinter
Copy link
Collaborator

hansdewinter commented Nov 29, 2021 via email

@amir-tagh
Copy link
Author

amir-tagh commented Nov 29, 2021 via email

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