Spaces:
Running
Running
jannisborn
commited on
Commit
•
a0a4d74
1
Parent(s):
26d9df4
update
Browse files
app.py
CHANGED
@@ -11,8 +11,27 @@ from utils import draw_grid_predict
|
|
11 |
logger = logging.getLogger(__name__)
|
12 |
logger.addHandler(logging.NullHandler())
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
REMOVE = ["docking", "docking_tdc", "molecule_one", "askcos", "plogp"]
|
15 |
REMOVE.extend(["similarity_seed", "activity_against_target", "organtox"])
|
|
|
16 |
|
17 |
MODEL_PROP_DESCRIPTION = {
|
18 |
"Tox21": "NR-AR, NR-AR-LBD, NR-AhR, NR-Aromatase, NR-ER, NR-ER-LBD, NR-PPAR-gamma, SR-ARE, SR-ATAD5, SR-HSE, SR-MMP, SR-p53",
|
@@ -59,6 +78,10 @@ if __name__ == "__main__":
|
|
59 |
properties.pop(prop_to_idx[prop])
|
60 |
properties = list(map(lambda x: x.capitalize(), properties))
|
61 |
|
|
|
|
|
|
|
|
|
62 |
# Load metadata
|
63 |
metadata_root = pathlib.Path(__file__).parent.joinpath("model_cards")
|
64 |
|
|
|
11 |
logger = logging.getLogger(__name__)
|
12 |
logger.addHandler(logging.NullHandler())
|
13 |
|
14 |
+
MOLFORMER_VERSIONS = {
|
15 |
+
"Molformer_classification": ["bace", "bbbp", "hiv"],
|
16 |
+
"Molformer_regression": [
|
17 |
+
"alpha",
|
18 |
+
"cv",
|
19 |
+
"g298",
|
20 |
+
"gap",
|
21 |
+
"h298",
|
22 |
+
"homo",
|
23 |
+
"lipo",
|
24 |
+
"lumo",
|
25 |
+
"mu",
|
26 |
+
"r2",
|
27 |
+
"u0",
|
28 |
+
],
|
29 |
+
"Molformer_multitask_classification": ["clintox", "sider", "tox21"],
|
30 |
+
}
|
31 |
+
|
32 |
REMOVE = ["docking", "docking_tdc", "molecule_one", "askcos", "plogp"]
|
33 |
REMOVE.extend(["similarity_seed", "activity_against_target", "organtox"])
|
34 |
+
REMOVE.extend(MOLFORMER_VERSIONS.keys())
|
35 |
|
36 |
MODEL_PROP_DESCRIPTION = {
|
37 |
"Tox21": "NR-AR, NR-AR-LBD, NR-AhR, NR-Aromatase, NR-ER, NR-ER-LBD, NR-PPAR-gamma, SR-ARE, SR-ATAD5, SR-HSE, SR-MMP, SR-p53",
|
|
|
78 |
properties.pop(prop_to_idx[prop])
|
79 |
properties = list(map(lambda x: x.capitalize(), properties))
|
80 |
|
81 |
+
# MolFormer options
|
82 |
+
for key in MOLFORMER_VERSIONS.keys():
|
83 |
+
properties.extend([f"{key} ({version})" for version in MOLFORMER_VERSIONS[key]])
|
84 |
+
|
85 |
# Load metadata
|
86 |
metadata_root = pathlib.Path(__file__).parent.joinpath("model_cards")
|
87 |
|