Skip to content

Commit

Permalink
building graphBuild, debugging ChemTools
Browse files Browse the repository at this point in the history
  • Loading branch information
n-beckage committed Mar 30, 2023
1 parent 04f53b0 commit 188b46a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChemToolsWd.py → ChemTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,12 @@ def nextGen(parent_smi):
parent_mol=Chem.MolFromSmiles(parent_smi)
# Not sure what this line does specifically, but it is necessary so that the function degree() returns the proper bond counts.
# JMR "kekulizing" means turning groups of aromatic bonds into alternating single and double bonds.
if parent_mol == None:
return None
Chem.rdmolops.Kekulize(parent_mol,clearAromaticFlags=True)



# Begin working through the molecular editing process - iterating through ATOMS
for i,atom in enumerate(parent_mol.GetAtoms()):
at_deg=degree(atom)
Expand Down
2 changes: 1 addition & 1 deletion graphBuild.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ChemToolsWd import *
from ChemTools import *

### define some chemical data

Expand Down

0 comments on commit 188b46a

Please sign in to comment.