{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "OwnGenome sample summary (bin/collect_summary.py)", "description": "Both reports are rendered from this file. og dev schema checks a summary against it.", "definitions": { "section": { "type": "object", "required": [ "title", "step", "state", "source", "file_date", "note", "data" ], "properties": { "title": { "type": "string" }, "step": { "type": "string" }, "state": { "enum": [ "ok", "missing", "stale", "unreadable", "failed" ] }, "source": { "type": [ "string", "null" ] }, "file_date": { "type": [ "string", "null" ] }, "note": { "type": [ "string", "null" ] }, "data": { "type": "object" } } } }, "type": "object", "required": [ "schema_version", "sample", "generated_utc", "run", "databases", "manifest", "sections", "cyp2d6", "not_run", "not_assessed" ], "properties": { "schema_version": { "enum": [ 2 ] }, "sample": { "type": "string" }, "generated_utc": { "type": "string" }, "run": { "type": "object", "required": [ "status_file", "started_utc", "declared_sex" ], "properties": { "status_file": { "type": "boolean" }, "started_utc": { "type": [ "string", "null" ] }, "declared_sex": { "type": [ "string", "null" ] } } }, "databases": { "type": "object", "required": [ "clinvar_release", "hla_database" ], "properties": { "clinvar_release": { "type": [ "string", "null" ] }, "hla_database": { "type": [ "string", "null" ] }, "cpsr_clinvar_release": { "type": [ "string", "null" ] } } }, "manifest": { "type": "array", "items": { "type": "array", "items": { "type": "string" }, "minItems": 3, "maxItems": 3 } }, "sections": { "type": "object", "required": [ "coverage", "sex_check", "variants", "clinvar", "pharmcat", "cpic", "pypgx", "cyrius", "hla", "prs", "manta", "delly", "cnvpytor", "sv_consensus", "expansions", "telomere", "roh", "haplogroup", "mito", "cpsr", "clinical", "slivar" ], "additionalProperties": { "$ref": "#/definitions/section" }, "properties": { "variants": { "allOf": [ { "$ref": "#/definitions/section" }, { "properties": { "data": { "type": "object", "properties": { "total": { "type": "integer", "minimum": 0 }, "pass": { "type": "integer", "minimum": 0 }, "snps": { "type": "integer", "minimum": 0 }, "indels": { "type": "integer", "minimum": 0 } } } } } ] }, "clinvar": { "allOf": [ { "$ref": "#/definitions/section" }, { "properties": { "data": { "type": "object", "properties": { "count": { "type": "integer", "minimum": 0 }, "by_stars": { "type": "object", "required": [ "4", "3", "2", "1", "0" ], "additionalProperties": { "type": "integer", "minimum": 0 } }, "hits": { "type": "array", "items": { "type": "object", "required": [ "stars", "chrom", "pos", "ref", "alt", "genotype", "gene", "significance", "review_status" ], "properties": { "stars": { "enum": [ 0, 1, 2, 3, 4 ] }, "pos": { "type": "integer", "minimum": 0 }, "chrom": { "type": "string" }, "gene": { "type": "string" }, "significance": { "type": "string" }, "review_status": { "type": "string" }, "combined_allele": { "type": "string" }, "dp": { "type": [ "integer", "null" ] }, "gq": { "type": [ "integer", "null" ] }, "low_confidence": { "type": "boolean" }, "af": { "type": [ "number", "null" ] }, "gnomad_exome_af": { "type": [ "number", "null" ] }, "gnomad_genome_af": { "type": [ "number", "null" ] }, "common": { "type": "boolean" } } } }, "low_confidence": { "type": "integer", "minimum": 0 }, "call_floor": { "type": "object", "required": [ "GQ", "DP" ], "properties": { "GQ": { "type": "integer", "minimum": 0 }, "DP": { "type": "integer", "minimum": 0 } } }, "frequency": { "type": "object", "required": [ "source", "note", "common_af" ], "properties": { "source": { "type": [ "string", "null" ] }, "note": { "type": [ "string", "null" ] }, "common_af": { "type": "number" } } } } } } } ] }, "cpic": { "allOf": [ { "$ref": "#/definitions/section" }, { "properties": { "data": { "type": "object", "properties": { "genes": { "type": "array", "items": { "type": "object", "required": [ "gene", "diplotype", "phenotype", "status" ], "properties": { "status": { "enum": [ "normal", "non-normal", "ambiguous", "not called", "unclassified", "" ] } } } }, "non_normal": { "type": "integer", "minimum": 0 }, "not_called": { "type": "integer", "minimum": 0 }, "parse_failed": { "type": "boolean" }, "warnings": { "type": "array", "items": { "type": "string" } }, "ambiguous": { "type": "integer", "minimum": 0 }, "unclassified": { "type": "integer", "minimum": 0 } } } } } ] }, "prs": { "allOf": [ { "$ref": "#/definitions/section" }, { "properties": { "data": { "type": "object", "properties": { "scores": { "type": "array", "items": { "type": "object", "required": [ "condition", "pgs_id", "score", "matched", "total" ] } } } } } } ] }, "coverage": { "allOf": [ { "$ref": "#/definitions/section" }, { "properties": { "data": { "type": "object", "properties": { "mean_depth": { "type": [ "number", "null" ] } } } } } ] }, "sex_check": { "allOf": [ { "$ref": "#/definitions/section" }, { "properties": { "data": { "type": "object", "properties": { "inferred_sex": { "enum": [ "male", "female", "unknown" ] } } } } } ] }, "telomere": { "allOf": [ { "$ref": "#/definitions/section" }, { "properties": { "data": { "type": "object", "properties": { "tel_content": { "type": "string" }, "intratelomeric_reads": { "type": "integer", "minimum": 0 }, "depth": { "type": "number" }, "read_floor": { "type": "integer", "minimum": 0 }, "low_reads": { "type": "boolean" }, "read_check": { "type": "string" } } } } } ] }, "roh": { "allOf": [ { "$ref": "#/definitions/section" }, { "properties": { "data": { "type": "object", "properties": { "segments": { "type": "integer", "minimum": 0 }, "total_mb": { "type": "number" }, "largest_mb": { "type": "number" }, "autosomal_over_5mb": { "type": "array", "items": { "type": "object", "required": [ "region", "mb" ], "properties": { "region": { "type": "string" }, "mb": { "type": "number" }, "masked_mb": { "type": "number" } } } }, "masked_mb": { "type": "number" }, "sex_chromosome_segments": { "type": "integer", "minimum": 0 } } } } } ] }, "mito": { "allOf": [ { "$ref": "#/definitions/section" }, { "properties": { "data": { "type": "object", "properties": { "pass": { "type": "integer", "minimum": 0 }, "heteroplasmic": { "type": "integer", "minimum": 0 }, "heteroplasmy_floor": { "type": "number" }, "polyc_heteroplasmic": { "type": "array", "items": { "type": "object", "required": [ "variant", "af" ], "properties": { "variant": { "type": "string" }, "af": { "type": "number" } } } }, "polyc_tracts": { "type": "array", "items": { "type": "string" } }, "annotation": { "type": "object", "properties": { "source": { "type": "string" }, "note": { "type": "string" }, "clinvar": { "type": [ "string", "null" ] }, "gnomad": { "type": [ "string", "null" ] }, "clinvar_plp": { "type": "integer", "minimum": 0 }, "variants": { "type": "array", "items": { "type": "object", "required": [ "pos", "ref", "alt", "polyc" ], "properties": { "pos": { "type": [ "string", "null" ] }, "ref": { "type": [ "string", "null" ] }, "alt": { "type": [ "string", "null" ] }, "af": { "type": [ "string", "null" ] }, "clinvar_id": { "type": [ "string", "null" ] }, "clinvar_significance": { "type": [ "string", "null" ] }, "clinvar_review": { "type": [ "string", "null" ] }, "clinvar_condition": { "type": [ "string", "null" ] }, "gnomad_af_hom": { "type": [ "string", "null" ] }, "gnomad_af_het": { "type": [ "string", "null" ] }, "gnomad_max_hl": { "type": [ "string", "null" ] }, "polyc": { "type": "boolean" } } } } } } } } } } ] }, "pypgx": { "allOf": [ { "$ref": "#/definitions/section" }, { "properties": { "data": { "type": "object", "properties": { "genes_total": { "type": "integer", "minimum": 0 }, "genes_called": { "type": "integer", "minimum": 0 }, "cyp2d6": { "type": "string" }, "cnv_call": { "type": "object", "additionalProperties": { "type": "string" } }, "not_callable": { "type": "array", "items": { "type": "string" } }, "low_gq": { "type": "array", "items": { "type": "object", "required": [ "gene", "diplotype", "min_gq", "weakest" ], "properties": { "gene": { "type": "string" }, "diplotype": { "type": "string" }, "min_gq": { "type": [ "integer", "null" ] }, "weakest": { "type": "string" } } } }, "cyp2d6_evidence": { "type": "object", "properties": { "phenotype": { "type": "string" }, "defining_filter": { "type": "string" }, "quality": { "type": "string" } } }, "depth_check": { "type": "object", "additionalProperties": { "type": "string" } } } } } } ] }, "cyrius": { "allOf": [ { "$ref": "#/definitions/section" }, { "properties": { "data": { "type": "object", "properties": { "genotype": { "type": "string" }, "filter": { "type": "string" } } } } } ] }, "hla": { "allOf": [ { "$ref": "#/definitions/section" }, { "properties": { "data": { "type": "object", "properties": { "loci": { "type": "array", "items": { "type": "object", "required": [ "gene", "alleles", "quality", "low_confidence", "withheld_from_pharmcat", "candidates", "one_allele_type" ], "properties": { "gene": { "type": "string" }, "alleles": { "type": "array", "items": { "type": "string" } }, "quality": { "type": "array", "items": { "type": "string" } }, "low_confidence": { "type": "boolean" }, "withheld_from_pharmcat": { "type": "boolean" }, "candidates": { "type": "array", "items": { "type": "integer", "minimum": 0 } }, "one_allele_type": { "type": "boolean" }, "label": { "type": "string" } } } }, "derived": { "type": "object", "required": [ "coeliac", "alleles" ], "properties": { "coeliac": { "type": "object", "required": [ "status", "reason", "dq2_5", "dq2_5_phase", "dq2_2", "dq8", "dqb1_02_dose" ], "properties": { "status": { "type": "string", "enum": [ "derived", "not_determined" ] }, "reason": { "type": "string" }, "dq2_5": { "type": [ "string", "null" ], "enum": [ "present", "absent", "uncertain", null ] }, "dq2_5_phase": { "type": [ "string", "null" ] }, "dq2_2": { "type": [ "string", "null" ], "enum": [ "present", "absent", "uncertain", null ] }, "dq8": { "type": [ "string", "null" ], "enum": [ "present", "absent", "uncertain", null ] }, "dqb1_02_dose": { "type": [ "integer", "null" ], "minimum": 0, "enum": [ 0, 1, 2, null ] } } }, "alleles": { "type": "array", "items": { "type": "object", "required": [ "allele", "kind", "association", "pmids", "citation", "state", "reason" ], "properties": { "allele": { "type": "string" }, "kind": { "type": "string", "enum": [ "drug", "disease" ] }, "association": { "type": "string" }, "pmids": { "type": "string" }, "citation": { "type": "string" }, "state": { "type": "string", "enum": [ "present", "absent", "uncertain", "not_determined" ] }, "reason": { "type": "string" } } } } } } } } } } ] }, "expansions": { "allOf": [ { "$ref": "#/definitions/section" }, { "properties": { "data": { "type": "object", "properties": { "records": { "type": "integer", "minimum": 0 }, "key_loci": { "type": "array", "items": { "type": "object", "required": [ "locus", "repeat_count" ] } }, "stranger": { "type": "boolean" }, "stranger_outdated": { "type": "boolean" }, "flagged": { "type": "array", "items": { "type": "object", "required": [ "locus", "repeat_count", "status" ], "properties": { "locus": { "type": "string" }, "repeat_count": { "type": "string" }, "status": { "type": "string" }, "sizing": { "enum": [ "no_call", "flanking_only", "in_repeat", "low_confidence", "sized", "unknown" ] }, "rfc1_motif": { "type": "object", "required": [ "verdict", "note" ], "properties": { "verdict": { "enum": [ "benign_motif", "pathogenic_motif", "uncertain_motif", "not_resolved", "not_checked" ] }, "note": { "type": "string" }, "dominant_motif": { "type": "string" }, "dominant_class": { "type": "string" }, "dominant_share": { "type": "string" }, "motif_shares": { "type": "string" }, "repeat_reads": { "type": "string" } } } } } }, "no_status": { "type": "integer", "minimum": 0 }, "loci": { "type": "array", "items": { "type": "object", "required": [ "locus", "repeat_count", "status", "normal_max", "support", "ci", "sizing", "zone" ], "properties": { "locus": { "type": "string" }, "repeat_count": { "type": "string" }, "status": { "type": "string" }, "normal_max": { "type": "string" }, "pathologic_min": { "type": "string" }, "support": { "type": "string" }, "adsp": { "type": "string" }, "ci": { "type": "string" }, "sizing": { "enum": [ "no_call", "flanking_only", "in_repeat", "low_confidence", "sized", "unknown" ] }, "allele_sizing": { "type": "string" }, "zone": { "type": "string" }, "zone_label": { "type": "string" }, "zone_citation": { "type": "string" }, "rfc1_motif": { "type": "object", "required": [ "verdict", "note" ], "properties": { "verdict": { "enum": [ "benign_motif", "pathogenic_motif", "uncertain_motif", "not_resolved", "not_checked" ] }, "note": { "type": "string" }, "dominant_motif": { "type": "string" }, "dominant_class": { "type": "string" }, "dominant_share": { "type": "string" }, "motif_shares": { "type": "string" }, "repeat_reads": { "type": "string" } } } } } }, "unsized": { "type": "array", "items": { "type": "string" } }, "intermediate": { "type": "array", "items": { "type": "string" } } } } } } ] }, "cpsr": { "allOf": [ { "$ref": "#/definitions/section" }, { "properties": { "data": { "type": "object", "properties": { "html_report": { "type": "boolean" }, "classification_column": { "type": [ "string", "null" ] }, "classification": { "type": "object", "additionalProperties": { "type": "integer", "minimum": 0 } }, "plp": { "type": "array", "items": { "type": "object", "required": [ "variant", "gene", "final", "dp", "low_confidence" ], "properties": { "variant": { "type": "string" }, "gene": { "type": "string" }, "final": { "type": "string" }, "cpsr": { "type": [ "string", "null" ] }, "clinvar": { "type": [ "string", "null" ] }, "authority": { "type": [ "string", "null" ] }, "acmg_codes": { "type": [ "string", "null" ] }, "dp": { "type": [ "integer", "null" ] }, "low_confidence": { "type": "boolean" }, "cdna": { "type": "object", "required": [ "check", "note" ], "properties": { "check": { "enum": [ "flagged", "clear", "not_checked" ] }, "note": { "type": "string" } } } } } }, "disagreements": { "type": "array", "items": { "type": "object", "required": [ "variant", "gene", "final", "dp", "low_confidence" ], "properties": { "variant": { "type": "string" }, "gene": { "type": "string" }, "final": { "type": "string" }, "cpsr": { "type": [ "string", "null" ] }, "clinvar": { "type": [ "string", "null" ] }, "authority": { "type": [ "string", "null" ] }, "acmg_codes": { "type": [ "string", "null" ] }, "dp": { "type": [ "integer", "null" ] }, "low_confidence": { "type": "boolean" }, "cdna": { "type": "object", "required": [ "check", "note" ], "properties": { "check": { "enum": [ "flagged", "clear", "not_checked" ] }, "note": { "type": "string" } } } } } }, "final_plp_own_benign": { "type": "integer", "minimum": 0 }, "own_class_column": { "type": [ "string", "null" ] }, "low_confidence": { "type": "integer", "minimum": 0 }, "call_floor_dp": { "type": "integer", "minimum": 0 }, "cdna_flagged": { "type": "integer", "minimum": 0 } } } } } ] }, "cnvpytor": { "allOf": [ { "$ref": "#/definitions/section" }, { "properties": { "data": { "type": "object", "properties": { "total": { "type": "integer", "minimum": 0 }, "deletions": { "type": "integer", "minimum": 0 }, "duplications": { "type": "integer", "minimum": 0 }, "significant": { "type": "integer", "minimum": 0 }, "significant_filtered": { "type": "integer", "minimum": 0 }, "filtered_chry": { "type": "integer", "minimum": 0 }, "dropped": { "type": "object", "additionalProperties": { "type": "integer", "minimum": 0 } }, "declared_sex": { "type": [ "string", "null" ] } } } } } ] }, "annotsv": { "allOf": [ { "$ref": "#/definitions/section" }, { "properties": { "data": { "type": "object", "properties": { "count": { "type": "integer", "minimum": 0 }, "single_caller": { "type": "integer", "minimum": 0 }, "exon_edge": { "type": "integer", "minimum": 0 }, "common": { "type": "integer", "minimum": 0 }, "exon_edge_checked": { "type": "boolean" }, "consensus": { "type": [ "string", "null" ] }, "consensus_note": { "type": [ "string", "null" ] }, "rows": { "type": "array", "items": { "type": "object", "required": [ "sv", "type", "acmg_class", "genes", "caller", "support", "support_callers", "exon_edge", "population_af", "common" ], "properties": { "sv": { "type": "string" }, "type": { "type": "string" }, "length": { "type": "string" }, "acmg_class": { "enum": [ "4", "5" ] }, "genes": { "type": "array", "items": { "type": "string" } }, "caller": { "type": "string" }, "support": { "type": [ "integer", "null" ], "minimum": 1 }, "support_callers": { "type": "array", "items": { "type": "string" } }, "exon_edge": { "enum": [ "yes", "no", ".", "not checked" ] }, "exon_edge_detail": { "type": "string" }, "population_af": { "type": [ "number", "null" ], "minimum": 0 }, "population_source": { "type": "string" }, "common": { "type": "boolean" } } } } } } } } ] } } }, "cyp2d6": { "type": "object", "required": [ "calls", "agree", "consensus" ], "properties": { "calls": { "type": "object", "additionalProperties": { "type": [ "string", "null" ] } }, "agree": { "type": [ "boolean", "null" ] }, "consensus": { "type": [ "object", "null" ], "required": [ "result", "passed_to_pharmcat", "reason", "source" ], "properties": { "result": { "type": "string" }, "passed_to_pharmcat": { "type": "boolean" }, "reason": { "type": "string" }, "source": { "type": [ "string", "null" ] } } }, "probable": { "type": [ "object", "null" ], "required": [ "diplotype", "phenotype", "label" ], "properties": { "diplotype": { "type": "string" }, "phenotype": { "type": "string" }, "label": { "enum": [ "probable (one caller: pypgx)" ] } } } } }, "not_run": { "type": "array", "items": { "type": "string" } }, "not_assessed": { "type": "array", "items": { "type": "string" }, "minItems": 1 } } }