Update app.py
Browse files
app.py
CHANGED
|
@@ -595,6 +595,21 @@ graph = builder.compile()
|
|
| 595 |
|
| 596 |
@spaces.GPU
|
| 597 |
def PropAgent(task, smiles, reference):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 598 |
|
| 599 |
#if Substitution_image.png exists, remove it
|
| 600 |
if os.path.exists('Substitution_image.png'):
|
|
|
|
| 595 |
|
| 596 |
@spaces.GPU
|
| 597 |
def PropAgent(task, smiles, reference):
|
| 598 |
+
'''
|
| 599 |
+
This agent can perform three tasks:
|
| 600 |
+
1. Find Lipinski (ADME) properties of a molecules from its SMILES string
|
| 601 |
+
2. Find the pharmacophore similarity between a molecule and a reference molecules from their SMILES strings.
|
| 602 |
+
3. Generate analogues of a molecule containing an aromatic ring from its SMILES string.
|
| 603 |
+
|
| 604 |
+
Args:
|
| 605 |
+
task: the specific task to perform
|
| 606 |
+
smiles: the smiles string for the molecule to be studied
|
| 607 |
+
reference: the smiles string for the reference molecule; only needed when calculating pharmacophore similarity.
|
| 608 |
+
should be None otherwise.
|
| 609 |
+
Returns:
|
| 610 |
+
replies[-1]: a text string with the requested information.
|
| 611 |
+
img: an image of the analogues generated, or a blank image.
|
| 612 |
+
'''
|
| 613 |
|
| 614 |
#if Substitution_image.png exists, remove it
|
| 615 |
if os.path.exists('Substitution_image.png'):
|