Note. The structure editor only appears in a chat without a folder attached. This example was therefore run in a chat with no folder, and its files were copied here afterwards.
👤 User
Edit a compound
🧠 Assistant
Figure 1: The structure editor, set up for a 4-chloroaniline substructure search. The SMILES Nc1ccc(Cl)cc1 (4-chloroaniline) was typed into the input box and loaded with Load. You could also draw it on the canvas, start from a name (Name tab) or enter a SMARTS pattern (SMARTS tab). The search mode is Substructure (alternatives: Exact, Similarity). The Affinity filter keeps only compounds with a Ki or Kd between 0 and 1000 nM. Clicking Run query runs the search, and the results appear inside the editor.
The structure editor is open. If you don't see it, start a new chat without a folder attached (the editor doesn't appear in chats with a folder), or give me a compound name or SMILES and I'll run an exact, substructure or similarity search.
The editor lists each matching compound with its most potent measurement that passes the filter, most potent first. These are the first 10 of the 50 rows:
| Rank | Compound | BindingDB id | Best Ki/Kd | Target (organism) | structure | SMILES |
|---|---|---|---|---|---|---|
| 1 | Diaza-benzo[e]azulene CB1 ligand | BDBM50176988 | Ki 0.00035 nM | "GTP-binding nuclear protein GSP1/CNR1" (S. cerevisiae) | Clc1ccc(c(Cl)c1)-n1nc(C(=O)NN2CCCCC2)c2CCCc3cc(Cl)ccc3-c12 |
|
| 2 | Sorafenib (Nexavar) | BDBM16673 | Ki 0.021 nM | VEGFR2 (human) | CNC(=O)c1cc(ccn1)Oc2ccc(cc2)NC(=O)Nc3ccc(c(c3)C(F)(F)F)Cl |
|
| 3 | Bosutinib | BDBM4552 | Kd 0.029 nM | ABL1 (human) | CN1CCN(CC1)CCCOc2cc3c(cc2OC)c(c(cn3)C#N)Nc4cc(c(cc4Cl)Cl)OC |
|
| 4 | US9453018, 353 | BDBM247411 | Ki 0.1 nM | Coagulation factor XI (human) | C[C@@H]1CCC[C@@H](c2cc(ccn2)-c2c(NC1=O)cnn2C(F)F)n1cnc(cc1=O)-c1cc(Cl)ccc1-n1cc(Cl)nn1 |
|
| 5 | CHEMBL3319256 | BDBM50046866 | Ki 0.17 nM | MAO-B (human) | Cn1ncc2cc(ccc12)C(=O)Nc1ccc(Cl)c(Cl)c1 |
|
| 6 | Clozapine (Leponex) | BDBM22869 | Ki 0.23 nM | Histamine H1 receptor (human) | CN1CCN(C2=c3ccccc3=Nc3ccc(Cl)cc3N2)CC1 |
|
| 7 | Cycloguanil (Chlorazin) | BDBM18792 | Ki 0.3 nM | DHFR-TS (P. falciparum) | CC1(N=C(N=C(N1c2ccc(cc2)Cl)N)N)C |
|
| 8 | Efavirenz | BDBM2483 | Ki 0.3 nM | HIV-1 reverse transcriptase | c1cc2c(cc1Cl)[C@@](OC(=O)N2)(C#CC3CC3)C(F)(F)F |
|
| 9 | Triazolam (Halcion) | BDBM50001765 | Ki 0.31 nM | GABA-A receptor α1 (rat) | Cc1nnc2CN=C(c3ccccc3Cl)c3cc(Cl)ccc3-n12 |
|
| 10 | Rimonabant (Acomplia) | BDBM21278 | Ki 0.31 nM | Cannabinoid receptor 1 (rat) | Cc1c(nn(c1-c1ccc(Cl)cc1)-c1ccc(Cl)cc1Cl)C(=O)NN1CCCCC1 |
👤 User
Render the top 5 compound with the highest binding affinity in a grid.
🧠 Assistant
The figure below shows the five strongest binders from your 4-chloroaniline substructure search (Ki/Kd ≤ 1 µM), ranked left to right and aligned on the highlighted core.
Two things to keep in mind:
Figure 2: Top 5 4-chloroaniline compounds by binding affinity. Strongest Ki/Kd (≤ 1 µM) among compounds containing the 4-chloroaniline substructure (Nc1ccc(Cl)cc1), from the structure-editor search. The shared core is highlighted in orange. Each card shows the compound's single most potent measurement and its target.
The lesson: the editor builds the query, and the assistant reads the results. The structure editor is the hands-on way to set up a structure search: draw or load a molecule, choose exact, substructure or similarity, and set an affinity window. The search runs inside the editor, so the assistant does not see the results automatically. When you follow up ("render the top 5"), it fetches them with get_editor_results and continues from there. Two habits help:
substructure_search and a tighter affinity cutoff.get_activity.open_structure_editor with a blank canvas, in reply to "Edit a compound".Nc1ccc(Cl)cc1, chose Substructure, set the Ki/Kd filter to 0–1000 nM and clicked Run query. This ran substructure_search with those settings.get_editor_results retrieved the editor's search and its 50 rows.draw_structure_grid drew the five most potent compounds, aligned on the 4-chloroaniline core.substructure_search directly (Example 2.3).