File size: 11,254 Bytes
0caf2aa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
{
  "schema": "neutral-paper-reproduction-v101",
  "paper_id": "P210",
  "title": "PaRoutes: towards a framework for benchmarking retrosynthesis route predictions",
  "question": "Reproduce the PaRoutes paper’s own route extraction, dataset statistics, stock analysis, route-quality, distance, clustering and search experiments from the supplied complete original reference trees. Released reference-tree statistics are distinct from newly generated retrosynthetic routes and original search/model experiments.",
  "inputs": [
    "docs/",
    "inputs/"
  ],
  "scientific_outputs": {
    "all_route_statistics.csv": {
      "columns": [
        "index",
        "root_sha256",
        "nmols",
        "nleaves",
        "nreactions",
        "llr",
        "convergent",
        "mol_occurrences",
        "leaf_occurrences"
      ],
      "types": {
        "index": "int",
        "root_sha256": "64hex string",
        "nmols": "int|null (empty CSV)",
        "nleaves": "int|null (empty CSV)",
        "nreactions": "int",
        "llr": "int",
        "convergent": "int0/1",
        "mol_occurrences": "int",
        "leaf_occurrences": "int",
        "identity_complete": "int0/1",
        "invalid_molecular_occurrences": "int"
      },
      "rows": "every released mother-route index exactly once"
    },
    "n1_route_statistics.csv": "same columns/types; every n1 row",
    "n5_route_statistics.csv": "same columns/types; every n5 row",
    "dataset_statistics.json": {
      "type": "object",
      "keys": [
        "all",
        "n1",
        "n5"
      ],
      "value": {
        "routes": "int",
        "convergent_routes": "int",
        "convergent_percent": "finite float",
        "molecule_occurrences": "int",
        "leaf_occurrences": "int",
        "reaction_occurrences": "int",
        "histograms": "object keys nmols/nleaves/nreactions/llr -> object string0..10 and unresolved -> integer count; include unresolved0 for valid datasets",
        "identity_complete_routes": "int",
        "identity_incomplete_routes": "int",
        "invalid_molecular_occurrences": "int"
      }
    },
    "stock_statistics.json": {
      "type": "object",
      "keys": [
        "n1",
        "n5"
      ],
      "value": "object, all values integers; keys routes,target_rows,root_target_order_mismatches,unique_target_InChIKeys,stock_rows,stock_unique_InChIKeys,reference_unique_leaf_InChIKeys,stock_minus_leaf_keys,leaf_minus_stock_keys,internal_stock_keys,target_stock_keys,publication_stock_symmetric_difference,unique_patent_IDs"
    },
    "calculation_results.json": "Object keyed by supplied calculation ID, each containing {value: the computed scientific value}. Use the named fields and units specified below; harmless extra annotations are allowed.",
    "report.md": "Actual computations, discrepancies, material/resource/runtime limits, original unmet experiments. No fabricated search/models."
  },
  "scientific_details": {
    "calculation_contract": {
      "identity": "Default RDKit sanitization, remove atom maps, full27-character standard InChIKey; retain stereo/charges/fragments. Cache unique SMILES; no first14-character key or leaf in_stock flag substitutes for inventory identity.",
      "tree_statistics": "For each original tree, traverse all nodes. nreactions=all reaction nodes; nleaves=number of distinct leaf full-InChIKeys; nmols=distinct leaf keys + distinct nonleaf molecular keys (sum of two sets, not union and not occurrences); llr=maximum root-to-leaf edge depth//2. convergent=int(nreactions!=llr). mol_occurrences and leaf_occurrences count occurrences independently. root_sha256=SHA256 exact UTF8 root smiles. index=original zero-based array index.",
      "distributions": "Four histograms nmols,nleaves,nreactions,llr. Keys string0 through10; value exact integer frequency, bin10 aggregates all >=10. Dataset summary routes,convergent_routes,convergent_percent,molecule_occurrences,leaf_occurrences,reaction_occurrences and histograms. Full denominators; never exclude long routes.",
      "stocks": "n1/n5 rows and full InChIKey sets; unique leaf union, nonleaf union and root key set from all trees; exact string root-target order; extra/missing lengths add to mismatches; patent identifier before first semicolon. Symmetric difference with original aizynth_* stock file. Do not remove variant SMILES or silently change stock.",
      "rule_score": "Single-reaction route tree. Leaf1 if in_stock true/default true, otherwise10; molecule with reaction cost1+sum(child molecular cost / supplied yield). Recursive yield passed to every level.",
      "rule_ranks": "Stable ascending sort original indices; dense ranks start1, adjacent sorted cost difference strictly <1e-8 shares rank, else+1. Return order original integer indices and ranks in sorted order.",
      "rule_solved": "Every terminal leaf in_stock true/default true; return boolean, not numeric.",
      "rule_overlap": "Unique supplied leaf strings;2*size(intersection)/(size(reference)+size(predicted));both empty returns JSON null.",
      "rule_topn": "Ranks1/5/10 inclusive; all targets including null/failed predictions in denominator. Return integer correct/targets and floating accuracy.",
      "rule_andor": "OR:proof=min child proofs,disproof=sum child disproofs; AND:proof=sum,disproof=min. Finite integer fixtures only.",
      "search": "Original full n1/n5 targets, paired stock, policy models. MCTS/Retro*500 iterations and DFPN750; original paper no time limit vs official YAML time_limit3600 is disclosed. No reference-tree replay, different modern policy,444-target subset or model-output reanalysis may claim original new search.",
      "version": "Author Feb2022 preprint with SI and officialv1.0.0/Zenodo6275421. Final RSC fulltext HTTP403 unverified; no claim publisher text equivalence. Official released data discrepancy and input convention must be reported, not corrected to match published numbers.",
      "invalid_identity": "MolFromSmiles default sanitize fails OR full InChIKey is empty/non27 => identity unavailable. Do NOT repair SMILES, use sanitize=False, guess identity, collapse invalid strings or drop route. For any unavailable molecular identity in a tree: nmols/nleaves JSON null or empty CSV; identity_complete integer0; count invalid_molecular_occurrences. All structural occurrence/reaction/LLR/convergence fields still computed. Otherwise identity_complete1,invalid count0. Four histograms retain total routes; unresolved identities use extra string key unresolved for nmols/nleaves; nreactions/llr unresolved0. Dataset fields identity_complete_routes,identity_incomplete_routes,invalid_molecular_occurrences always present. Full-identity row scores exclude unresolved rows from numerators only; full denominator retained. Whole distribution claim unqualified if incomplete identities, never a global zero."
    },
    "visible_input_character": "Released 158698 mother routes plus full10000 n1/10000 n5 reference routes, paired original SMILES and InChIKey stocks and targets. These are public known solutions, not fresh predictions or raw patent extraction inputs."
  },
  "entrypoint": "reproduce.py --input-dir /input --output-dir /work/output",
  "rules": [
    "All raw inputs are under /input/inputs and paper materials are under /input/docs.",
    "Use current input values and retain complete record identities and denominators.",
    "Report actual scientific outputs and honest scope limits; printed paper totals alone are not new computations.",
    "Original-author algorithm source and mirrors are hidden. Other open-source tools and opaque binaries may be used; record their provenance."
  ],
  "runtime": "Frozen CPU-only Python3.12/RDKit2024.09.6/NumPy1.26.4 runtime. Historical version differences must be reported.",
  "resources": {
    "cpu_cores": 1,
    "memory_bytes": 2147483648,
    "cpu_seconds": 6000,
    "wall_seconds": 7200,
    "max_versions": 3,
    "max_actions": 12
  },
  "public_calculation_output_formats": {
    "calc_001": {
      "type": "object",
      "properties": {
        "cost": {
          "type": "number"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_002": {
      "type": "object",
      "properties": {
        "cost": {
          "type": "number"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_003": {
      "type": "object",
      "properties": {
        "order": {
          "type": "array",
          "items": [
            {
              "type": "number"
            }
          ],
          "length": "variable unless the public input fixes it"
        },
        "ranks": {
          "type": "array",
          "items": [
            {
              "type": "number"
            }
          ],
          "length": "variable unless the public input fixes it"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_004": {
      "type": "object",
      "properties": {
        "order": {
          "type": "array",
          "items": [
            {
              "type": "number"
            }
          ],
          "length": "variable unless the public input fixes it"
        },
        "ranks": {
          "type": "array",
          "items": [
            {
              "type": "number"
            }
          ],
          "length": "variable unless the public input fixes it"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_005": {
      "type": "object",
      "properties": {
        "solved": {
          "type": "boolean"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_006": {
      "type": "object",
      "properties": {
        "solved": {
          "type": "boolean"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_007": {
      "type": "object",
      "properties": {
        "overlap": {
          "type": "number"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_008": {
      "type": "object",
      "properties": {
        "overlap": {
          "type": "number"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_009": {
      "type": "object",
      "properties": {
        "1": {
          "type": "object",
          "keys": "scientific identifiers from the current input, not fixed example IDs",
          "values": [
            {
              "type": "number"
            }
          ]
        },
        "5": {
          "type": "object",
          "keys": "scientific identifiers from the current input, not fixed example IDs",
          "values": [
            {
              "type": "number"
            }
          ]
        },
        "10": {
          "type": "object",
          "keys": "scientific identifiers from the current input, not fixed example IDs",
          "values": [
            {
              "type": "number"
            }
          ]
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_010": {
      "type": "object",
      "properties": {
        "proof": {
          "type": "number"
        },
        "disproof": {
          "type": "number"
        }
      },
      "extra_annotations_allowed": true
    }
  }
}