Skip to content

Commit

Permalink
Update notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
kpzn768 committed Dec 20, 2024
1 parent e487a63 commit 5851eea
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions examples/route-scoring/route-scoring.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
"[Yujia G, Kabeshov M, Le THD, Genheden S, Bergonzini G, Engkvist O, et al. A Deep Learning with Expert Augmentation Approach for Route Scoring in Organic Synthesis. ChemRxiv. 2024; doi:10.26434/chemrxiv-2024-tp7rh](http://doi.org/10.26434/chemrxiv-2024-tp7rh)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#@title Installation -- Run this cell to install rnxutils\n",
"\n",
"!pip install reaction-utils[models]"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -30,7 +41,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Download model artifacts from Zenodo"
"Download model artifacts from Zenodo, and example routes from Github"
]
},
{
Expand All @@ -41,14 +52,15 @@
"source": [
"!wget https://zenodo.org/records/14533779/files/deepset_route_scoring_sdf.onnx?download=1 -O deepset_route_scoring_sdf.onnx\n",
"!wget https://zenodo.org/records/14533779/files/reaction_class_ranks.csv?download=1 -O reaction_class_ranks.csv\n",
"!wget https://zenodo.org/records/14533779/files/scscore_model_1024_bits.onnx?download=1 -O scscore_model_1024_bits.onnx"
"!wget https://zenodo.org/records/14533779/files/scscore_model_1024_bits.onnx?download=1 -O scscore_model_1024_bits.onnx\n",
"!wget https://raw.githubusercontent.com/MolecularAI/reaction_utils/refs/heads/route-scoring-example/examples/route-scoring/example-routes.json"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Will read example routes from disc"
"Will read example routes from disc and display them"
]
},
{
Expand All @@ -58,7 +70,7 @@
"outputs": [],
"source": [
"dicts = json.load(open(\"example-routes.json\", \"r\"))\n",
"routes = [SynthesisRoute(dict_) for dict_ in dicts]\n"
"routes = [SynthesisRoute(dict_) for dict_ in dicts]"
]
},
{
Expand Down

0 comments on commit 5851eea

Please sign in to comment.