{
  "openapi": "3.0.3",
  "info": {
    "title": "NMD-VCell Research Workbench DMD-prior API",
    "version": "1.2",
    "description": "Typed DMD-prior audit API. The published dmd-prior-qweighted-context-v0.9 result is frozen; dmd-prior-source-balanced-v1.0 is preregistered but not computed.",
    "x-resource-release": "v1.0.0-database-resource",
    "x-input-freeze": "2026-07-25",
    "x-result-freeze": "2026-07-25",
    "x-interface-build": "EA-20260729-15"
  },
  "paths": {
    "/resource/api/v1.2/dmd-prior/genes/{gene}.json": {
      "get": {
        "summary": "Typed DMD-prior and source-level audit for one Atlas gene",
        "parameters": [
          {
            "name": "gene",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9-]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "DMD-prior gene audit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DmdPriorGene"
                }
              }
            }
          },
          "404": {
            "description": "Gene not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/resource/api/v1.2/dmd-prior/sources.json": {
      "get": {
        "summary": "Source pipeline and evidence-channel metadata",
        "responses": {
          "200": {
            "description": "Typed source inventory"
          }
        }
      }
    },
    "/resource/api/v1.2/dmd-prior/concordance.json": {
      "get": {
        "summary": "Typed descriptive pairwise source concordance",
        "responses": {
          "200": {
            "description": "Pairwise concordance matrix"
          }
        }
      }
    },
    "/resource/api/v1.2/dmd-prior/robustness.json": {
      "get": {
        "summary": "Preregistered robustness rules and empty governed result set",
        "responses": {
          "200": {
            "description": "Robustness registry"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "SourceEffect": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "source_id",
          "evidence_channel",
          "median_effect",
          "median_signed_score",
          "n_contexts",
          "n_rows",
          "n_significant",
          "source_direction"
        ],
        "properties": {
          "source_id": {
            "type": "string"
          },
          "evidence_channel": {
            "type": "string",
            "enum": [
              "observed_expression",
              "regulatory_inference"
            ]
          },
          "median_effect": {
            "type": "number"
          },
          "median_signed_score": {
            "type": "number"
          },
          "n_contexts": {
            "type": "integer",
            "minimum": 0
          },
          "n_rows": {
            "type": "integer",
            "minimum": 0
          },
          "n_significant": {
            "type": "integer",
            "minimum": 0
          },
          "source_direction": {
            "type": "integer",
            "enum": [
              -1,
              0,
              1
            ]
          }
        }
      },
      "DmdPriorGene": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "dmd_prior_schema",
          "resource_release",
          "algorithm",
          "gene",
          "coverage",
          "legacy_integrated_prior",
          "source_effects",
          "robustness",
          "conflict_classification",
          "claim_boundary"
        ],
        "properties": {
          "dmd_prior_schema": {
            "type": "string",
            "enum": [
              "nmd-vcell-dmd-prior-gene/1.2"
            ]
          },
          "resource_release": {
            "type": "string",
            "enum": [
              "v1.0.0-database-resource"
            ]
          },
          "algorithm": {
            "type": "object"
          },
          "gene": {
            "type": "string"
          },
          "coverage": {
            "type": "object"
          },
          "legacy_integrated_prior": {
            "type": "object"
          },
          "source_effects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SourceEffect"
            }
          },
          "robustness": {
            "type": "object"
          },
          "conflict_classification": {
            "type": "object"
          },
          "claim_boundary": {
            "type": "string"
          }
        }
      },
      "Error": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "error_code",
          "message"
        ],
        "properties": {
          "error_code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      }
    }
  }
}
