app.py
CHANGED
@@ -17,6 +17,7 @@ from dcmnet.modules import MessagePassingModel
|
|
17 |
|
18 |
from rdkit import Chem
|
19 |
from rdkit.Chem import AllChem
|
|
|
20 |
|
21 |
def get_grid_points(coordinates):
|
22 |
"""
|
@@ -58,7 +59,7 @@ for i, atom in enumerate(smiles_mol.GetAtoms()):
|
|
58 |
# For each atom, set the property "molAtomMapNumber" to a custom number, let's say, the index of the atom in the molecule
|
59 |
atom.SetProp("atomNote", str(atom.GetIdx()))
|
60 |
|
61 |
-
smiles_image =
|
62 |
|
63 |
# display molecule
|
64 |
st.image(smiles_image)
|
|
|
17 |
|
18 |
from rdkit import Chem
|
19 |
from rdkit.Chem import AllChem
|
20 |
+
from rdkit.Chem import Draw
|
21 |
|
22 |
def get_grid_points(coordinates):
|
23 |
"""
|
|
|
59 |
# For each atom, set the property "molAtomMapNumber" to a custom number, let's say, the index of the atom in the molecule
|
60 |
atom.SetProp("atomNote", str(atom.GetIdx()))
|
61 |
|
62 |
+
smiles_image = Draw.MolToImage(smiles_mol)
|
63 |
|
64 |
# display molecule
|
65 |
st.image(smiles_image)
|