robert 2.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- robert/__init__.py +9 -0
- robert/__main__.py +20 -0
- robert/_version.py +3 -0
- robert/api.py +646 -0
- robert/aqme.py +280 -0
- robert/argument_parser.py +98 -0
- robert/checkml.py +433 -0
- robert/checkml_score.py +50 -0
- robert/curate.py +217 -0
- robert/evaluate_bot_retrieval.py +125 -0
- robert/evaluate_bot_support.py +102 -0
- robert/evaluate_workflow_summaries.py +87 -0
- robert/export_bot_docs_knowledge.py +1632 -0
- robert/generate.py +249 -0
- robert/generate_utils.py +311 -0
- robert/gui_easyrob/__init__.py +0 -0
- robert/gui_easyrob/assets/gif_easyrob.gif +0 -0
- robert/gui_easyrob/bot/__init__.py +47 -0
- robert/gui_easyrob/bot/answer_metadata.py +198 -0
- robert/gui_easyrob/bot/bot_context.py +679 -0
- robert/gui_easyrob/bot/bot_engine.py +1100 -0
- robert/gui_easyrob/bot/bot_panel.py +1231 -0
- robert/gui_easyrob/bot/bot_rag.py +1178 -0
- robert/gui_easyrob/bot/bot_window.py +39 -0
- robert/gui_easyrob/bot/bot_worker.py +149 -0
- robert/gui_easyrob/bot/credential_store.py +143 -0
- robert/gui_easyrob/bot/error_parser.py +105 -0
- robert/gui_easyrob/bot/evidence_policy.py +164 -0
- robert/gui_easyrob/bot/heuristics.py +859 -0
- robert/gui_easyrob/bot/icons.py +56 -0
- robert/gui_easyrob/bot/input_csv_audit.py +212 -0
- robert/gui_easyrob/bot/knowledge/aqme_context.json +5907 -0
- robert/gui_easyrob/bot/knowledge/robert_context.json +4817 -0
- robert/gui_easyrob/bot/knowledge/ui_context.json +8293 -0
- robert/gui_easyrob/bot/knowledge_schema.py +1252 -0
- robert/gui_easyrob/bot/knowledge_sources/aqme_user_guidance.json +442 -0
- robert/gui_easyrob/bot/knowledge_sources/coverage_manifest.json +95 -0
- robert/gui_easyrob/bot/knowledge_sources/robert_user_guidance.json +471 -0
- robert/gui_easyrob/bot/knowledge_sources/ui_user_guidance.json +1312 -0
- robert/gui_easyrob/bot/llm_providers.py +1573 -0
- robert/gui_easyrob/bot/online_docs.py +105 -0
- robert/gui_easyrob/bot/prompt_policy.py +575 -0
- robert/gui_easyrob/bot/question_intent.py +562 -0
- robert/gui_easyrob/bot/response_quality.py +104 -0
- robert/gui_easyrob/bot/result_insights.py +225 -0
- robert/gui_easyrob/bot/token_usage.py +75 -0
- robert/gui_easyrob/bot/workflow_results.py +1396 -0
- robert/gui_easyrob/checkml_launcher.py +15 -0
- robert/gui_easyrob/easyrob.py +29 -0
- robert/gui_easyrob/easyrob_launcher.py +113 -0
- robert/gui_easyrob/main/__init__.py +9 -0
- robert/gui_easyrob/main/window.py +5152 -0
- robert/gui_easyrob/result_navigation.py +14 -0
- robert/gui_easyrob/tabs/__init__.py +23 -0
- robert/gui_easyrob/tabs/advanced_options.py +370 -0
- robert/gui_easyrob/tabs/aqme.py +1234 -0
- robert/gui_easyrob/tabs/checkml.py +898 -0
- robert/gui_easyrob/tabs/images.py +427 -0
- robert/gui_easyrob/tabs/interactive_predictions.py +555 -0
- robert/gui_easyrob/tabs/molssi.py +447 -0
- robert/gui_easyrob/tabs/predictions.py +484 -0
- robert/gui_easyrob/tabs/result_catalog.py +170 -0
- robert/gui_easyrob/tabs/results.py +490 -0
- robert/gui_easyrob/tabs/results_workspace.py +120 -0
- robert/gui_easyrob/test_bot_input_csv_audit.py +152 -0
- robert/gui_easyrob/test_bot_question_routing.py +383 -0
- robert/gui_easyrob/test_bot_result_analysis.py +356 -0
- robert/gui_easyrob/test_bot_retrieval_evaluation.py +110 -0
- robert/gui_easyrob/test_bot_ui_integration.py +278 -0
- robert/gui_easyrob/test_checkml_app_mode.py +124 -0
- robert/gui_easyrob/test_checkml_completion.py +57 -0
- robert/gui_easyrob/test_checkml_defaults.py +37 -0
- robert/gui_easyrob/test_checkml_result_summary.py +113 -0
- robert/gui_easyrob/test_checkml_web_mode.py +57 -0
- robert/gui_easyrob/test_dialog_layout.py +33 -0
- robert/gui_easyrob/test_gui_bot_regressions.py +320 -0
- robert/gui_easyrob/test_molssi_auto.py +569 -0
- robert/gui_easyrob/test_tutorial_view.py +215 -0
- robert/gui_easyrob/tutorials/check_model.md +25 -0
- robert/gui_easyrob/tutorials/chemdraw.md +49 -0
- robert/gui_easyrob/tutorials/csv.md +53 -0
- robert/gui_easyrob/tutorials/descriptors.md +21 -0
- robert/gui_easyrob/tutorials/overview.md +65 -0
- robert/gui_easyrob/tutorials/predictions.md +25 -0
- robert/gui_easyrob/tutorials/robbot.md +29 -0
- robert/gui_easyrob/tutorials/tutorial_images/check_model/check_model_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/check_model/check_model_2.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/check_model/check_model_3.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/check_model/check_model_4.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/check_model/check_model_5.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/check_model/check_model_6.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/check_model/check_model_7.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_10.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_11.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_12.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_13.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_2.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_3.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_4.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_5.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_6.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_7.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_8.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_9.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_1_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_1_2.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_1_3.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_1_4.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_1_5.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_2.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_3.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_4.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_5.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_6.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_7.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_8.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_9.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/descriptors/descriptors_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/descriptors/descriptors_2.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/descriptors/descriptors_3.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/descriptors/descriptors_4.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/descriptors/descriptors_5.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/descriptors/descriptors_6.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_2.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_3.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_4.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_5.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_6.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_7.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_8.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_2.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_3.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_4.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_5.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_5_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_5_2.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_5_3.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_6.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/predictions/predictions_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/predictions/predictions_1_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/predictions/predictions_2.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/predictions/predictions_3.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/predictions/predictions_4.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/predictions/predictions_5.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/predictions/predictions_6.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_2.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_3.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_4.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_5.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_6.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_7.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_8.png +0 -0
- robert/gui_easyrob/utils/__init__.py +0 -0
- robert/gui_easyrob/utils/aqme_utils.py +238 -0
- robert/gui_easyrob/utils/molssi_utils.py +584 -0
- robert/gui_easyrob/utils/predictions_utils.py +985 -0
- robert/gui_easyrob/utils/utils_gui.py +738 -0
- robert/gui_easyrob/version.py +68 -0
- robert/gui_easyrob/web/app.css +484 -0
- robert/gui_easyrob/web/app.html +134 -0
- robert/gui_easyrob/web/app.js +764 -0
- robert/gui_easyrob/web/checkml_brand.png +0 -0
- robert/gui_easyrob/web/easyrob_background.gif +0 -0
- robert/gui_easyrob/web/easyrob_background.png +0 -0
- robert/gui_easyrob/web/images.css +89 -0
- robert/gui_easyrob/web/images.html +39 -0
- robert/gui_easyrob/web/images.js +101 -0
- robert/gui_easyrob/web/results.js +499 -0
- robert/gui_easyrob/web/robert_brand.png +0 -0
- robert/gui_easyrob/web_dialogs.py +64 -0
- robert/gui_easyrob/web_results.py +253 -0
- robert/gui_easyrob/web_shell.py +684 -0
- robert/gui_easyrob/workflow_progress.py +89 -0
- robert/gui_easyrob/workflow_run_lock.py +27 -0
- robert/icons/CheckML_icon.png +0 -0
- robert/icons/Robert_icon.png +0 -0
- robert/icons/Robert_logo.jpg +0 -0
- robert/icons/Robert_logo_transparent.png +0 -0
- robert/icons/documentation_icon.png +0 -0
- robert/icons/info_icon.png +0 -0
- robert/icons/pdf_icon.png +0 -0
- robert/icons/play_icon.png +0 -0
- robert/icons/stop_icon.png +0 -0
- robert/icons/youtube_icon.ico +0 -0
- robert/predict.py +193 -0
- robert/predict_utils.py +410 -0
- robert/report/CheckML_logo.jpg +0 -0
- robert/report/GENERATE.png +0 -0
- robert/report/Robert_icon.ico +0 -0
- robert/report/Robert_logo.jpg +0 -0
- robert/report/Robert_logo1.jpg +0 -0
- robert/report/abbrev.png +0 -0
- robert/report/adv_anal.png +0 -0
- robert/report/checkml_pass.svg +3 -0
- robert/report/checkml_unclear.svg +3 -0
- robert/report/checkml_warning.svg +3 -0
- robert/report/features.png +0 -0
- robert/report/outliers.png +0 -0
- robert/report/pred.png +0 -0
- robert/report/repro.png +0 -0
- robert/report/robust_x.png +0 -0
- robert/report/robust_y_high.png +0 -0
- robert/report/robust_y_low.png +0 -0
- robert/report/score.png +0 -0
- robert/report/score_0.jpg +0 -0
- robert/report/score_1.jpg +0 -0
- robert/report/score_10.jpg +0 -0
- robert/report/score_2.jpg +0 -0
- robert/report/score_3.jpg +0 -0
- robert/report/score_4.jpg +0 -0
- robert/report/score_5.jpg +0 -0
- robert/report/score_6.jpg +0 -0
- robert/report/score_7.jpg +0 -0
- robert/report/score_8.jpg +0 -0
- robert/report/score_9.jpg +0 -0
- robert/report/score_gray_0.jpg +0 -0
- robert/report/score_gray_1.jpg +0 -0
- robert/report/score_gray_10.jpg +0 -0
- robert/report/score_gray_2.jpg +0 -0
- robert/report/score_gray_3.jpg +0 -0
- robert/report/score_gray_4.jpg +0 -0
- robert/report/score_gray_5.jpg +0 -0
- robert/report/score_gray_6.jpg +0 -0
- robert/report/score_gray_7.jpg +0 -0
- robert/report/score_gray_8.jpg +0 -0
- robert/report/score_gray_9.jpg +0 -0
- robert/report/score_w_1_0.jpg +0 -0
- robert/report/score_w_1_1.jpg +0 -0
- robert/report/score_w_2_0.jpg +0 -0
- robert/report/score_w_2_1.jpg +0 -0
- robert/report/score_w_2_2.jpg +0 -0
- robert/report/score_w_2_gray_0.jpg +0 -0
- robert/report/score_w_2_gray_1.jpg +0 -0
- robert/report/score_w_2_gray_2.jpg +0 -0
- robert/report/score_w_3_0.jpg +0 -0
- robert/report/score_w_3_1.jpg +0 -0
- robert/report/score_w_3_2.jpg +0 -0
- robert/report/score_w_3_3.jpg +0 -0
- robert/report/score_w_4_0.jpg +0 -0
- robert/report/score_w_4_1.JPG +0 -0
- robert/report/score_w_4_2.jpg +0 -0
- robert/report/score_w_4_3.jpg +0 -0
- robert/report/score_w_4_4.jpg +0 -0
- robert/report/transpa.png +0 -0
- robert/report/y_distrib.png +0 -0
- robert/report.py +2880 -0
- robert/report_utils.py +2270 -0
- robert/robert.py +181 -0
- robert/utils.py +4763 -0
- robert/verify.py +606 -0
- robert-2.2.0.dist-info/METADATA +55 -0
- robert-2.2.0.dist-info/RECORD +261 -0
- robert-2.2.0.dist-info/WHEEL +5 -0
- robert-2.2.0.dist-info/entry_points.txt +3 -0
- robert-2.2.0.dist-info/licenses/LICENSE +21 -0
- robert-2.2.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
"""Browser checks for readable tutorial images in the web workspace."""
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
import time
|
|
5
|
+
import json
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
import pytest
|
|
9
|
+
from PySide6.QtCore import QUrl, QUrlQuery
|
|
10
|
+
from PySide6.QtWidgets import QApplication
|
|
11
|
+
from PySide6.QtWebEngineWidgets import QWebEngineView
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
os.environ.setdefault("QT_QPA_PLATFORM", "offscreen")
|
|
15
|
+
os.environ.setdefault("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-gpu --no-sandbox")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def _wait_for(app, predicate, timeout=15):
|
|
19
|
+
deadline = time.monotonic() + timeout
|
|
20
|
+
while time.monotonic() < deadline:
|
|
21
|
+
app.processEvents()
|
|
22
|
+
if predicate():
|
|
23
|
+
return True
|
|
24
|
+
time.sleep(0.02)
|
|
25
|
+
return False
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def _evaluate(page, script, app):
|
|
29
|
+
values = []
|
|
30
|
+
page.runJavaScript(script, values.append)
|
|
31
|
+
assert _wait_for(app, lambda: bool(values))
|
|
32
|
+
return values[0]
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
@pytest.fixture(scope="module")
|
|
36
|
+
def tutorial_page():
|
|
37
|
+
app = QApplication.instance() or QApplication([])
|
|
38
|
+
view = QWebEngineView()
|
|
39
|
+
view.resize(1180, 790)
|
|
40
|
+
view.show()
|
|
41
|
+
loaded = []
|
|
42
|
+
view.loadFinished.connect(loaded.append)
|
|
43
|
+
source = Path(__file__).resolve().parent / "web" / "app.html"
|
|
44
|
+
view.setUrl(QUrl.fromLocalFile(str(source)))
|
|
45
|
+
assert _wait_for(app, lambda: bool(loaded))
|
|
46
|
+
assert loaded == [True]
|
|
47
|
+
page = view.page()
|
|
48
|
+
_evaluate(page, "window.easyrobApp.openDrawer('tutorial'); "
|
|
49
|
+
"document.getElementById('tutorial-image').src = "
|
|
50
|
+
"'../tutorials/tutorial_images/overview/overview_1.png'; true", app)
|
|
51
|
+
assert _wait_for(app, lambda: _evaluate(page, "document.getElementById('tutorial-image').naturalWidth", app) == 1160)
|
|
52
|
+
yield app, view, page
|
|
53
|
+
view.close()
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def test_tutorial_image_is_readable_without_opening_zoom(tutorial_page):
|
|
57
|
+
app, view, page = tutorial_page
|
|
58
|
+
tutorial_text = (Path(__file__).resolve().parent / "tutorials" / "overview.md").read_text(encoding="utf-8").split("---")[4].strip()
|
|
59
|
+
_evaluate(page, "document.getElementById('tutorial-copy').innerHTML = " + json.dumps(tutorial_text) + "; "
|
|
60
|
+
"document.getElementById('tutorial-title').textContent = 'Overview'; "
|
|
61
|
+
"document.getElementById('tutorial-count').textContent = '17 STEPS'; "
|
|
62
|
+
"document.getElementById('tutorial-position').textContent = '5 / 17'; "
|
|
63
|
+
"document.getElementById('tutorial-topics').innerHTML = "
|
|
64
|
+
"['Overview', 'From CSV', 'From ChemDraw', 'New Predictions', 'Generate Descriptors', 'Check ML', 'robBOT']"
|
|
65
|
+
".map(label => `<button class='tutorial-topic'>${label}</button>`).join(''); true", app)
|
|
66
|
+
|
|
67
|
+
def geometry():
|
|
68
|
+
return json.loads(_evaluate(page, "JSON.stringify((() => {"
|
|
69
|
+
"const drawer = document.getElementById('tutorial-drawer');"
|
|
70
|
+
"const image = document.getElementById('tutorial-image');"
|
|
71
|
+
"const copy = document.getElementById('tutorial-copy');"
|
|
72
|
+
"const visual = document.querySelector('.tutorial-visual');"
|
|
73
|
+
"const navigation = document.querySelector('.tutorial-navigation');"
|
|
74
|
+
"const bounds = drawer.getBoundingClientRect();"
|
|
75
|
+
"return {drawer: bounds.width, drawerHeight: bounds.height,"
|
|
76
|
+
"scrollHeight: drawer.scrollHeight, clientHeight: drawer.clientHeight,"
|
|
77
|
+
"image: image.getBoundingClientRect().width,"
|
|
78
|
+
"height: image.getBoundingClientRect().height,"
|
|
79
|
+
"copyBottom: copy.getBoundingClientRect().bottom,"
|
|
80
|
+
"visualTop: visual.getBoundingClientRect().top,"
|
|
81
|
+
"visualBottom: visual.getBoundingClientRect().bottom,"
|
|
82
|
+
"navigationTop: navigation.getBoundingClientRect().top,"
|
|
83
|
+
"navigationBottom: navigation.getBoundingClientRect().bottom,"
|
|
84
|
+
"drawerBottom: bounds.bottom};})())", app))
|
|
85
|
+
|
|
86
|
+
wide = geometry()
|
|
87
|
+
assert 1000 <= wide["drawer"] <= 1100
|
|
88
|
+
assert wide["drawerHeight"] <= 740
|
|
89
|
+
assert wide["image"] >= 700
|
|
90
|
+
assert wide["height"] >= 250
|
|
91
|
+
assert wide["scrollHeight"] <= wide["clientHeight"] + 1
|
|
92
|
+
assert wide["navigationBottom"] <= wide["drawerBottom"]
|
|
93
|
+
assert wide["copyBottom"] <= wide["visualTop"] < wide["visualBottom"] <= wide["navigationTop"]
|
|
94
|
+
view.resize(800, 700)
|
|
95
|
+
assert _wait_for(app, lambda: _evaluate(page, "innerWidth", app) == 800)
|
|
96
|
+
narrow = geometry()
|
|
97
|
+
assert narrow["drawer"] <= 800
|
|
98
|
+
assert narrow["image"] >= 550
|
|
99
|
+
assert narrow["height"] >= 180
|
|
100
|
+
assert narrow["scrollHeight"] <= narrow["clientHeight"] + 1
|
|
101
|
+
assert narrow["navigationBottom"] <= narrow["drawerBottom"]
|
|
102
|
+
assert narrow["copyBottom"] <= narrow["visualTop"] < narrow["visualBottom"] <= narrow["navigationTop"]
|
|
103
|
+
|
|
104
|
+
view.resize(850, 600)
|
|
105
|
+
assert _wait_for(app, lambda: _evaluate(page, "innerWidth === 850 && innerHeight === 600", app))
|
|
106
|
+
compact = geometry()
|
|
107
|
+
assert compact["height"] >= 120
|
|
108
|
+
assert compact["scrollHeight"] <= compact["clientHeight"] + 1
|
|
109
|
+
assert compact["navigationBottom"] <= compact["drawerBottom"]
|
|
110
|
+
assert compact["copyBottom"] <= compact["visualTop"] < compact["visualBottom"] <= compact["navigationTop"]
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
def test_tutorial_image_does_not_open_a_second_view(tutorial_page):
|
|
114
|
+
app, view, page = tutorial_page
|
|
115
|
+
view.resize(1180, 790)
|
|
116
|
+
_evaluate(page, "document.getElementById('tutorial-image').click(); true", app)
|
|
117
|
+
assert _evaluate(page, "document.querySelectorAll('[aria-modal=true]:not([hidden])').length", app) == 1
|
|
118
|
+
assert _evaluate(page, "document.getElementById('tutorial-zoom') === null", app)
|
|
119
|
+
_evaluate(page, "document.dispatchEvent(new KeyboardEvent('keydown', {key:'Escape', bubbles:true})); true", app)
|
|
120
|
+
assert _evaluate(page, "document.getElementById('tutorial-drawer').hidden", app)
|
|
121
|
+
_evaluate(page, "window.easyrobApp.openDrawer('tutorial'); true", app)
|
|
122
|
+
_evaluate(page, "document.getElementById('tutorial-backdrop').click(); true", app)
|
|
123
|
+
assert _evaluate(page, "document.getElementById('tutorial-drawer').hidden && document.getElementById('tutorial-backdrop').hidden", app)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
def test_tutorial_and_bot_use_static_backgrounds(tutorial_page):
|
|
127
|
+
app, view, page = tutorial_page
|
|
128
|
+
backgrounds = _evaluate(page, "JSON.stringify({main:getComputedStyle(document.querySelector('.main')).backgroundImage, "
|
|
129
|
+
"bot:getComputedStyle(document.getElementById('bot-drawer')).backgroundImage, "
|
|
130
|
+
"backdrop:getComputedStyle(document.getElementById('tutorial-backdrop')).backdropFilter})", app)
|
|
131
|
+
import json
|
|
132
|
+
styles = json.loads(backgrounds)
|
|
133
|
+
assert "easyrob_background.gif" not in styles["main"]
|
|
134
|
+
assert "easyrob_background.gif" not in styles["bot"]
|
|
135
|
+
assert styles["backdrop"] == "none"
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
def test_bot_send_label_stays_on_one_line(tutorial_page):
|
|
139
|
+
app, view, page = tutorial_page
|
|
140
|
+
view.resize(1180, 790)
|
|
141
|
+
line_count = _evaluate(page, "window.easyrobApp.openDrawer('bot'); "
|
|
142
|
+
"const button=document.getElementById('bot-send'); "
|
|
143
|
+
"const range=document.createRange(); range.selectNodeContents(button); "
|
|
144
|
+
"range.getClientRects().length", app)
|
|
145
|
+
assert line_count == 1
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
def test_bot_rail_uses_its_width_and_keeps_settings_controls_inside(tutorial_page):
|
|
149
|
+
app, view, page = tutorial_page
|
|
150
|
+
|
|
151
|
+
def layout():
|
|
152
|
+
return json.loads(_evaluate(page, "JSON.stringify((() => {"
|
|
153
|
+
"const drawer = document.getElementById('bot-drawer');"
|
|
154
|
+
"const conversation = drawer.querySelector('.bot-conversation');"
|
|
155
|
+
"const settings = drawer.querySelector('.bot-settings');"
|
|
156
|
+
"const bounds = drawer.getBoundingClientRect();"
|
|
157
|
+
"const navigationSingleLine = [...document.querySelectorAll('.sidebar .nav-item')].every(button => {"
|
|
158
|
+
"const range = document.createRange(); range.selectNodeContents(button.lastChild);"
|
|
159
|
+
"return range.getClientRects().length <= 1;});"
|
|
160
|
+
"const controls = [...drawer.querySelectorAll('button, input, select')].filter(node =>"
|
|
161
|
+
"getComputedStyle(node).display !== 'none' && node.getBoundingClientRect().width);"
|
|
162
|
+
"return {drawerWidth: bounds.width, scrollWidth: drawer.scrollWidth,"
|
|
163
|
+
"clientWidth: drawer.clientWidth,"
|
|
164
|
+
"conversationWidth: conversation.getBoundingClientRect().width,"
|
|
165
|
+
"settingsWidth: settings.getBoundingClientRect().width,"
|
|
166
|
+
"settingsBottom: settings.getBoundingClientRect().bottom,"
|
|
167
|
+
"drawerBottom: bounds.bottom,"
|
|
168
|
+
"navigationSingleLine,"
|
|
169
|
+
"controlsInside: controls.every(node => {const rect = node.getBoundingClientRect();"
|
|
170
|
+
"return rect.left >= bounds.left - 1 && rect.right <= bounds.right + 1;}),"
|
|
171
|
+
"messageFont: parseFloat(getComputedStyle(drawer.querySelector('.bot-message p')).fontSize),"
|
|
172
|
+
"messagesHeight: drawer.querySelector('.bot-messages').getBoundingClientRect().height};"
|
|
173
|
+
"})())", app))
|
|
174
|
+
|
|
175
|
+
for width, height in ((1180, 790), (1160, 720), (850, 600)):
|
|
176
|
+
view.resize(width, height)
|
|
177
|
+
assert _wait_for(app, lambda: _evaluate(page, f"innerWidth === {width} && innerHeight === {height}", app))
|
|
178
|
+
_evaluate(page, "window.easyrobApp.openDrawer('bot'); "
|
|
179
|
+
"document.querySelector('.bot-settings').open = false; "
|
|
180
|
+
"document.getElementById('bot-messages').innerHTML = "
|
|
181
|
+
"'<div class=\"bot-message assistant\"><strong>robBOT</strong><p>Ask about your workflow, results, or AQME and ROBERT.</p></div>'; true", app)
|
|
182
|
+
closed = layout()
|
|
183
|
+
assert closed["settingsWidth"] >= closed["conversationWidth"] - 2
|
|
184
|
+
assert closed["drawerBottom"] - closed["settingsBottom"] <= 24
|
|
185
|
+
_evaluate(page, "document.querySelector('.bot-settings').open = true; true", app)
|
|
186
|
+
measured = layout()
|
|
187
|
+
assert measured["scrollWidth"] <= measured["clientWidth"] + 1
|
|
188
|
+
assert measured["controlsInside"]
|
|
189
|
+
assert measured["navigationSingleLine"]
|
|
190
|
+
assert 12 <= measured["messageFont"] <= 13
|
|
191
|
+
assert measured["messagesHeight"] <= height * 0.4
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
def test_checkml_web_mode_has_no_bot_drawer():
|
|
195
|
+
app = QApplication.instance() or QApplication([])
|
|
196
|
+
view = QWebEngineView()
|
|
197
|
+
view.resize(1180, 790)
|
|
198
|
+
view.show()
|
|
199
|
+
loaded = []
|
|
200
|
+
view.loadFinished.connect(loaded.append)
|
|
201
|
+
source = Path(__file__).resolve().parent / "web" / "app.html"
|
|
202
|
+
url = QUrl.fromLocalFile(str(source))
|
|
203
|
+
query = QUrlQuery()
|
|
204
|
+
query.addQueryItem("mode", "checkml")
|
|
205
|
+
url.setQuery(query)
|
|
206
|
+
view.setUrl(url)
|
|
207
|
+
try:
|
|
208
|
+
assert _wait_for(app, lambda: bool(loaded))
|
|
209
|
+
assert loaded == [True]
|
|
210
|
+
page = view.page()
|
|
211
|
+
assert _evaluate(page, "getComputedStyle(document.querySelector('[data-bot-toggle]')).display", app) == "none"
|
|
212
|
+
_evaluate(page, "window.easyrobApp.openDrawer('bot'); true", app)
|
|
213
|
+
assert _evaluate(page, "document.getElementById('bot-drawer').hidden", app)
|
|
214
|
+
finally:
|
|
215
|
+
view.close()
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<b>Goal: assess a model you chose.</b><br><br>The GUI calls this tab <b>CheckML</b>; this tutorial calls the route Check ML. It runs ROBERT CHECKML using a model or model family you specify. Choose it when you want ROBERT's evaluation and report for that choice rather than its automatic model search.
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<b>Open the CheckML page.</b><br><br>Select <b>CheckML</b> in the sidebar. Its CSV inputs, model source, Run CheckML button, and process log belong to this page. Workflow settings do not replace these inputs.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<b>Load the data to evaluate.</b><br><br>Choose an <b>Input CSV</b> containing the target and numerical descriptor columns for the model. You may also add an external test CSV, and clear that optional selection without replacing the input. Check that both files correspond to the same problem; CHECKML makes its own internal split using ROBERT's defaults.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<b>Map and filter columns.</b><br><br>Select the target column, name column, and prediction type. In <b>Columns to ignore</b>, <b>SMILES is checked by default</b> when the CSV is loaded, as are other text columns. Review the checks so only intended numerical descriptors reach the model.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
<b>Choose where the model comes from.</b><br><br>The <b>MODEL TO CHECKML</b> menu offers default MVL, a scikit-learn estimator, a hyperparameters CSV, or a saved joblib/pickle model. Pick the option that matches what you actually have. The controls shown below the menu change according to that choice.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
<b>Supply only the required model details.</b><br><br>For a scikit-learn estimator, choose its name and fill only hyperparameters you want to override; blank fields use its defaults. A hyperparameters CSV needs <b>param,value</b> rows, including a <b>model</b> row. For a saved model, select its joblib/pickle file instead.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
<b>Run and interpret the result.</b><br><br>Press <b>Run CheckML</b> and follow the process log. Use Stop if needed. Selecting a CSV keeps you on CheckML even when its folder has earlier results. After successful completion, open <b>Results</b> for the PDF and available outputs; if the run stops early, read the log before changing inputs.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<b>Goal: turn drawings into a modelling dataset.</b><br><br>This example starts with structures saved from ChemDraw as CDXML. easyROB extracts the molecules, lets you add identifiers and target values, saves a CSV, and can then calculate descriptors with AQME before ROBERT builds a model.
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<b>Enable AQME first.</b><br><br>On <b>Workflow</b>, choose <b>Yes</b> for <b>Calculate descriptors with AQME</b>. This unlocks <b>AQME descriptors</b>. Keep it enabled for the later full workflow.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<b>Open the conversion tool.</b><br><br>In <b>AQME descriptors</b>, click <b>Import ChemDraw or SDF</b>. This prepares an editable molecule table; it does not start model training.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<b>Check the drawing requirements.</b><br><br>Save the ChemDraw drawing as <b>CDXML</b> and inspect unusual bonds, charges, and disconnected fragments before importing. Incorrect drawings can lead to incorrect molecules or descriptors.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
<b>Select the structure file.</b><br><br>Use the file picker opened by <b>Import ChemDraw or SDF</b> to choose the correct CDXML, SDF, or MOL file. Check the filename before editing the imported table.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
<b>Complete the extracted table.</b><br><br>The molecule table appears on the AQME descriptors page. Give each molecule a unique <b>code_name</b> and enter its measured property in the target column. Check units and missing values.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
<b>Save the prepared CSV.</b><br><br>After reviewing the rows, click <b>Save as CSV</b> and choose a clear filename and destination. Remember that location: the workflow outputs will be associated with this dataset's project folder.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
<b>Confirm the handoff.</b><br><br>After saving, the message below the table shows the selected CSV path. Check that the file was written and loaded before starting ROBERT.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
<b>Return to Workflow.</b><br><br>On <b>Workflow</b>, check that the new CSV appears as the training input. AQME should still be set to Yes for descriptor generation from the converted structures.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
<b>Tell ROBERT how to read it.</b><br><br>Choose the measured property as <b>Target Column (y)</b>, select Regression or Classification, and set <b>code_name</b> as the name column. Move any extra metadata that should not become a descriptor to Ignored Columns.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
<b>Launch the combined workflow.</b><br><br>Choose <b>Full Workflow</b> and click <b>Run ROBERT</b>. AQME preparation is followed by the ROBERT stages. Use <b>Process log</b> if a step reports an error.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
<b>Read any descriptor notice.</b><br><br>If easyROB announces that it will use structural descriptors, continue when that matches your goal. For atom-based descriptors, return to <b>AQME descriptors</b> and select relevant atoms when a common scaffold is available.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
<b>Inspect the output.</b><br><br>Open <b>Results → Report</b> after the run to understand model performance. <b>Images</b> shows generated figures. Predictions appears when external prediction files exist, and Interactive plots appears when model plot data is available.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<b>Goal: start from structures in a CSV.</b><br><br>We will prepare identifiers, a target property, and SMILES. AQME will calculate molecular descriptors from the structures; ROBERT will then use those descriptors to build and assess a model. If your CSV already has numerical descriptors, skip the AQME choice later.
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<b>Open a spreadsheet.</b><br><br>The image shows an illustrative spreadsheet; any editor that can save a comma-separated CSV works. Use one row per molecule and one header per column. Before importing the file, make sure the first row contains column names rather than data.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<b>Set up three essential columns.</b><br><br><b>code_name</b> identifies each molecule, <b>target</b> holds the value or class to learn, and <b>SMILES</b> describes the structure. For regression, target values should be numerical. Give every molecule a distinct identifier and check for missing targets before modelling.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<b>Add molecular structures.</b><br><br>In ChemDraw, select a structure and use <b>Edit → Copy As → SMILES</b>, then paste the string into its row. You can also obtain SMILES from a trusted database. Verify that each string belongs to the correct molecule; a shifted spreadsheet row silently pairs the wrong structure with the target.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
<b>Review the completed table.</b><br><br>Check that every row has an identifier, target, and SMILES, with no accidental blank lines or extra header rows. A quick spot-check of a few molecules now is easier than diagnosing incorrect descriptor generation later.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
<b>Save a CSV, not a workbook.</b><br><br>Use <b>File → Save As</b> and choose a CSV format. Give the file a simple name without spaces, because ROBERT checks CSV file names. Reopen it once to confirm the three headers and values survived the export.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
<b>Load the input in easyROB.</b><br><br>On the <b>Workflow</b> page, select your training CSV. Add an <b>External test CSV</b> only when you have a separate set of molecules to predict. Check the filenames in the Dataset card.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
<b>Map the columns.</b><br><br>Choose <b>target</b> as y, Regression or Classification according to the property, and <b>code_name</b> as the name column. Do not assume the first dropdown item is correct: inspect each selection. Move other non-descriptor metadata to Ignored Columns.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
<b>Enable descriptor calculation.</b><br><br>Because this example starts from SMILES, choose <b>Yes</b> for <b>Calculate descriptors with AQME</b>. The AQME descriptors page becomes available, and AQME appears in Workflow progress.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
<b>Inspect the AQME viewer.</b><br><br>Open <b>AQME descriptors</b>. Its molecule panel may show a common pattern after processing the SMILES. Structural descriptors remain available when no shared scaffold is found.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
<b>Optional: choose atoms.</b><br><br>If a common scaffold appears and specific atoms matter for your study, select them in the viewer for atom-based descriptors. Check that the highlighted atoms correspond to the chemistry you intend to compare. If no pattern appears, leave atom selections empty and continue with structural descriptors.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
<b>Run AQME and ROBERT together.</b><br><br>Return to <b>Workflow</b>, leave <b>Full Workflow</b> selected, and click <b>Run ROBERT</b>. AQME prepares descriptors first; ROBERT then advances through its stages. Expand <b>Process log</b> for details.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
<b>Interpret the finish state.</b><br><br>Green checks show completed stages. If a card shows an error, open <b>Process log</b> and read the messages around that stage before changing inputs or trying again.
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
<b>Open the results.</b><br><br>In <b>Results</b>, start with <b>Report</b> for the model summary. Use Images and Interactive plots to inspect behaviour; Predictions is available when external test output exists. If multiple models were produced, choose one with the Model selector before comparing its views.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<b>Goal: create descriptors without training.</b><br><br>This route runs AQME on molecular structures and saves descriptor CSVs. It is useful for inspecting features or preparing data before deciding whether to build a ROBERT model.
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<b>Load structures.</b><br><br>On <b>Workflow</b>, choose a CSV with a <b>SMILES</b> column and identifiers. Check the displayed filename. Set <b>Calculate descriptors with AQME</b> to Yes if you want to inspect AQME settings first.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<b>Start AQME on its own.</b><br><br>Click <b>Run AQME only</b>. Workflow progress shows AQME activity; CURATE through REPORT are not part of this run. You do not need to press Run ROBERT.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<b>Understand the notice.</b><br><br>If a dialog says structural descriptors will be generated, continue when those features meet your goal. Atom-based descriptors need suitable structures and, when available, atom choices in the AQME tab.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
<b>Find the files.</b><br><br>When AQME finishes, look for its completed status and inspect <b>Process log</b> for output paths or warnings. The generated CSV variants differ in descriptor coverage.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
<b>Reuse a descriptor dataset.</b><br><br>To model later, load one generated CSV on <b>Workflow</b>. Set the target and name columns, choose <b>No</b> for AQME because descriptors are already present, then select the desired workflow. Check that the target property is present before training.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<b>What you can do here.</b><br><br>easyROB connects two tools. <b>AQME</b> turns molecular structures into numerical descriptors. <b>ROBERT</b> uses those descriptors to prepare data, build models, check their reliability, make predictions, and create reports. Follow this overview once, then use the practical tutorial that matches your starting data.
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<b>Find your starting point.</b><br><br>The <b>Workflow</b> page opens first. It shows CSV inputs, analysis settings, descriptor columns, run controls, workflow progress, and the process log. Scroll within the page to reach the controls below the fold.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<b>Choose the data.</b><br><br>Load the training <b>Input CSV</b>. The <b>External Test CSV</b> is optional; use it for molecules you want to predict after the model is built. If you reopen a CSV in a folder that already contains ROBERT outputs, easyROB detects those files and makes their available Results views accessible again.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<b>Tell ROBERT what to learn.</b><br><br>Set <b>Target Column (y)</b> to the property to predict, <b>Prediction Type</b> to Regression for a numerical value or Classification for a category, and <b>name column</b> to each row's identifier. For example, a table with <b>code_name</b> and <b>target</b> should use those columns for name and y respectively.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
<b>Keep only useful descriptors.</b><br><br>Move metadata that must not influence the model from <b>Available Columns</b> to <b>Ignored Columns</b>. An identifier or free-text note is not a molecular descriptor. Check this list before running: an unintended column can change what the model learns. The chosen target and name columns are handled separately.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
<b>Decide whether AQME is needed.</b><br><br>Choose <b>Yes</b> for <b>Calculate descriptors with AQME</b> when your CSV contains structures that still need descriptors. The AQME descriptors page becomes available and AQME appears in Workflow progress. Choose <b>No</b> when the CSV already contains the descriptors you want ROBERT to use.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
<b>Choose the scope of the run.</b><br><br>Use the <b>Workflow</b> selector. <b>Full Workflow</b> is the usual choice for a new model. CURATE, GENERATE, VERIFY, PREDICT, and REPORT run a particular stage when its required inputs or earlier outputs are ready.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
<b>Start the right process.</b><br><br>Use <b>Run ROBERT</b> to launch the selected workflow. <b>Run AQME only</b> creates descriptors without starting ROBERT. <b>Stop</b> interrupts a running process. Before clicking, review the loaded CSV, target and name columns, AQME choice, and selected workflow.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
<b>Read progress at a glance.</b><br><br>Workflow progress shows the optional AQME preparation and the ROBERT stages. A green check means a stage completed; an error marks a failed stage. Open <b>Process log</b> beside the progress card for detailed messages.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
<b>Explore AQME when you need descriptors.</b><br><br>With AQME enabled, open <b>AQME descriptors</b> to adjust settings. The page includes the ChemDraw/SDF import and a molecular viewer. Select atoms when atom-based descriptors are useful to your question.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
<b>Change advanced settings deliberately.</b><br><br>The <b>Advanced options</b> page groups controls by ROBERT stage. Start with defaults unless you have a specific modelling reason to change one. Use a section's Help control when a setting is unfamiliar.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
<b>Browse prepared molecular data.</b><br><br><b>MolSSI databases</b> opens the descriptor library browser. Use it to inspect existing datasets. The Workflow input still determines what runs in your project.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
<b>Evaluate a model you chose.</b><br><br>The <b>CheckML</b> page is separate from ROBERT's automatic model search. It runs CHECKML on a default model, a scikit-learn estimator, parameters from CSV, or a saved model. Open the <b>Check ML</b> tutorial for input requirements.
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
<b>Find outputs in one place.</b><br><br>After a run, or after reopening a CSV beside existing outputs, open <b>Results</b>. Its buttons lead to Report, Predictions, Images, and Interactive plots when those files exist. If several models were generated, use the <b>Model</b> selector first so you inspect the intended model.
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
<b>Inspect workflow figures.</b><br><br>Choose <b>Images</b> inside Results, then use the stage filters to narrow the gallery. Figures can reveal patterns, outliers, or model behaviour that a single score cannot show.
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
<b>Explore predictions visually.</b><br><br><b>Predictions</b> displays external test results when such a CSV was generated. <b>Interactive plots</b> shows model plots even when no external prediction table exists. Hover over a point to inspect it, and click a legend entry to show or hide that set of points.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
<b>Ask robBOT for help.</b><br><br>Select <b>robBOT</b> in the sidebar. Its drawer stays beside the workspace while you ask about a workflow, result, popup, or setting. The robBOT tutorial explains the available answer modes.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<b>Goal: predict new molecules with an existing model.</b><br><br>Use this route only after a ROBERT project has produced model outputs. You are reusing that model rather than training from scratch. The new molecules must provide the same kind of input information used for the original model.
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<b>Prepare the new data.</b><br><br>Save the external test CSV in the existing ROBERT project folder so the saved model can be found. Use a name column for each new molecule. If the trained model used AQME descriptors, include SMILES; if it used your own descriptors, provide the matching descriptor columns.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<b>Select both CSVs.</b><br><br>On <b>Workflow</b>, load the original project input CSV, then select the new file under <b>External test CSV</b>. Check both filenames in the Dataset card.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<b>Run only the needed stage.</b><br><br>Set the <b>Workflow</b> selector to <b>PREDICT</b>. The other ROBERT stages stay inactive for this run.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
<b>Start and watch PREDICT.</b><br><br>Click <b>Run ROBERT</b>. The PREDICT progress row becomes active; open <b>Process log</b> to follow file loading and descriptor handling.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
<b>Match the descriptor method.</b><br><br>If the dialog asks how to handle descriptors, choose <b>Generate descriptors with AQME</b> when the original model was trained with AQME-derived descriptors and your test CSV has SMILES. Choose <b>Descriptors already present</b> only when the test CSV already contains the descriptors expected by that model.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
<b>Review the prediction output.</b><br><br>Open <b>Results → Predictions</b> after external output is created. Use the Model selector when several models exist. Interactive plots offers visual comparisons, and legend clicks show or hide point groups.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<b>Goal: get help without leaving easyROB.</b><br><br>Select <b>robBOT</b> in the sidebar. You can ask about GUI controls, workflow stages, results, warnings, and AQME/ROBERT documentation while the workspace stays visible.
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<b>Recognize the drawer.</b><br><br>robBOT opens beside the current page. The conversation and question box are at the top; <b>Answer settings and token usage</b> expands below them. Use the × button to close the drawer and the sidebar item to reopen it.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<b>Ask a specific question.</b><br><br>Type in the question box and press <b>Send</b> or Enter. For example, ask “What does VERIFY check in my workflow?” Mention the step or result you want explained. <b>Clear history</b> starts a new conversation.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<b>Use the built-in prompts.</b><br><br>Choose a question from the dropdown below the composer. It fills the question box; press Send to receive an answer. Questions about CheckML and robBOT are included.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
<b>Summarize detected work.</b><br><br>After opening a project with outputs, use <b>Explain latest result</b> for a summary based on detected results. The button stays disabled when no suitable result is available.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
<b>Choose the answer mode.</b><br><br>Expand <b>Answer settings and token usage</b> and use the <b>Mode</b> dropdown. Cloud AI uses a provider and API key. Heuristic gives rule-based help from local context.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
<b>Configure Cloud AI if you want it.</b><br><br>Select a provider, enter its API key, and click <b>Save API</b>. The key field is masked and tied to that provider; switching providers clears the active key, and switching back restores the saved one. The optional web-search checkbox allows supported cloud providers to look up missing or current information.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
<b>Use Heuristic for local guidance.</b><br><br>Select <b>Heuristic</b> for a rule-based answer using GUI state, popups, logs, and packaged knowledge. It needs no API key or AI model. Ask a focused question and inspect the answer beside the relevant GUI output.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|