{ "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 } } }