{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/helena-bio/json-schema/helena-bio-vep-cache-stats-response-schema.json",
  "title": "VepCacheStatsResponse",
  "description": "Response for GET /preprocessing/vep-cache/stats.",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/helena-bio-openapi.json#/components/schemas/VepCacheStatsResponse",
  "properties": {
    "file_exists": {
      "type": "boolean",
      "title": "File Exists"
    },
    "file_size_bytes": {
      "type": "integer",
      "title": "File Size Bytes",
      "default": 0
    },
    "file_size_human": {
      "type": "string",
      "title": "File Size Human",
      "default": "0 B"
    },
    "vep_version": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Vep Version"
    },
    "positive_count": {
      "type": "integer",
      "title": "Positive Count",
      "default": 0
    },
    "negative_count": {
      "type": "integer",
      "title": "Negative Count",
      "default": 0
    },
    "total_count": {
      "type": "integer",
      "title": "Total Count",
      "default": 0
    },
    "oldest_entry": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Oldest Entry"
    },
    "newest_entry": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Newest Entry"
    },
    "dedup_cutoff": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dedup Cutoff"
    },
    "impact_distribution": {
      "items": {
        "$ref": "#/$defs/VepCacheDistributionEntry"
      },
      "type": "array",
      "title": "Impact Distribution",
      "default": []
    },
    "consequence_distribution": {
      "items": {
        "$ref": "#/$defs/VepCacheDistributionEntry"
      },
      "type": "array",
      "title": "Consequence Distribution",
      "default": []
    },
    "biotype_distribution": {
      "items": {
        "$ref": "#/$defs/VepCacheDistributionEntry"
      },
      "type": "array",
      "title": "Biotype Distribution",
      "default": []
    },
    "chromosome_distribution": {
      "items": {
        "$ref": "#/$defs/VepCacheChromosomeEntry"
      },
      "type": "array",
      "title": "Chromosome Distribution",
      "default": []
    },
    "sample_positive": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Sample Positive",
      "default": []
    },
    "sample_negative": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Sample Negative",
      "default": []
    },
    "query_time_ms": {
      "type": "integer",
      "title": "Query Time Ms",
      "default": 0
    }
  },
  "type": "object",
  "required": [
    "file_exists"
  ],
  "$defs": {
    "VepCacheChromosomeEntry": {
      "properties": {
        "chromosome": {
          "type": "string",
          "title": "Chromosome"
        },
        "positive": {
          "type": "integer",
          "title": "Positive"
        },
        "negative": {
          "type": "integer",
          "title": "Negative"
        }
      },
      "type": "object",
      "required": [
        "chromosome",
        "positive",
        "negative"
      ],
      "title": "VepCacheChromosomeEntry",
      "description": "Chromosome-level cache coverage."
    },
    "VepCacheDistributionEntry": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label"
        },
        "count": {
          "type": "integer",
          "title": "Count"
        },
        "pct": {
          "type": "number",
          "title": "Pct",
          "default": 0.0
        }
      },
      "type": "object",
      "required": [
        "label",
        "count"
      ],
      "title": "VepCacheDistributionEntry",
      "description": "Single row in a distribution breakdown."
    }
  }
}