Route analysis

From VectorSpaceLab/AREX-Skill · View interactive version

Route analysis is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Inspect AiZynthFinder output files, route collections, reaction trees, route scores, clustering, images, and downstream summaries without rerunning a search.

How to use this skill

Skill file

Route Analysis

Use this sub-skill when the task is to read, summarize, score, render, compare, cluster, or troubleshoot existing AiZynthFinder route-analysis outputs.

Use This For

Route Elsewhere

Quick Workflow

  1. Identify the output type: pandas table (.json, .json.gz, .hdf, .h5, .hdf5), checkpoint line JSON, or standalone tree JSON.
  2. For table outputs, load with pandas using table orientation for JSON and key table for HDF5; inspect expected columns before accessing trees.
  3. For route rendering, convert each tree dictionary with ReactionTree.from_dict(tree_dict), then use to_image(), to_json(), or to_dict().
  4. For scoring and collection-level work, build or receive RouteCollection objects from ReactionTree instances and apply compute_scores(), rescore(), distance_matrix(), or cluster() only when dependencies and valid tree schemas are present.
  5. For a safe first pass over an output file, run the bundled summarizer:
python scripts/summarize_aizynth_output.py output.json.gz

Add --write-tree-summary trees-summary.json only when the user explicitly asks to write tree summaries.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.