We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8361481 commit c38b662Copy full SHA for c38b662
src/plinder/data/utils/annotations/save_utils.py
@@ -35,6 +35,8 @@ def save_ligands(
35
rdkit_mol = ligand_ost_ent_to_rdkit_mol(
36
ligand_ost, smiles, num_unresolved_heavy_atoms or 0
37
)
38
+ if rdkit_mol is None:
39
+ continue
40
rdkit_mol.SetProp("_Name", chain)
41
with Chem.SDWriter(str(Path(output_folder) / f"{chain}.sdf")) as w:
42
w.write(rdkit_mol)
0 commit comments