{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/helena-bio/json-schema/helena-bio-browser-overview-response-schema.json",
  "title": "BrowserOverviewResponse",
  "description": "The coarse whole-genome aggregate (frontend BrowserGenomeOverview).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/helena-bio-browser-api-openapi.yml#/components/schemas/BrowserOverviewResponse",
  "properties": {
    "snvs": {
      "items": {
        "$ref": "#/$defs/BrowserSnvOut"
      },
      "type": "array",
      "title": "Snvs"
    },
    "svs": {
      "items": {
        "$ref": "#/$defs/BrowserSvOut"
      },
      "type": "array",
      "title": "Svs"
    },
    "lead": {
      "anyOf": [
        {
          "$ref": "#/$defs/BrowserLeadOut"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "snvs",
    "svs"
  ],
  "$defs": {
    "BrowserLeadOut": {
      "properties": {
        "chrom": {
          "type": "string",
          "title": "Chrom"
        },
        "pos": {
          "type": "integer",
          "title": "Pos"
        }
      },
      "type": "object",
      "required": [
        "chrom",
        "pos"
      ],
      "title": "BrowserLeadOut",
      "description": "The most-severe feature locus for the initial-view frame."
    },
    "BrowserSnvOut": {
      "properties": {
        "chrom": {
          "type": "string",
          "title": "Chrom"
        },
        "pos": {
          "type": "integer",
          "title": "Pos"
        },
        "gene": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Gene"
        },
        "cls": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cls"
        },
        "hgvs": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Hgvs"
        },
        "ref": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ref"
        },
        "alt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Alt"
        },
        "bayesdelNoaf": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Bayesdelnoaf"
        },
        "bayesdelNoafPred": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Bayesdelnoafpred"
        },
        "spliceaiMax": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Spliceaimax"
        },
        "spliceaiPred": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Spliceaipred"
        },
        "phylop": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Phylop"
        },
        "gerp": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Gerp"
        },
        "alphamissense": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Alphamissense"
        },
        "sift": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sift"
        },
        "metasvm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Metasvm"
        },
        "dann": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Dann"
        },
        "mpc": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mpc"
        },
        "af": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Af"
        },
        "afGrpmax": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Afgrpmax"
        },
        "popmax": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Popmax"
        },
        "hom": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Hom"
        },
        "loeuf": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Loeuf"
        },
        "misZ": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Misz"
        },
        "pli": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Pli"
        },
        "clinvarSig": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Clinvarsig"
        },
        "reviewStars": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Reviewstars"
        },
        "clinvarId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Clinvarid"
        },
        "criteria": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Criteria"
        },
        "confidence": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Confidence"
        },
        "consequence": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Consequence"
        },
        "impact": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Impact"
        },
        "hgvsCdna": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Hgvscdna"
        },
        "transcriptId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Transcriptid"
        },
        "transcriptRepresentations": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Transcriptrepresentations"
        },
        "exonNumber": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Exonnumber"
        },
        "domains": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Domains"
        },
        "pm1Source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Pm1Source"
        },
        "vcepApplied": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Vcepapplied"
        },
        "vcepPanel": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Vceppanel"
        },
        "deNovo": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Denovo"
        },
        "hiScore": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Hiscore"
        },
        "tsScore": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tsscore"
        }
      },
      "type": "object",
      "required": [
        "chrom",
        "pos"
      ],
      "title": "BrowserSnvOut",
      "description": "A small variant marker (frontend BrowserSnv).\n\nCR-2026-BROWSER-EVIDENCE-TRACKS-001-P1 (Wave 1, Phase 1): the five\nestablished fields (chrom, pos, gene, cls, hgvs) are UNCHANGED. Below them\n35 ADDITIVE per-variant evidence fields are appended, ALL Optional with a\nNone default (a pure additive contract widening -- an old frontend ignores\nthe unknown keys, a new frontend can be built against the widened contract).\nEach field is read from the per-session `variants` table; a session whose\ntable lacks a source column degrades to None via _evidence_columns_present\n(the schema-drift guard), so every field is genuinely optional.\n\nWire names are camelCase (matching the existing svType / iscaId convention).\nThe wire-name -> `variants` source-column mapping is CR Section 3a; the\nper-field types follow the source column types in variant_schema.py\n(re-verified 2026-06-20, Eunomia B1). CRITICAL (Eunomia B1): exonNumber and\npopmax are Optional[str] -- exon_number is VARCHAR(20) carrying the VEP\n\"X/Y\" form (e.g. \"3/12\"), popmax is VARCHAR(10) carrying a population LABEL,\nNOT a number; typing either as int would raise a Pydantic ValidationError\n-> 500 on a real coding-gene window, which the frontend degrade-clean\nhandler masks as a silently-empty browser."
    },
    "BrowserSvOut": {
      "properties": {
        "chrom": {
          "type": "string",
          "title": "Chrom"
        },
        "start": {
          "type": "integer",
          "title": "Start"
        },
        "end": {
          "type": "integer",
          "title": "End"
        },
        "svType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Svtype"
        },
        "cls": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cls"
        }
      },
      "type": "object",
      "required": [
        "chrom",
        "start",
        "end"
      ],
      "title": "BrowserSvOut",
      "description": "A structural variant span marker (frontend BrowserSv)."
    }
  }
}