Tools · Cheminformatics & Structure
Retrosynthesis
Propose ranked one-step or short-route retrosynthetic disconnections and building blocks from target SMILES
On this page
Prices, workflows, and method papersOpen in the app
Run it from the API
Submit with Submit a job and the job_type below. Price it first with Estimate job reservation cost: submitting reserves that amount from your wallet, and the charge settles at the actual runtime.
Retrosynthesis retrosynthesis
- Job type
retrosynthesis- Hardware
cpu(default)- Typical runtime
- 15 min on CPU
Payload
| Field | Type | Description |
|---|---|---|
input_data[]required | (string | object)[] | Limits: |
input_formatrequired | string | One of: |
max_depth | integer | Default: |
time_limit_sec | number | Default: |
max_routes | integer | Default: |
Example
from cognichem_client import CogniChem
client = CogniChem.from_env() # reads COGNICHEM_API_KEY
payload = {
"input_data": ["CCO", "c1ccccc1"],
"input_format": "smiles",
"max_depth": 1,
"time_limit_sec": 30,
"max_routes": 5,
}
estimate = client.jobs.estimate(job_type="retrosynthesis", payload=payload, resource="cpu")
print(f"Reserves ${estimate.cost:.2f}")
job = client.jobs.submit(
job_name="my-retrosynthesis-run",
job_type="retrosynthesis",
payload=payload,
resource="cpu",
)
status = client.jobs.wait(job.process_id)
if status.status == "completed":
client.jobs.result(job.process_id, save_path=".")curl -X POST "https://api.cognichem.com/api/v1/jobs/submit" \
-H "X-Api-Key: $COGNICHEM_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"job_name": "my-retrosynthesis-run",
"job_type": "retrosynthesis",
"payload": {
"input_data": [
"CCO",
"c1ccccc1"
],
"input_format": "smiles",
"max_depth": 1,
"time_limit_sec": 30,
"max_routes": 5
},
"resource": "cpu"
}'{
"input_data": [
"CCO",
"c1ccccc1"
],
"input_format": "smiles",
"max_depth": 1,
"time_limit_sec": 30,
"max_routes": 5
}Sample data from the job catalog; long values are shortened here. Each job_name must be unique among your jobs.
Workflow inputs
- Molecules (list)SMILES
Workflow outputs
- ArchiveZIP
- MoleculesSMILES
- TableCSV