Hi,
Thanks for your Nice work.
I'm trying to build my own model with some ligands. However, no matter what kind of software I use(including chemdraw and Chem3D) to create smiles file, the valence error keep appears, and I don't know how to solve this problem, Please help me.
example molecule: O=C(Nc1cccc(CC(O)(C(=O)O)[C@H]2CCNC2)c1)Nc1cccc(CC(O)(C(=O)O)[C@H]2CCNC2)c1
Error message
Model training [15:51:11] Explicit valence for atom # 3 C, 5, is greater than permitted Traceback (most recent call last): File "molshap.py", line 163, in <module> molshap.train_onehot(ori_idx[train_idx], y_ori[train_idx]) File "/home/wsr/MolSHAP-master/model.py", line 51, in train_onehot list_mol = [makebond(item)[0] for item in self.list_frag_mol[ori_idx]] File "/home/wsr/MolSHAP-master/model.py", line 51, in <listcomp> list_mol = [makebond(item)[0] for item in self.list_frag_mol[ori_idx]] File "/home/wsr/MolSHAP-master/utils.py", line 145, in makebond newmol.UpdatePropertyCache() rdkit.Chem.rdchem.AtomValenceException: Explicit valence for atom # 3 C, 5, is greater than permitted
segmentation fault also appears.
Thanks!
Hi,
Thanks for your Nice work.
I'm trying to build my own model with some ligands. However, no matter what kind of software I use(including chemdraw and Chem3D) to create smiles file, the valence error keep appears, and I don't know how to solve this problem, Please help me.
example molecule: O=C(Nc1cccc(CC(O)(C(=O)O)[C@H]2CCNC2)c1)Nc1cccc(CC(O)(C(=O)O)[C@H]2CCNC2)c1
Error message
Model training [15:51:11] Explicit valence for atom # 3 C, 5, is greater than permitted Traceback (most recent call last): File "molshap.py", line 163, in <module> molshap.train_onehot(ori_idx[train_idx], y_ori[train_idx]) File "/home/wsr/MolSHAP-master/model.py", line 51, in train_onehot list_mol = [makebond(item)[0] for item in self.list_frag_mol[ori_idx]] File "/home/wsr/MolSHAP-master/model.py", line 51, in <listcomp> list_mol = [makebond(item)[0] for item in self.list_frag_mol[ori_idx]] File "/home/wsr/MolSHAP-master/utils.py", line 145, in makebond newmol.UpdatePropertyCache() rdkit.Chem.rdchem.AtomValenceException: Explicit valence for atom # 3 C, 5, is greater than permittedsegmentation fault also appears.
Thanks!