{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ranomics-com/json-schema/ranomics-com-results-schema.json",
  "title": "Results",
  "description": "Yeast-display result shape. Per-sequence enrichment counts and called_hit booleans, plus signed download URLs for the enrichment table, hits FASTA, and the raw NGS reads (the last only when the customer opted in at submission).",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ranomics-com-openapi.json#/components/schemas/Results",
  "properties": {
    "downloads": {
      "properties": {
        "enrichment_table_csv": {
          "format": "uri",
          "type": "string"
        },
        "hits_fasta": {
          "format": "uri",
          "type": "string"
        },
        "raw_reads_fastq": {
          "format": "uri",
          "type": "string"
        }
      },
      "type": "object"
    },
    "experiment_id": {
      "format": "uuid",
      "type": "string"
    },
    "results_status": {
      "$ref": "#/$defs/ResultsStatusEnum"
    },
    "rounds": {
      "items": {
        "properties": {
          "input_diversity": {
            "type": "integer"
          },
          "output_diversity": {
            "type": "integer"
          },
          "round_id": {
            "type": "string"
          },
          "sort_gate": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "sequences": {
      "items": {
        "properties": {
          "called_hit": {
            "type": "boolean"
          },
          "log2_enrichment": {
            "type": "number"
          },
          "percentile": {
            "type": "number"
          },
          "post_count": {
            "type": "integer"
          },
          "pre_count": {
            "type": "integer"
          },
          "sequence": {
            "type": "string"
          },
          "user_key": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "status": {
      "$ref": "#/$defs/StatusEnum"
    }
  },
  "type": "object",
  "$defs": {
    "ResultsStatusEnum": {
      "enum": [
        "none",
        "partial",
        "all"
      ],
      "type": "string"
    },
    "StatusEnum": {
      "enum": [
        "Draft",
        "WaitingForConfirmation",
        "QuoteSent",
        "WaitingForMaterials",
        "LibraryConstruction",
        "Sorting",
        "NGS",
        "DataAnalysis",
        "InReview",
        "Done",
        "Cancelled"
      ],
      "type": "string"
    }
  }
}