Skip to content

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

Description

@amir-tagh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions