Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

PAI Retro

Access Pending AI's high-throughput Retrosynthesis engines

Pending AI's Retrosynthesis Engine capability, engineered for high-throughput synthetic feasibility analysis, combines well-curated and diverse datasets to rapidly identify complex multi-step synthetic routes for broad regions of chemical space.

See the capability page for more information:

Retrosynthesis

Workflow Summary

Pending AI's Retrosynthesis engine runs behind a queue-based environment for each specific engine. An engine and set of building block libraries, containing molecules used to terminate a synthetic route, must be provided when submitting a query.

On submission, a job id is provided and then used to poll GET /jobs/{job_id} until its status is completed or failed, at which point the routes should be retrieved and saved per query. A similar workflow is made available through batch-based submission to provide a faster screening interface on larger collections of query molecules:

  • POST /batches returns the batch at once. Its jobs are created in the background, and jobs_created turns true once they all exist.

  • GET /batches and GET /batches/{batch_id} include each batch's status (submitted, processing or completed) and completed_jobs, so you can follow progress without fetching every job.

  • GET /batches/{batch_id}/result lists every job in the batch with whether its query was synthesizable.

GET /engines includes each engine's queue_length, the approximate number of jobs queued or running on it, to help pick a less busy engine.

Each route in a completed job includes stereocenters_mapped, whether the target's stereocentres were traced through every step to its building blocks (null when the engine didn't report it). Each job includes query_is_building_block, whether the query molecule is itself a building block.

See the available Guides for more implementation possibilities when integrating with existing drug discovery pipelines.


Frequently Asked Questions

Q: Why do some molecules take significantly longer than others for retrosynthesis?

A: The total time until the results of a retrosynthesis job are ready to be retrieved is dependent on the queue wait time and synthesis processing.

  • Queues are affected by other jobs shared by an engine when too many requests are made in a given time.

  • Processing time can be affected by optional parameters such as the number of routes requested or processing timeout.

Some molecules may also fail to find any synthetic routes which means the engine will run longer trying to exhaust all reasonable expandable reaction templates.

Q: Why do results contains fewer synthetic routes than requested?

A: Configuration specifies a maximum number of routes to be found during retrosynthesis, results are limited due to a number of facts such as other optional parameters that enforce diversity, the complexity of a structure, the allowed time limit for a job, and the existence of chemically viable synthetic routes.

Q: What happens if one job fails within a batch?

A: When an individual query molecule fails (due to an invalid SMILES structure or unexpected processing error), the batch will continue processing until all other jobs are completed. A batch summary can be retrieve storing a success flag per job to help screen any unhandled query molecules from within the batch.

Q: What is the maximum size for a batch submission?

A: Currently Pending AI offers a batch limit of 100,000 which should be created with multiple POST /batches and PUT /batches requests due to the size of retrosynthesis result data. Use multiple batches if a screening campaign contains more query molecules.

Q: Why was my request refused with 402 or 403?

A: Each job is a retrosynthesis job on your team's plan.

  • 402 Payment Required: creating a job or a batch (or adding jobs with PUT /batches/{batch_id}) is refused if your team has no plan (NoPlan), or can't start that many jobs this billing period (UsageLimit). A batch is refused whole.

  • 403 Forbidden with Organization resources are not available.: your team's workspace hasn't been set up yet. Teams are set up from the account portal.

See Accounts, teams and billing for how plans, allowances and overage work.

Q: What happens when I delete a job or a batch?

A: Deleting removes it from the API straight away: it's no longer listed or retrievable. Deleting a batch cancels its queued jobs, and its jobs are archived in the background shortly afterwards. A job that is currently being processed can't be deleted: the API answers 409 Conflict with Location and Retry-After headers, so retry after the given number of seconds. Deleted jobs and batches are removed permanently 30 days after they were deleted.