retroapi for retrosynthesis routes and exploring reaction conditions
Project description
RetroSynthesis API
-
retroapi get predict routes given target molecule.
-
supply plausible value for all predicts.
-
predict conditions base on one reaction.
Usage
from retroapi import RetroApi, Name2Smiles
retro_api = RetroApi()
# if you have simles of molecule.
smiles = "COc1cccc(OC(=O)/C=C/c2cc(OC)c(OC)c(OC)c2)c1"
# else:
chemical_name = "4-Hydroxycoumarin"
name2smiles = Name2Smiles()
smiles = name2smiles.get_smiles(chemical_name)
# check if smiles is valid or not
is_valid_smiles = retro_api.validate_smiles(smiles)
if is_valid_smiles:
routes = retro_api.predict_routes(smiles)
if routes is not None:
# work with routes
pass
# check if chemical is buyable or not
is_buyable = retro_api.check_stock(smiles)
# check reaction conditions
# first you should get product smile
# second you should get reactants smile
products = "COc1cc(C(=O)O)cc(OC)c1OC"
reactants = "C=CC(=O)O.COc1cc(Br)cc(OC)c1OC"
conds = retro_api.process_reaction(product, reactants)
if conds is not None:
# check reaction condition with plausible
pass
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
retroapi-0.1.0.tar.gz
(4.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file retroapi-0.1.0.tar.gz.
File metadata
- Download URL: retroapi-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44733b42ce4821d7b163fc1ae91af028a0fcd988c60886d167c18463078c5a7c
|
|
| MD5 |
b0e2646815cdb4d34af143eb4e2e294a
|
|
| BLAKE2b-256 |
c5fe0426c37ccafeb1fcd182f379e2adb0c0d31ac05b2d7ecf7a0aaf5e32e46a
|
File details
Details for the file retroapi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: retroapi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
775146b6ce3666ee2c30f6a3857272a45cd0357748b568720031e4733cfb507e
|
|
| MD5 |
17d74fc0b46f184bd0893906386f19cc
|
|
| BLAKE2b-256 |
228f3a61c6a83268ff8ae8473be5dc1fd5753899eb81f6425d097cf05cee2f0e
|