File size: 10,397 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
256
257
{
  "schema": "neutral-paper-reproduction-v101",
  "paper_id": "P227",
  "title": "Building a knowledge graph to enable precision medicine",
  "question": "Recompute the PrimeKG paper’s own graph, relation, feature and shortest-path results from the supplied full released graph. Preserve node and edge identities, complete denominators and the actual per-record derivation.",
  "inputs": [
    "docs/",
    "inputs/"
  ],
  "scientific_outputs": {
    "method_probe_results.json": "Map methodID to {value}; compute input/calculations.json (hidden replay changes input).",
    "node_assignments.csv.gz": "Every original node row in source order, five columns.",
    "node_counts.json": "{total:int,counts:{original_node_type:int}} computed from original record assignments.",
    "edge_projection.csv.gz": "Every original directed relationship in source order, four columns.",
    "relation_counts.json": "{total:int,counts:{original_relation:int}} preserving reciprocal records.",
    "drug_feature_presence.csv": "Per nonempty original feature record: kind,node_index,field,value_sha256 in analysis_contract order.",
    "drug_feature_statistics.json": "Map field to {count,unique} recomputed from complete feature records.",
    "shortest_path_distances.json": "Map original path claimID to distance; endpoint mapping and full BFS distance vector required.",
    "distances/U06.path.NN.csv": "Every original node: node_index,distance, increasing node index; unreachable encoded null.",
    "reproduction_report.md": "Original result reproduction distance, failed/missing experiments, provenance/method changes/cost, and explicit full-paper conclusion.",
    "disease_feature_records.csv.gz": "Complete original visible disease annotation rows in source order; columns node_index,mondo_id and13 clinical fields from analysis_contract; preserve exact cells.",
    "disease_feature_statistics.json": "Map unprocessed/processed to clinical field or combined→{count,unique}, using the explicit published-record aggregation rule. This does not earn new BERT/grouping/extraction credit.",
    "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."
  },
  "scientific_details": {
    "scientific_derivation_requirement": "Numerically matching hard-coded paper aggregate values alone is invalid, even if raw inputs were copied. Submitted source and execution must show actual computation; an independent judge reviews provenance/method fidelity. Record-based checks and hidden method probes do not establish label-blind prediction."
  },
  "calculation_definitions": {
    "calc_001": {
      "definition": "Project a multirelational directed graph to unique undirected vertex pairs. Retain self loops once. Return sorted pairs and pair count. Do not count reciprocal copies twice.",
      "output": {}
    },
    "calc_002": {
      "definition": "Unweighted undirected shortest-path distance: traverse all relation types, merge reciprocal/parallel edges, and return null if disconnected. Return one distance per query.",
      "output": {}
    },
    "calc_003": {
      "definition": "Count directed relation records exactly as supplied, including reciprocal records. Return sorted relation counts and total records. This differs from the undirected biological relationship count.",
      "output": {}
    },
    "calc_004": {
      "definition": "A tabular feature is present when its stripped string is nonempty. Preserve the original nonempty text INCLUDING boundary whitespace for uniqueness, as in paper Table3; identical original text across different nodes counts twice but unique once. Return count, unique and percent using the full node denominator.",
      "output": {}
    },
    "calc_005": {
      "definition": "Paper disease phrase candidate: drop the final token when it is numeric, a Roman numeral, alphanumeric of length<2, or the second-last token is type. Otherwise keep the name. Remove type and (disease) from the resulting token set for matching, sort lowercase tokens. This only checks string grouping, not ClinicalBERT/manual approval.",
      "output": {}
    },
    "calc_006": {
      "definition": "Compute cosine similarity for each nonzero pair of embedding vectors and classify accepted exactly when similarity>=0.98. Supplied vectors are numerical method checks, not substitutes for original ClinicalBERT embeddings.",
      "output": {}
    },
    "calc_007": {
      "definition": "Given distances to non-indicated sampled diseases and the indicated distance, calculate the empirical one-sided proportion with random distance<=indicated distance. Use the explicitly supplied complete list; return numerator, denominator and proportion. This is a numerical tail rule, not the missing historical 1000-disease sample.",
      "output": {}
    },
    "calc_008": {
      "definition": "Bonferroni-adjust each supplied p-value by the number of hypotheses, cap at1, and report rejection at adjusted p<=0.05. Return in original order.",
      "output": {}
    },
    "calc_009": {
      "definition": "For the supplied finite random shortest distances, return mean and normal-approximation two-sided95% CI mean +/-1.96 sample_SD/sqrt(n), with sample variance denominator n-1. This statistical numerical rule does not reproduce a historical random draw.",
      "output": {}
    },
    "calc_010": {
      "definition": "Apply the supplied disease group mapping to every endpoint, project to unique undirected pairs and retain resulting self loops once. Return pairs and count. The supplied mapping is a numerical check, not an inferred full-paper disease grouping.",
      "output": {}
    }
  },
  "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": {
        "pairs": {
          "type": "array",
          "items": [
            {
              "items": [
                {
                  "type": "number"
                }
              ],
              "length": "variable unless the public input fixes it",
              "type": "array"
            }
          ],
          "length": "variable unless the public input fixes it"
        },
        "count": {
          "type": "number"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_002": {
      "type": "array",
      "items": [
        {
          "type": "null or scientific value, according to the operation"
        },
        {
          "type": "number"
        }
      ],
      "length": "variable unless the public input fixes it"
    },
    "calc_003": {
      "type": "object",
      "properties": {
        "relations": {
          "type": "object",
          "keys": "scientific identifiers from the current input, not fixed example IDs",
          "values": [
            {
              "type": "number"
            }
          ]
        },
        "total": {
          "type": "number"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_004": {
      "type": "object",
      "properties": {
        "count": {
          "type": "number"
        },
        "unique": {
          "type": "number"
        },
        "percent": {
          "type": "number"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_005": {
      "type": "array",
      "items": [
        {
          "items": [
            {
              "type": "string"
            }
          ],
          "length": "variable unless the public input fixes it",
          "type": "array"
        }
      ],
      "length": "variable unless the public input fixes it"
    },
    "calc_006": {
      "type": "object",
      "properties": {
        "similarity": {
          "type": "number"
        },
        "accepted": {
          "type": "boolean"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_007": {
      "type": "object",
      "properties": {
        "numerator": {
          "type": "number"
        },
        "denominator": {
          "type": "number"
        },
        "proportion": {
          "type": "number"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_008": {
      "type": "array",
      "items": [
        {
          "keys": "scientific identifiers from the current input, not fixed example IDs",
          "type": "object",
          "values": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            }
          ]
        }
      ],
      "length": "variable unless the public input fixes it"
    },
    "calc_009": {
      "type": "object",
      "properties": {
        "mean": {
          "type": "number"
        },
        "lower": {
          "type": "number"
        },
        "upper": {
          "type": "number"
        }
      },
      "extra_annotations_allowed": true
    },
    "calc_010": {
      "type": "object",
      "properties": {
        "pairs": {
          "type": "array",
          "items": [
            {
              "items": [
                {
                  "type": "number"
                }
              ],
              "length": "variable unless the public input fixes it",
              "type": "array"
            }
          ],
          "length": "variable unless the public input fixes it"
        },
        "count": {
          "type": "number"
        }
      },
      "extra_annotations_allowed": true
    }
  }
}