{"openapi":"3.1.0","info":{"title":"EquiGenes API","version":"2.0.0","description":"Versioned API for equine genetics. The current category is coat genetics, covering coat color and pattern inheritance. Contract version: v2 2.0.0."},"servers":[{"url":"https://api.equi-genes.com"}],"tags":[{"name":"Coats","description":"Coat genetics operations: coat-color and pattern calculations, loci and population catalogs, genotype inference, and phase analysis."}],"components":{"schemas":{"ApiError":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"$ref":"#/components/schemas/Identifier"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/ValidationIssue"}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"Identifier":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-z][a-z0-9._-]*$","description":"Stable, language-neutral identifier."},"ValidationIssue":{"type":"object","properties":{"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"code":{"$ref":"#/components/schemas/Identifier"}},"required":["path","code"],"additionalProperties":false},"HorseCoatCatalogV2Response":{"type":"object","properties":{"apiContractVersion":{"type":"string"},"engineModelVersion":{"type":"string"},"category":{"type":"string","enum":["coat"],"description":"Stable domain category for this catalog. Future API catalogs can introduce other categories without mixing their reference data."},"calculationLocusKeys":{"type":"array","items":{"type":"string"}},"catalog":{"type":"object","properties":{"version":{"type":"string"},"commonNames":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"labelKey":{"type":"string"},"englishName":{"type":"string"},"base":{"type":"string","enum":["coat.base.chestnut","coat.base.bay","coat.base.black"]},"cream":{"type":"string","enum":["none","unknown","coat.dilution.cream.single-dose","coat.dilution.cream.double-dose"]},"modifier":{"type":["string","null"],"enum":["coat.dilution.dun","coat.dilution.champagne","coat.dilution.silver","coat.dilution.mushroom",null]},"sourceUrls":{"type":"array","items":{"type":"string","format":"uri"},"minItems":1}},"required":["id","labelKey","englishName","base","cream","modifier","sourceUrls"],"additionalProperties":false},"description":"Sourced common coat-name concepts with English labels and stable localization keys. Observation shortcuts, not unique genotypes. Unknown Cream/Pearl and unlisted modifiers remain unknown."},"sources":{"type":"object","additionalProperties":{"type":"object","properties":{"title":{"type":"string"},"url":{"type":"string","format":"uri"},"year":{"type":"integer"},"kind":{"type":"string","enum":["primary-study","veterinary-reference","reference-database"]}},"required":["title","url","kind"],"additionalProperties":false}},"loci":{"type":"object","additionalProperties":{"type":"object","properties":{"id":{"type":"string"},"geneSymbol":{"type":"string"},"chromosome":{"type":"string"},"alleles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"symbol":{"type":"string"},"role":{"type":"string"}},"required":["id","symbol","role"],"additionalProperties":false}},"dominanceOrder":{"type":"array","items":{"type":"string"}},"sourceIds":{"type":"array","items":{"type":"string"}},"evidenceLevel":{"type":"string"},"reviewedAt":{"type":"string","format":"date"}},"required":["id","geneSymbol","chromosome","alleles","sourceIds","evidenceLevel","reviewedAt"],"additionalProperties":false}},"patterns":{"type":"object","additionalProperties":{"type":"object","properties":{"id":{"type":"string"},"category":{"type":"string","enum":["white-spotting","pattern-modifier","associated-marker"]},"chromosome":{"type":"string"},"chromosomes":{"type":"array","items":{"type":"string"}},"geneSymbols":{"type":"array","items":{"type":"string"}},"locusIds":{"type":"array","items":{"type":"string"}},"variants":{"type":"array","items":{"type":"object","properties":{"symbol":{"type":"string"},"name":{"type":"string"},"geneSymbol":{"type":"string"},"evidenceLevel":{"type":"string","enum":["established","emerging","associated-marker"]},"sourceIds":{"type":"array","items":{"type":"string"}}},"required":["symbol","name","evidenceLevel","sourceIds"],"additionalProperties":false}},"sourceIds":{"type":"array","items":{"type":"string"}},"ruleId":{"type":"string"},"notes":{"type":"array","items":{"type":"string"}}},"required":["id","category","geneSymbols","locusIds","variants","sourceIds","ruleId"],"additionalProperties":false}},"rules":{"type":"object","additionalProperties":{"type":"object","properties":{"id":{"type":"string"},"sourceIds":{"type":"array","items":{"type":"string"}},"summaryKey":{"type":"string"},"associatedEffectKey":{"type":"string"},"reviewedAt":{"type":"string","format":"date"}},"required":["id","sourceIds","summaryKey","reviewedAt"],"additionalProperties":false}}},"required":["version","sources","loci","patterns","rules"],"additionalProperties":false}},"required":["apiContractVersion","engineModelVersion","category","calculationLocusKeys","catalog"],"additionalProperties":false,"description":"Language-neutral reference data for the coat-genetics category: loci, alleles, modeled pattern variants, evidence references, and rule identifiers. Display labels can be localized by clients."},"CoatPopulationListV2Response":{"type":"object","properties":{"apiContractVersion":{"type":"string"},"category":{"type":"string","enum":["coat"]},"dataset":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Identifier"},"version":{"type":"string","minLength":1},"source":{"type":"object","properties":{"title":{"type":"string","minLength":1},"authors":{"type":"array","items":{"type":"string","minLength":1},"minItems":1},"year":{"type":"integer","exclusiveMinimum":0},"doi":{"type":"string","minLength":1},"url":{"type":"string","format":"uri"},"supplementaryTables":{"type":"array","items":{"type":"string","minLength":1}},"license":{"type":"string","minLength":1}},"required":["title","authors","year","doi","url","supplementaryTables","license"],"additionalProperties":false},"methods":{"type":"object","properties":{"testedHorses":{"type":"integer","exclusiveMinimum":0},"breeds":{"type":"integer","exclusiveMinimum":0},"filteredHorses":{"type":"integer","exclusiveMinimum":0},"relatednessFiltering":{"type":"string","minLength":1},"frequencyRounding":{"type":"string","minLength":1},"caveat":{"type":"string","minLength":1}},"required":["testedHorses","breeds","filteredHorses","relatednessFiltering","frequencyRounding","caveat"],"additionalProperties":false}},"required":["id","version","source","methods"],"additionalProperties":false},"profiles":{"type":"array","items":{"type":"object","properties":{"profileId":{"$ref":"#/components/schemas/Identifier"},"breedId":{"$ref":"#/components/schemas/Identifier"},"breedName":{"type":"string","minLength":1},"sampleSizeBeforeRelatednessFiltering":{"type":"integer","exclusiveMinimum":0},"sampleSizeAfterRelatednessFiltering":{"type":"integer","exclusiveMinimum":0},"lociWithFrequencyData":{"type":"integer","minimum":0}},"required":["profileId","breedId","breedName","sampleSizeBeforeRelatednessFiltering","sampleSizeAfterRelatednessFiltering","lociWithFrequencyData"],"additionalProperties":false}}},"required":["apiContractVersion","category","dataset","profiles"],"additionalProperties":false,"description":"Lists sourced breed-level coat-variant frequency profiles from the UC Davis VGL 2022 study. A profile describes a tested cohort, not every horse of a breed."},"CoatPopulationProfileV2Response":{"type":"object","properties":{"apiContractVersion":{"type":"string"},"category":{"type":"string","enum":["coat"]},"dataset":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Identifier"},"version":{"type":"string","minLength":1},"source":{"type":"object","properties":{"title":{"type":"string","minLength":1},"authors":{"type":"array","items":{"type":"string","minLength":1},"minItems":1},"year":{"type":"integer","exclusiveMinimum":0},"doi":{"type":"string","minLength":1},"url":{"type":"string","format":"uri"},"supplementaryTables":{"type":"array","items":{"type":"string","minLength":1}},"license":{"type":"string","minLength":1}},"required":["title","authors","year","doi","url","supplementaryTables","license"],"additionalProperties":false},"methods":{"type":"object","properties":{"testedHorses":{"type":"integer","exclusiveMinimum":0},"breeds":{"type":"integer","exclusiveMinimum":0},"filteredHorses":{"type":"integer","exclusiveMinimum":0},"relatednessFiltering":{"type":"string","minLength":1},"frequencyRounding":{"type":"string","minLength":1},"caveat":{"type":"string","minLength":1}},"required":["testedHorses","breeds","filteredHorses","relatednessFiltering","frequencyRounding","caveat"],"additionalProperties":false}},"required":["id","version","source","methods"],"additionalProperties":false},"profile":{"type":"object","properties":{"profileId":{"$ref":"#/components/schemas/Identifier"},"breedId":{"$ref":"#/components/schemas/Identifier"},"breedName":{"type":"string","minLength":1},"sampleSizeBeforeRelatednessFiltering":{"type":"integer","exclusiveMinimum":0},"sampleSizeAfterRelatednessFiltering":{"type":"integer","exclusiveMinimum":0},"lociWithFrequencyData":{"type":"integer","minimum":0},"frequencies":{"type":"object","additionalProperties":{"type":"object","properties":{"geneSymbol":{"type":"string","minLength":1},"sampleSize":{"type":["integer","null"],"exclusiveMinimum":0},"frequencies":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ProbabilityFraction"}}},"required":["geneSymbol","sampleSize","frequencies"],"additionalProperties":false}}},"required":["profileId","breedId","breedName","sampleSizeBeforeRelatednessFiltering","sampleSizeAfterRelatednessFiltering","lociWithFrequencyData","frequencies"],"additionalProperties":false},"interpretation":{"type":"object","properties":{"observedZeroFrequencyMeans":{"type":"string","minLength":1},"frequencyPriorAssumptions":{"type":"array","items":{"type":"string","minLength":1}}},"required":["observedZeroFrequencyMeans","frequencyPriorAssumptions"],"additionalProperties":false}},"required":["apiContractVersion","category","dataset","profile","interpretation"],"additionalProperties":false,"description":"Returns the study's per-locus allele-frequency estimates, source cohort sizes, and interpretation limits for one breed profile."},"ProbabilityFraction":{"type":"number","minimum":0,"maximum":1,"description":"Probability from 0 to 1."},"CalculateV2Request":{"type":"object","properties":{"dam":{"$ref":"#/components/schemas/CoatEngineV2ParentInput"},"sire":{"$ref":"#/components/schemas/CoatEngineV2ParentInput"},"mode":{"type":"string","enum":["full","summary"]},"linkedChromosome3":{"$ref":"#/components/schemas/LinkedChromosome3InputV2"},"linkedSplashedWhite":{"$ref":"#/components/schemas/LinkedSplashedWhiteInputV2"},"leopardPatternModifier":{"$ref":"#/components/schemas/LeopardPatternModifierInputV2"},"includeJointPatternOutcomes":{"type":"boolean","enum":[true]},"includeJointCoatPatternOutcomes":{"type":"boolean","enum":[true]}},"required":["dam","sire"],"additionalProperties":false,"description":"Parents may be described by genotype or structured phenotype observation. Phenotype-mode parents can select a published populationProfileId or provide explicit alleleFrequencyEvidence, but not both; supported loci are then weighted under Hardy-Weinberg equilibrium. Omit both for the uniform-compatible-genotype baseline. Omit mode or set it to full for the complete distribution. Set mode to summary for outcomes.coatGroups: the ten most probable reference coats, using base color and one defining dilution. The naming priority is Cream/Pearl, Champagne, Dun, Silver, then Mushroom; it is a presentation convention, not biological dominance. Each group aggregates all its outcomes before ranking. Characteristic probability is joint among all conceptions; conditionalProbability is within the coat group. Characteristics can overlap. Named-group coverage and omitted mass are not renormalized. Non-viable conceptions remain included. Complete base-coat and global trait probabilities, plus the existing specific-appearance topOutcomes list, are also retained. Optional linked pattern sub-calculations require known genotypes and caller-sourced recombination fractions. Set includeJointPatternOutcomes to true to combine the phased ECA3, chromosome 6/16 Splashed White, and chromosome 1 Leopard submodels; set includeJointCoatPatternOutcomes to true to join those motifs to the complete ten-locus coat phenotype while preserving shared loci."},"CoatEngineV2ParentInput":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["genotype"]},"genotype":{"$ref":"#/components/schemas/CoatEngineV2Genotype"}},"required":["mode","genotype"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","enum":["phenotype"]},"observation":{"$ref":"#/components/schemas/CoatPhenotypeObservationV2"},"alleleFrequencyEvidence":{"type":"array","items":{"$ref":"#/components/schemas/AlleleFrequencyEvidenceV2"}},"populationProfileId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-z][a-z0-9._-]*$","description":"Optional sourced coat-population profile used to provide allele-frequency priors at loci with data. This cannot be combined with alleleFrequencyEvidence."}},"required":["mode","observation"],"additionalProperties":false}]},"CoatEngineV2Genotype":{"type":"object","properties":{"extension":{"$ref":"#/components/schemas/CoatEngineV2ExtensionGenotype"},"agouti":{"$ref":"#/components/schemas/CoatEngineV2AgoutiGenotype"},"slc45a2":{"$ref":"#/components/schemas/CoatEngineV2Slc45a2Genotype"},"dun":{"$ref":"#/components/schemas/CoatEngineV2DunGenotype"},"champagne":{"$ref":"#/components/schemas/CoatEngineV2ChampagneGenotype"},"silver":{"$ref":"#/components/schemas/CoatEngineV2SilverGenotype"},"mushroom":{"$ref":"#/components/schemas/CoatEngineV2MushroomGenotype"},"gray":{"$ref":"#/components/schemas/CoatEngineV2GrayGenotype"},"frame":{"$ref":"#/components/schemas/CoatEngineV2FrameGenotype"},"leopard":{"$ref":"#/components/schemas/CoatEngineV2LeopardGenotype"}},"required":["extension","agouti","slc45a2","dun","champagne","silver","mushroom","gray","frame","leopard"],"additionalProperties":false,"description":"Known genotypes for the ten loci currently modeled by the coat engine v2."},"CoatEngineV2ExtensionGenotype":{"type":"array","prefixItems":[{"type":"string","enum":["E","e","ea"]},{"type":"string","enum":["E","e","ea"]}]},"CoatEngineV2AgoutiGenotype":{"type":"array","prefixItems":[{"type":"string","enum":["A","a"]},{"type":"string","enum":["A","a"]}]},"CoatEngineV2Slc45a2Genotype":{"type":"array","prefixItems":[{"type":"string","enum":["N","Cr","Prl"]},{"type":"string","enum":["N","Cr","Prl"]}]},"CoatEngineV2DunGenotype":{"type":"array","prefixItems":[{"type":"string","enum":["D","nd1","nd2"]},{"type":"string","enum":["D","nd1","nd2"]}]},"CoatEngineV2ChampagneGenotype":{"type":"array","prefixItems":[{"type":"string","enum":["N","Ch"]},{"type":"string","enum":["N","Ch"]}]},"CoatEngineV2SilverGenotype":{"type":"array","prefixItems":[{"type":"string","enum":["N","Z"]},{"type":"string","enum":["N","Z"]}]},"CoatEngineV2MushroomGenotype":{"type":"array","prefixItems":[{"type":"string","enum":["N","Mu"]},{"type":"string","enum":["N","Mu"]}]},"CoatEngineV2GrayGenotype":{"type":"array","prefixItems":[{"type":"string","enum":["N","G2","G3"]},{"type":"string","enum":["N","G2","G3"]}]},"CoatEngineV2FrameGenotype":{"type":"array","prefixItems":[{"type":"string","enum":["N","O"]},{"type":"string","enum":["N","O"]}]},"CoatEngineV2LeopardGenotype":{"type":"array","prefixItems":[{"type":"string","enum":["N","LP"]},{"type":"string","enum":["N","LP"]}]},"CoatPhenotypeObservationV2":{"type":"object","properties":{"base":{"type":"string","enum":["coat.base.chestnut","coat.base.bay","coat.base.black"]},"creamPearlDilutions":{"type":"array","items":{"type":"string","enum":["coat.dilution.cream.single-dose","coat.dilution.cream.double-dose","coat.dilution.pearl.double-dose","coat.dilution.cream-pearl.compound"]}},"additionalDilutions":{"type":"array","items":{"type":"string","enum":["coat.dilution.dun","coat.dilution.champagne","coat.dilution.silver","coat.dilution.mushroom"]},"description":"Complete legacy observation of four dilutions: listed effects are visible, unlisted effects are not visibly observed. Omit the array if the whole group is unknown."},"additionalDilutionStates":{"type":"object","properties":{"coat.dilution.dun":{"type":"boolean"},"coat.dilution.champagne":{"type":"boolean"},"coat.dilution.silver":{"type":"boolean"},"coat.dilution.mushroom":{"type":"boolean"}},"description":"Independent visible dilution observations. true means observed present; false means not visibly observed; an omitted key means unknown. A missing visible effect is not a negative genetic test. Prefer this field for partial information."},"progressiveGraying":{"type":"boolean"},"framePattern":{"type":"string","enum":["present"]},"leopardComplex":{"type":"string","enum":["present"]}},"required":["base"],"additionalProperties":false,"description":"Observed traits; omitted fields mean unknown, and variable pattern absence is not used as a negative genotype test."},"AlleleFrequencyEvidenceV2":{"type":"object","properties":{"locusId":{"type":"string","enum":["locus.extension","locus.agouti","locus.slc45a2","locus.dun","locus.champagne","locus.silver","locus.mushroom","locus.gray","locus.frame-overo","locus.leopard-complex"]},"frequencies":{"type":"object","additionalProperties":{"type":"number","minimum":0,"maximum":1}},"sampleSize":{"type":"integer","exclusiveMinimum":0},"referencePopulation":{"type":"string","minLength":1},"sources":{"type":"array","items":{"$ref":"#/components/schemas/Identifier"},"minItems":1},"reviewedAt":{"type":"string","format":"date"}},"required":["locusId","frequencies","referencePopulation","sources","reviewedAt"],"additionalProperties":false,"description":"Sourced allele frequencies. The engine derives genotype priors under Hardy-Weinberg equilibrium only when explicitly provided."},"LinkedChromosome3InputV2":{"type":"object","properties":{"dam":{"type":"object","properties":{"haplotypes":{"type":"array","prefixItems":[{"type":"object","properties":{"extension":{"type":"string","enum":["E","e","ea"]},"patternVariants":{"type":"array","items":{"type":"string","enum":["TO","SB1","W5","W10","W13","W20","W22"]}},"classicRoanMarker":{"type":"string","enum":["N","Rn"]},"patn1":{"type":"string","enum":["N","PATN1"]}},"required":["extension","patternVariants"],"additionalProperties":false},{"type":"object","properties":{"extension":{"type":"string","enum":["E","e","ea"]},"patternVariants":{"type":"array","items":{"type":"string","enum":["TO","SB1","W5","W10","W13","W20","W22"]}},"classicRoanMarker":{"type":"string","enum":["N","Rn"]},"patn1":{"type":"string","enum":["N","PATN1"]}},"required":["extension","patternVariants"],"additionalProperties":false}]},"intervalRecombination":{"type":"object","properties":{"fraction":{"type":"number","minimum":0,"maximum":0.5},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false},"patn1ToExtensionRecombination":{"type":"object","properties":{"fraction":{"type":"number","minimum":0,"maximum":0.5},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false}},"required":["haplotypes","intervalRecombination"],"additionalProperties":false},"sire":{"type":"object","properties":{"haplotypes":{"type":"array","prefixItems":[{"type":"object","properties":{"extension":{"type":"string","enum":["E","e","ea"]},"patternVariants":{"type":"array","items":{"type":"string","enum":["TO","SB1","W5","W10","W13","W20","W22"]}},"classicRoanMarker":{"type":"string","enum":["N","Rn"]},"patn1":{"type":"string","enum":["N","PATN1"]}},"required":["extension","patternVariants"],"additionalProperties":false},{"type":"object","properties":{"extension":{"type":"string","enum":["E","e","ea"]},"patternVariants":{"type":"array","items":{"type":"string","enum":["TO","SB1","W5","W10","W13","W20","W22"]}},"classicRoanMarker":{"type":"string","enum":["N","Rn"]},"patn1":{"type":"string","enum":["N","PATN1"]}},"required":["extension","patternVariants"],"additionalProperties":false}]},"intervalRecombination":{"type":"object","properties":{"fraction":{"type":"number","minimum":0,"maximum":0.5},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false},"patn1ToExtensionRecombination":{"type":"object","properties":{"fraction":{"type":"number","minimum":0,"maximum":0.5},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false}},"required":["haplotypes","intervalRecombination"],"additionalProperties":false}},"required":["dam","sire"],"additionalProperties":false,"description":"Explicit parental ECA3 phase. PATN1/RFWD3, when supplied, is ordered before Extension and requires a caller-sourced recombination fraction; Extension-to-white-pattern-block recombination is also caller-sourced. The model treats these intervals separately and does not model crossover interference. KIT-pattern variants and the optional classic-roan-associated marker are transmitted as one block without internal recombination. The roan marker is associated, not known to be causal."},"LinkedSplashedWhiteInputV2":{"type":"object","properties":{"dam":{"type":"object","properties":{"chromosome6Haplotypes":{"type":"array","prefixItems":[{"type":"object","properties":{"silver":{"type":"string","enum":["N","Z"]},"pax3Variants":{"type":"array","items":{"type":"string","enum":["SW2","SW4","SW10"]}}},"required":["silver","pax3Variants"],"additionalProperties":false},{"type":"object","properties":{"silver":{"type":"string","enum":["N","Z"]},"pax3Variants":{"type":"array","items":{"type":"string","enum":["SW2","SW4","SW10"]}}},"required":["silver","pax3Variants"],"additionalProperties":false}]},"mitfHaplotypes":{"type":"array","prefixItems":[{"type":"object","properties":{"variants":{"type":"array","items":{"type":"string","enum":["SW1","SW3","SW5","SW6","SW7","SW8","SW9"]}}},"required":["variants"],"additionalProperties":false},{"type":"object","properties":{"variants":{"type":"array","items":{"type":"string","enum":["SW1","SW3","SW5","SW6","SW7","SW8","SW9"]}}},"required":["variants"],"additionalProperties":false}]},"silverToPax3Recombination":{"type":"object","properties":{"fraction":{"type":"number","minimum":0,"maximum":0.5},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false}},"required":["chromosome6Haplotypes","mitfHaplotypes","silverToPax3Recombination"],"additionalProperties":false},"sire":{"type":"object","properties":{"chromosome6Haplotypes":{"type":"array","prefixItems":[{"type":"object","properties":{"silver":{"type":"string","enum":["N","Z"]},"pax3Variants":{"type":"array","items":{"type":"string","enum":["SW2","SW4","SW10"]}}},"required":["silver","pax3Variants"],"additionalProperties":false},{"type":"object","properties":{"silver":{"type":"string","enum":["N","Z"]},"pax3Variants":{"type":"array","items":{"type":"string","enum":["SW2","SW4","SW10"]}}},"required":["silver","pax3Variants"],"additionalProperties":false}]},"mitfHaplotypes":{"type":"array","prefixItems":[{"type":"object","properties":{"variants":{"type":"array","items":{"type":"string","enum":["SW1","SW3","SW5","SW6","SW7","SW8","SW9"]}}},"required":["variants"],"additionalProperties":false},{"type":"object","properties":{"variants":{"type":"array","items":{"type":"string","enum":["SW1","SW3","SW5","SW6","SW7","SW8","SW9"]}}},"required":["variants"],"additionalProperties":false}]},"silverToPax3Recombination":{"type":"object","properties":{"fraction":{"type":"number","minimum":0,"maximum":0.5},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false}},"required":["chromosome6Haplotypes","mitfHaplotypes","silverToPax3Recombination"],"additionalProperties":false}},"required":["dam","sire"],"additionalProperties":false,"description":"Explicit chromosome 6 PMEL/Silver and PAX3 phases, chromosome 16 MITF phases, and caller-sourced Silver-to-PAX3 recombination fractions. Results are returned as a separate sub-distribution."},"LeopardPatternModifierInputV2":{"type":"object","properties":{"dam":{"type":"object","properties":{"patn1":{"type":"array","prefixItems":[{"type":"string","enum":["N","PATN1"]},{"type":"string","enum":["N","PATN1"]}]}},"required":["patn1"],"additionalProperties":false},"sire":{"type":"object","properties":{"patn1":{"type":"array","prefixItems":[{"type":"string","enum":["N","PATN1"]},{"type":"string","enum":["N","PATN1"]}]}},"required":["patn1"],"additionalProperties":false}},"required":["dam","sire"],"additionalProperties":false,"description":"Known PATN1 genotypes are combined with each parent's known TRPM1/LP genotype. LP on chromosome 1 and PATN1/RFWD3 on chromosome 3 assort independently in this model."},"CalculateV2Response":{"type":"object","properties":{"contractVersion":{"type":"string","enum":["2.0.0"]},"modelVersion":{"$ref":"#/components/schemas/Identifier"},"outcomes":{"type":"array","items":{"$ref":"#/components/schemas/CoatCrossOutcomeV2"}},"linkedChromosome3":{"type":"object","properties":{"outcomes":{"type":"array","items":{"type":"object","properties":{"extension":{"type":"array","prefixItems":[{"type":"string","enum":["E","e","ea"]},{"type":"string","enum":["E","e","ea"]}]},"classicRoanMarker":{"type":"array","prefixItems":[{"type":"string","enum":["N","Rn"]},{"type":"string","enum":["N","Rn"]}]},"patn1":{"type":"array","prefixItems":[{"type":"string","enum":["N","PATN1"]},{"type":"string","enum":["N","PATN1"]}]},"phenotype":{"type":"object","properties":{"effects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["coat.pattern.tobiano","coat.pattern.sabino-1","coat.pattern.dominant-white"]},"variant":{"type":"string","enum":["TO","SB1","W5","W10","W13","W20","W22"]},"variantCopies":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"expression":{"type":"string","enum":["variable","typically-extensive-white"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","variant","variantCopies","expression","sourceRuleId"],"additionalProperties":false}},"classicRoanMarker":{"type":"object","properties":{"markerCopies":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"interpretation":{"type":"string","enum":["associated-haplotype-detected","associated-haplotype-not-detected"]},"caveat":{"type":"string","enum":["marker-associated-not-causal"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["markerCopies","interpretation","caveat","sourceRuleId"],"additionalProperties":false},"viability":{"type":"object","properties":{"status":{"type":"string","enum":["viable","suspected-non-viable","uncertain"]},"reasons":{"type":"array","items":{"type":"string"}}},"required":["status","reasons"],"additionalProperties":false},"catalogVersion":{"type":"string","minLength":1}},"required":["effects","viability","catalogVersion"],"additionalProperties":false},"probability":{"$ref":"#/components/schemas/ProbabilityFraction"}},"required":["extension","phenotype","probability"],"additionalProperties":false}},"recombinationMap":{"type":"object","properties":{"dam":{"type":"object","properties":{"fraction":{"$ref":"#/components/schemas/ProbabilityFraction"},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false},"sire":{"type":"object","properties":{"fraction":{"$ref":"#/components/schemas/ProbabilityFraction"},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false}},"required":["dam","sire"],"additionalProperties":false},"patn1ToExtensionRecombinationMap":{"type":"object","properties":{"dam":{"type":"object","properties":{"fraction":{"$ref":"#/components/schemas/ProbabilityFraction"},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false},"sire":{"type":"object","properties":{"fraction":{"$ref":"#/components/schemas/ProbabilityFraction"},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false}},"required":["dam","sire"],"additionalProperties":false},"patternBlockAssumption":{"type":"string","enum":["no-internal-recombination"]}},"required":["outcomes","recombinationMap","patternBlockAssumption"],"additionalProperties":false},"linkedSplashedWhite":{"type":"object","properties":{"outcomes":{"type":"array","items":{"type":"object","properties":{"silver":{"type":"array","prefixItems":[{"type":"string","enum":["N","Z"]},{"type":"string","enum":["N","Z"]}]},"phenotype":{"type":"object","properties":{"effects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["coat.pattern.splashed-white"]},"variant":{"type":"string","enum":["SW1","SW2","SW3","SW4","SW5","SW6","SW7","SW8","SW9","SW10"]},"gene":{"type":"string","enum":["MITF","PAX3"]},"variantCopies":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"expression":{"type":"string","enum":["variable"]},"evidenceLevel":{"type":"string","enum":["established","emerging"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","variant","gene","variantCopies","expression","evidenceLevel","sourceRuleId"],"additionalProperties":false}},"viability":{"type":"object","properties":{"status":{"type":"string","enum":["viable","uncertain"]},"reasons":{"type":"array","items":{"type":"string"}}},"required":["status","reasons"],"additionalProperties":false},"catalogVersion":{"type":"string","minLength":1}},"required":["effects","viability","catalogVersion"],"additionalProperties":false},"probability":{"$ref":"#/components/schemas/ProbabilityFraction"}},"required":["silver","phenotype","probability"],"additionalProperties":false}},"silverToPax3RecombinationMap":{"type":"object","properties":{"dam":{"type":"object","properties":{"fraction":{"$ref":"#/components/schemas/ProbabilityFraction"},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false},"sire":{"type":"object","properties":{"fraction":{"$ref":"#/components/schemas/ProbabilityFraction"},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false}},"required":["dam","sire"],"additionalProperties":false},"chromosome6PatternBlockAssumption":{"type":"string","enum":["no-internal-recombination"]},"mitfHaplotypeAssumption":{"type":"string","enum":["no-internal-recombination"]}},"required":["outcomes","silverToPax3RecombinationMap","chromosome6PatternBlockAssumption","mitfHaplotypeAssumption"],"additionalProperties":false},"leopardPatternModifier":{"type":"object","properties":{"outcomes":{"type":"array","items":{"type":"object","properties":{"leopard":{"type":"array","prefixItems":[{"type":"string","enum":["N","LP"]},{"type":"string","enum":["N","LP"]}]},"patn1":{"type":"array","prefixItems":[{"type":"string","enum":["N","PATN1"]},{"type":"string","enum":["N","PATN1"]}]},"phenotype":{"type":"object","properties":{"leopardComplexPresent":{"type":"boolean"},"patn1Copies":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"increasedWhiteModifierActive":{"type":"boolean"},"whitePatternCategory":{"type":"string","enum":["no-leopard-complex","variable-leopard-complex","increased-white-leopard-complex"]},"associatedEffects":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Identifier"},"variantCopies":{"type":"number","enum":[2]},"relationship":{"type":"string","enum":["expected-condition","increased-risk-association"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","variantCopies","relationship","sourceRuleId"],"additionalProperties":false}},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"},"catalogVersion":{"type":"string","minLength":1}},"required":["leopardComplexPresent","patn1Copies","increasedWhiteModifierActive","whitePatternCategory","associatedEffects","sourceRuleId","catalogVersion"],"additionalProperties":false},"probability":{"$ref":"#/components/schemas/ProbabilityFraction"}},"required":["leopard","patn1","phenotype","probability"],"additionalProperties":false}},"assortmentAssumption":{"type":"string","enum":["independent-chromosomes"]}},"required":["outcomes","assortmentAssumption"],"additionalProperties":false},"jointPatternOutcomes":{"type":"object","properties":{"outcomes":{"type":"array","items":{"type":"object","properties":{"chromosome3":{"type":"object","properties":{"extension":{"type":"array","prefixItems":[{"type":"string","enum":["E","e","ea"]},{"type":"string","enum":["E","e","ea"]}]},"classicRoanMarker":{"type":"array","prefixItems":[{"type":"string","enum":["N","Rn"]},{"type":"string","enum":["N","Rn"]}]},"patn1":{"type":"array","prefixItems":[{"type":"string","enum":["N","PATN1"]},{"type":"string","enum":["N","PATN1"]}]},"phenotype":{"type":"object","properties":{"effects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["coat.pattern.tobiano","coat.pattern.sabino-1","coat.pattern.dominant-white"]},"variant":{"type":"string","enum":["TO","SB1","W5","W10","W13","W20","W22"]},"variantCopies":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"expression":{"type":"string","enum":["variable","typically-extensive-white"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","variant","variantCopies","expression","sourceRuleId"],"additionalProperties":false}},"classicRoanMarker":{"type":"object","properties":{"markerCopies":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"interpretation":{"type":"string","enum":["associated-haplotype-detected","associated-haplotype-not-detected"]},"caveat":{"type":"string","enum":["marker-associated-not-causal"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["markerCopies","interpretation","caveat","sourceRuleId"],"additionalProperties":false},"viability":{"type":"object","properties":{"status":{"type":"string","enum":["viable","suspected-non-viable","uncertain"]},"reasons":{"type":"array","items":{"type":"string"}}},"required":["status","reasons"],"additionalProperties":false},"catalogVersion":{"type":"string","minLength":1}},"required":["effects","viability","catalogVersion"],"additionalProperties":false}},"required":["extension","patn1","phenotype"],"additionalProperties":false},"splashedWhite":{"type":"object","properties":{"silver":{"type":"array","prefixItems":[{"type":"string","enum":["N","Z"]},{"type":"string","enum":["N","Z"]}]},"phenotype":{"type":"object","properties":{"effects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["coat.pattern.splashed-white"]},"variant":{"type":"string","enum":["SW1","SW2","SW3","SW4","SW5","SW6","SW7","SW8","SW9","SW10"]},"gene":{"type":"string","enum":["MITF","PAX3"]},"variantCopies":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"expression":{"type":"string","enum":["variable"]},"evidenceLevel":{"type":"string","enum":["established","emerging"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","variant","gene","variantCopies","expression","evidenceLevel","sourceRuleId"],"additionalProperties":false}},"viability":{"type":"object","properties":{"status":{"type":"string","enum":["viable","uncertain"]},"reasons":{"type":"array","items":{"type":"string"}}},"required":["status","reasons"],"additionalProperties":false},"catalogVersion":{"type":"string","minLength":1}},"required":["effects","viability","catalogVersion"],"additionalProperties":false}},"required":["silver","phenotype"],"additionalProperties":false},"leopard":{"type":"array","prefixItems":[{"type":"string","enum":["N","LP"]},{"type":"string","enum":["N","LP"]}]},"leopardPatternModifier":{"type":"object","properties":{"leopardComplexPresent":{"type":"boolean"},"patn1Copies":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"increasedWhiteModifierActive":{"type":"boolean"},"whitePatternCategory":{"type":"string","enum":["no-leopard-complex","variable-leopard-complex","increased-white-leopard-complex"]},"associatedEffects":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Identifier"},"variantCopies":{"type":"number","enum":[2]},"relationship":{"type":"string","enum":["expected-condition","increased-risk-association"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","variantCopies","relationship","sourceRuleId"],"additionalProperties":false}},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"},"catalogVersion":{"type":"string","minLength":1}},"required":["leopardComplexPresent","patn1Copies","increasedWhiteModifierActive","whitePatternCategory","associatedEffects","sourceRuleId","catalogVersion"],"additionalProperties":false},"probability":{"$ref":"#/components/schemas/ProbabilityFraction"}},"required":["chromosome3","splashedWhite","leopard","leopardPatternModifier","probability"],"additionalProperties":false}},"betweenChromosomeGroupsAssumption":{"type":"string","enum":["independent-assortment"]},"scope":{"type":"string","enum":["pattern-submodels-only"]}},"required":["outcomes","betweenChromosomeGroupsAssumption","scope"],"additionalProperties":false},"jointCoatPatternOutcomes":{"type":"object","properties":{"outcomes":{"type":"array","items":{"$ref":"#/components/schemas/FullCoatPatternCrossOutcomeV2"}},"betweenChromosomeGroupsAssumption":{"type":"string","enum":["independent-assortment"]},"scope":{"type":"string","enum":["full-coat-and-pattern-submodels"]}},"required":["outcomes","betweenChromosomeGroupsAssumption","scope"],"additionalProperties":false},"trace":{"type":"object","properties":{"method":{"type":"string","enum":["weighted-parent-genotype-hypotheses","factorized-parent-distributions"]},"damHypothesisCount":{"type":"integer","exclusiveMinimum":0},"sireHypothesisCount":{"type":"integer","exclusiveMinimum":0},"damGameteCount":{"type":"integer","exclusiveMinimum":0},"sireGameteCount":{"type":"integer","exclusiveMinimum":0},"catalogVersion":{"type":"string","minLength":1},"parents":{"type":"array","prefixItems":[{"type":"object","properties":{"mode":{"type":"string","enum":["genotype","phenotype"]},"weighting":{"type":"string","enum":["known-genotype","uniform-compatible-genotypes","locus-allele-frequency-prior"]},"compatibleGenotypeCount":{"type":"integer","exclusiveMinimum":0},"populationProfileId":{"$ref":"#/components/schemas/Identifier"},"populationDatasetVersion":{"type":"string","minLength":1},"populationPriorEstimator":{"type":"string","enum":["jeffreys-dirichlet-half-count"]},"inference":{"type":"object","properties":{"compatibleGenotypeCount":{"type":"integer","minimum":0},"weighting":{"type":"string","enum":["uniform-compatible-genotypes","locus-allele-frequency-prior"]},"catalogVersion":{"type":"string","minLength":1},"scope":{"type":"string","enum":["ten-locus-coat-model"]},"representation":{"type":"string","enum":["factorized"]},"frequencyEvidence":{"type":"array","items":{"type":"object","properties":{"locusId":{"$ref":"#/components/schemas/Identifier"},"frequencies":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ProbabilityFraction"}},"referencePopulation":{"type":"string","minLength":1},"sources":{"type":"array","items":{"$ref":"#/components/schemas/Identifier"}},"reviewedAt":{"type":"string","format":"date"},"sampleSize":{"type":"integer","exclusiveMinimum":0},"genotypePriorModel":{"type":"string","enum":["hardy-weinberg"]}},"required":["locusId","frequencies","referencePopulation","sources","reviewedAt","genotypePriorModel"],"additionalProperties":false}}},"required":["compatibleGenotypeCount","weighting","catalogVersion","scope","representation"],"additionalProperties":false}},"required":["mode","weighting","compatibleGenotypeCount"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","enum":["genotype","phenotype"]},"weighting":{"type":"string","enum":["known-genotype","uniform-compatible-genotypes","locus-allele-frequency-prior"]},"compatibleGenotypeCount":{"type":"integer","exclusiveMinimum":0},"populationProfileId":{"$ref":"#/components/schemas/Identifier"},"populationDatasetVersion":{"type":"string","minLength":1},"populationPriorEstimator":{"type":"string","enum":["jeffreys-dirichlet-half-count"]},"inference":{"type":"object","properties":{"compatibleGenotypeCount":{"type":"integer","minimum":0},"weighting":{"type":"string","enum":["uniform-compatible-genotypes","locus-allele-frequency-prior"]},"catalogVersion":{"type":"string","minLength":1},"scope":{"type":"string","enum":["ten-locus-coat-model"]},"representation":{"type":"string","enum":["factorized"]},"frequencyEvidence":{"type":"array","items":{"type":"object","properties":{"locusId":{"$ref":"#/components/schemas/Identifier"},"frequencies":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ProbabilityFraction"}},"referencePopulation":{"type":"string","minLength":1},"sources":{"type":"array","items":{"$ref":"#/components/schemas/Identifier"}},"reviewedAt":{"type":"string","format":"date"},"sampleSize":{"type":"integer","exclusiveMinimum":0},"genotypePriorModel":{"type":"string","enum":["hardy-weinberg"]}},"required":["locusId","frequencies","referencePopulation","sources","reviewedAt","genotypePriorModel"],"additionalProperties":false}}},"required":["compatibleGenotypeCount","weighting","catalogVersion","scope","representation"],"additionalProperties":false}},"required":["mode","weighting","compatibleGenotypeCount"],"additionalProperties":false}]}},"required":["method","damHypothesisCount","sireHypothesisCount","damGameteCount","sireGameteCount","catalogVersion","parents"],"additionalProperties":false}},"required":["contractVersion","modelVersion","outcomes","trace"],"additionalProperties":false,"description":"Probabilities are fractions from 0 to 1; all conception outcomes, including non-viable Frame O/O, remain in the distribution."},"CoatCrossOutcomeV2":{"type":"object","properties":{"phenotype":{"$ref":"#/components/schemas/FullCoatPhenotypeV2"},"probability":{"$ref":"#/components/schemas/ProbabilityFraction"}},"required":["phenotype","probability"],"additionalProperties":false},"FullCoatPhenotypeV2":{"type":"object","properties":{"base":{"type":"object","properties":{"base":{"type":"string","enum":["coat.base.chestnut","coat.base.bay","coat.base.black"]},"dilutions":{"type":"array","items":{"$ref":"#/components/schemas/Identifier"}},"sourceRuleIds":{"type":"array","items":{"$ref":"#/components/schemas/Identifier"}},"catalogVersion":{"type":"string","minLength":1}},"required":["base","dilutions","sourceRuleIds","catalogVersion"],"additionalProperties":false},"additionalModifiers":{"type":"object","properties":{"coatEffects":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Identifier"},"locusId":{"$ref":"#/components/schemas/Identifier"},"variantCopies":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"visibleOnBase":{"type":"boolean"},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","locusId","variantCopies","visibleOnBase","sourceRuleId"],"additionalProperties":false}},"features":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Identifier"},"expression":{"type":"string","enum":["typical","possible"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","expression","sourceRuleId"],"additionalProperties":false}},"associatedEffects":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Identifier"},"variantCopies":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","variantCopies","sourceRuleId"],"additionalProperties":false}},"catalogVersion":{"type":"string","minLength":1}},"required":["coatEffects","features","associatedEffects","catalogVersion"],"additionalProperties":false},"gray":{"type":"object","properties":{"progressiveGraying":{"type":"boolean"},"progressionRate":{"type":"string","enum":["none","slow","fast"]},"associatedEffects":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Identifier"},"variantCopies":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","variantCopies","sourceRuleId"],"additionalProperties":false}},"catalogVersion":{"type":"string","minLength":1}},"required":["progressiveGraying","progressionRate","associatedEffects","catalogVersion"],"additionalProperties":false},"spottingPatterns":{"type":"object","properties":{"effects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["coat.pattern.frame-overo"]},"locusId":{"$ref":"#/components/schemas/Identifier"},"variantCopies":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"expression":{"type":"string","enum":["variable","lethal-white-syndrome"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","locusId","variantCopies","expression","sourceRuleId"],"additionalProperties":false}},"viability":{"type":"object","properties":{"status":{"type":"string","enum":["viable","not-viable"]},"conditions":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Identifier"},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","sourceRuleId"],"additionalProperties":false}}},"required":["status","conditions"],"additionalProperties":false},"catalogVersion":{"type":"string","minLength":1}},"required":["effects","viability","catalogVersion"],"additionalProperties":false},"leopardComplex":{"type":"object","properties":{"effects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["coat.pattern.leopard-complex"]},"locusId":{"$ref":"#/components/schemas/Identifier"},"variantCopies":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"expression":{"type":"string","enum":["variable"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","locusId","variantCopies","expression","sourceRuleId"],"additionalProperties":false}},"associatedEffects":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Identifier"},"variantCopies":{"type":"number","enum":[2]},"relationship":{"type":"string","enum":["expected-condition","increased-risk-association"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","variantCopies","relationship","sourceRuleId"],"additionalProperties":false}},"catalogVersion":{"type":"string","minLength":1}},"required":["effects","associatedEffects","catalogVersion"],"additionalProperties":false}},"required":["base","additionalModifiers","gray","spottingPatterns","leopardComplex"],"additionalProperties":false},"FullCoatPatternCrossOutcomeV2":{"type":"object","properties":{"phenotype":{"$ref":"#/components/schemas/FullCoatPhenotypeV2"},"patterns":{"type":"object","properties":{"chromosome3":{"type":"object","properties":{"extension":{"type":"array","prefixItems":[{"type":"string","enum":["E","e","ea"]},{"type":"string","enum":["E","e","ea"]}]},"classicRoanMarker":{"type":"array","prefixItems":[{"type":"string","enum":["N","Rn"]},{"type":"string","enum":["N","Rn"]}]},"patn1":{"type":"array","prefixItems":[{"type":"string","enum":["N","PATN1"]},{"type":"string","enum":["N","PATN1"]}]},"phenotype":{"type":"object","properties":{"effects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["coat.pattern.tobiano","coat.pattern.sabino-1","coat.pattern.dominant-white"]},"variant":{"type":"string","enum":["TO","SB1","W5","W10","W13","W20","W22"]},"variantCopies":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"expression":{"type":"string","enum":["variable","typically-extensive-white"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","variant","variantCopies","expression","sourceRuleId"],"additionalProperties":false}},"classicRoanMarker":{"type":"object","properties":{"markerCopies":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"interpretation":{"type":"string","enum":["associated-haplotype-detected","associated-haplotype-not-detected"]},"caveat":{"type":"string","enum":["marker-associated-not-causal"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["markerCopies","interpretation","caveat","sourceRuleId"],"additionalProperties":false},"viability":{"type":"object","properties":{"status":{"type":"string","enum":["viable","suspected-non-viable","uncertain"]},"reasons":{"type":"array","items":{"type":"string"}}},"required":["status","reasons"],"additionalProperties":false},"catalogVersion":{"type":"string","minLength":1}},"required":["effects","viability","catalogVersion"],"additionalProperties":false}},"required":["extension","patn1","phenotype"],"additionalProperties":false},"splashedWhite":{"type":"object","properties":{"silver":{"type":"array","prefixItems":[{"type":"string","enum":["N","Z"]},{"type":"string","enum":["N","Z"]}]},"phenotype":{"type":"object","properties":{"effects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["coat.pattern.splashed-white"]},"variant":{"type":"string","enum":["SW1","SW2","SW3","SW4","SW5","SW6","SW7","SW8","SW9","SW10"]},"gene":{"type":"string","enum":["MITF","PAX3"]},"variantCopies":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"expression":{"type":"string","enum":["variable"]},"evidenceLevel":{"type":"string","enum":["established","emerging"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","variant","gene","variantCopies","expression","evidenceLevel","sourceRuleId"],"additionalProperties":false}},"viability":{"type":"object","properties":{"status":{"type":"string","enum":["viable","uncertain"]},"reasons":{"type":"array","items":{"type":"string"}}},"required":["status","reasons"],"additionalProperties":false},"catalogVersion":{"type":"string","minLength":1}},"required":["effects","viability","catalogVersion"],"additionalProperties":false}},"required":["silver","phenotype"],"additionalProperties":false},"leopard":{"type":"array","prefixItems":[{"type":"string","enum":["N","LP"]},{"type":"string","enum":["N","LP"]}]},"leopardPatternModifier":{"type":"object","properties":{"leopardComplexPresent":{"type":"boolean"},"patn1Copies":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"increasedWhiteModifierActive":{"type":"boolean"},"whitePatternCategory":{"type":"string","enum":["no-leopard-complex","variable-leopard-complex","increased-white-leopard-complex"]},"associatedEffects":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Identifier"},"variantCopies":{"type":"number","enum":[2]},"relationship":{"type":"string","enum":["expected-condition","increased-risk-association"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","variantCopies","relationship","sourceRuleId"],"additionalProperties":false}},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"},"catalogVersion":{"type":"string","minLength":1}},"required":["leopardComplexPresent","patn1Copies","increasedWhiteModifierActive","whitePatternCategory","associatedEffects","sourceRuleId","catalogVersion"],"additionalProperties":false}},"required":["chromosome3","splashedWhite","leopard","leopardPatternModifier"],"additionalProperties":false},"probability":{"$ref":"#/components/schemas/ProbabilityFraction"}},"required":["phenotype","patterns","probability"],"additionalProperties":false},"CalculateV2SummaryResponse":{"type":"object","properties":{"contractVersion":{"type":"string","enum":["2.0.0"]},"modelVersion":{"$ref":"#/components/schemas/Identifier"},"mode":{"type":"string","enum":["summary"]},"outcomes":{"type":"object","properties":{"coatGroups":{"type":"object","properties":{"grouping":{"type":"string","enum":["base-and-cream-pearl","base-and-primary-dilution"],"description":"New summaries use base-and-primary-dilution: Cream/Pearl first, then Champagne, Dun, Silver, Mushroom when visible on the base. This fixed presentation priority is not biological dominance. Gray, other effects and patterns remain conditional characteristics. The older grouping value is accepted for saved summaries."},"limit":{"type":"integer","exclusiveMinimum":0},"groupCount":{"type":"integer","minimum":0},"topGroups":{"type":"array","items":{"type":"object","properties":{"coat":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Identifier"},"nameId":{"type":["string","null"],"minLength":1,"maxLength":100,"pattern":"^[a-z][a-z0-9._-]*$","description":"Common coat-name identifier, or null for a combination without a supplied common name. Localize base and dilutions as a fallback."},"base":{"type":"string","enum":["coat.base.chestnut","coat.base.bay","coat.base.black"]},"dilutions":{"type":"array","items":{"$ref":"#/components/schemas/Identifier"}},"modifiers":{"type":"array","items":{"$ref":"#/components/schemas/Identifier"},"description":"The additional dilution defining this reference name, if any. Other visible effects remain separate conditional characteristics. Optional for older saved groups."}},"required":["id","nameId","base","dilutions"],"additionalProperties":false},"probability":{"type":"number","minimum":0,"maximum":1,"description":"Probability of this reference coat among all conceptions, summed before selecting the top ten groups."},"sourceOutcomeCount":{"type":"integer","exclusiveMinimum":0},"traitProbabilities":{"type":"array","items":{"type":"object","properties":{"traitId":{"$ref":"#/components/schemas/Identifier"},"probability":{"type":"number","minimum":0,"maximum":1,"description":"Joint probability of this reference coat AND this trait among all conceptions."},"conditionalProbability":{"type":"number","minimum":0,"maximum":1,"description":"Probability of the trait given this reference coat: joint probability divided by the group's probability. Traits may overlap; do not add these values."}},"required":["traitId","probability","conditionalProbability"],"additionalProperties":false}},"nonViableProbability":{"type":"number","minimum":0,"maximum":1,"description":"Joint probability of this reference coat and a non-viable outcome among all conceptions. Included in the group's probability."},"conditionalNonViableProbability":{"type":"number","minimum":0,"maximum":1,"description":"Non-viable probability conditional on this reference coat. This is not a diagnosis or a live-foal probability."}},"required":["coat","probability","sourceOutcomeCount","traitProbabilities","nonViableProbability","conditionalNonViableProbability"],"additionalProperties":false},"maxItems":10},"coverage":{"type":"number","minimum":0,"maximum":1,"description":"Combined probability of the listed named-coat groups among all conceptions. Never normalized to one."},"omitted":{"type":"object","properties":{"groupCount":{"type":"integer","minimum":0},"outcomeCount":{"type":"integer","minimum":0},"probability":{"$ref":"#/components/schemas/ProbabilityFraction"}},"required":["groupCount","outcomeCount","probability"],"additionalProperties":false}},"required":["grouping","limit","groupCount","topGroups","coverage","omitted"],"additionalProperties":false,"description":"Preferred concise presentation by reference coat. Newly generated summaries include this field; optional when parsing an older saved summary."},"limit":{"type":"integer","exclusiveMinimum":0},"outcomeCount":{"type":"integer","minimum":0,"description":"Number of outcomes in the complete model distribution before appearance grouping."},"phenotypeGroupCount":{"type":"integer","minimum":0},"baseCoatProbabilities":{"type":"array","items":{"type":"object","properties":{"base":{"type":"string","enum":["coat.base.chestnut","coat.base.bay","coat.base.black"]},"probability":{"type":"number","minimum":0}},"required":["base","probability"],"additionalProperties":false}},"traitProbabilities":{"type":"array","items":{"type":"object","properties":{"traitId":{"$ref":"#/components/schemas/Identifier"},"probability":{"type":"number","minimum":0}},"required":["traitId","probability"],"additionalProperties":false},"description":"Marginal probabilities that each modeled visible effect is present. Traits can overlap, so these values do not sum to one; they do not estimate expression intensity."},"topOutcomes":{"type":"array","items":{"type":"object","properties":{"phenotype":{"$ref":"#/components/schemas/CoatPhenotypeSummaryV2"},"probability":{"$ref":"#/components/schemas/ProbabilityFraction"},"sourceOutcomeCount":{"type":"integer","exclusiveMinimum":0,"description":"Number of full-model outcomes combined into this appearance group."}},"required":["phenotype","probability","sourceOutcomeCount"],"additionalProperties":false}},"topOutcomeCoverage":{"type":"number","minimum":0,"description":"Unrounded combined probability of the listed top appearance groups. A small value indicates diffuse probability across many specific combinations."},"omitted":{"type":"object","properties":{"outcomeCount":{"type":"integer","minimum":0},"phenotypeGroupCount":{"type":"integer","minimum":0},"probability":{"type":"number","minimum":0,"description":"Unrounded probability sum across all appearance groups not listed in topOutcomes."}},"required":["outcomeCount","phenotypeGroupCount","probability"],"additionalProperties":false}},"required":["limit","outcomeCount","phenotypeGroupCount","baseCoatProbabilities","traitProbabilities","topOutcomes","topOutcomeCoverage","omitted"],"additionalProperties":false,"description":"Groups full-model outcomes with identical visible coat-appearance traits, sums their unrounded probabilities, and reports exhaustive base-coat and overlapping modeled-trait marginal probabilities. topOutcomeCoverage is the combined probability of the listed specific appearances; a low value indicates diffuse probability across many combinations. Health associations and rule provenance are omitted here but remain available in mode=full."},"linkedChromosome3":{"type":"object","properties":{"outcomes":{"type":"object","properties":{"limit":{"type":"integer","exclusiveMinimum":0},"outcomeCount":{"type":"integer","minimum":0},"topOutcomes":{"type":"array","items":{"type":"object","properties":{"extension":{"type":"array","prefixItems":[{"type":"string","enum":["E","e","ea"]},{"type":"string","enum":["E","e","ea"]}]},"classicRoanMarker":{"type":"array","prefixItems":[{"type":"string","enum":["N","Rn"]},{"type":"string","enum":["N","Rn"]}]},"patn1":{"type":"array","prefixItems":[{"type":"string","enum":["N","PATN1"]},{"type":"string","enum":["N","PATN1"]}]},"phenotype":{"type":"object","properties":{"effects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["coat.pattern.tobiano","coat.pattern.sabino-1","coat.pattern.dominant-white"]},"variant":{"type":"string","enum":["TO","SB1","W5","W10","W13","W20","W22"]},"variantCopies":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"expression":{"type":"string","enum":["variable","typically-extensive-white"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","variant","variantCopies","expression","sourceRuleId"],"additionalProperties":false}},"classicRoanMarker":{"type":"object","properties":{"markerCopies":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"interpretation":{"type":"string","enum":["associated-haplotype-detected","associated-haplotype-not-detected"]},"caveat":{"type":"string","enum":["marker-associated-not-causal"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["markerCopies","interpretation","caveat","sourceRuleId"],"additionalProperties":false},"viability":{"type":"object","properties":{"status":{"type":"string","enum":["viable","suspected-non-viable","uncertain"]},"reasons":{"type":"array","items":{"type":"string"}}},"required":["status","reasons"],"additionalProperties":false},"catalogVersion":{"type":"string","minLength":1}},"required":["effects","viability","catalogVersion"],"additionalProperties":false},"probability":{"$ref":"#/components/schemas/ProbabilityFraction"}},"required":["extension","phenotype","probability"],"additionalProperties":false}},"omitted":{"type":"object","properties":{"outcomeCount":{"type":"integer","minimum":0},"probability":{"type":"number","minimum":0,"description":"Unrounded sum of the probabilities in all outcomes omitted from topOutcomes."}},"required":["outcomeCount","probability"],"additionalProperties":false}},"required":["limit","outcomeCount","topOutcomes","omitted"],"additionalProperties":false,"description":"Shows the highest-probability outcomes up to limit. The omitted count and unrounded probability sum preserve the size and probability mass of the remaining outcomes; use mode=full to retrieve their individual details."},"recombinationMap":{"type":"object","properties":{"dam":{"type":"object","properties":{"fraction":{"$ref":"#/components/schemas/ProbabilityFraction"},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false},"sire":{"type":"object","properties":{"fraction":{"$ref":"#/components/schemas/ProbabilityFraction"},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false}},"required":["dam","sire"],"additionalProperties":false},"patn1ToExtensionRecombinationMap":{"type":"object","properties":{"dam":{"type":"object","properties":{"fraction":{"$ref":"#/components/schemas/ProbabilityFraction"},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false},"sire":{"type":"object","properties":{"fraction":{"$ref":"#/components/schemas/ProbabilityFraction"},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false}},"required":["dam","sire"],"additionalProperties":false},"patternBlockAssumption":{"type":"string","enum":["no-internal-recombination"]}},"required":["outcomes","recombinationMap","patternBlockAssumption"],"additionalProperties":false},"linkedSplashedWhite":{"type":"object","properties":{"outcomes":{"type":"object","properties":{"limit":{"type":"integer","exclusiveMinimum":0},"outcomeCount":{"type":"integer","minimum":0},"topOutcomes":{"type":"array","items":{"type":"object","properties":{"silver":{"type":"array","prefixItems":[{"type":"string","enum":["N","Z"]},{"type":"string","enum":["N","Z"]}]},"phenotype":{"type":"object","properties":{"effects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["coat.pattern.splashed-white"]},"variant":{"type":"string","enum":["SW1","SW2","SW3","SW4","SW5","SW6","SW7","SW8","SW9","SW10"]},"gene":{"type":"string","enum":["MITF","PAX3"]},"variantCopies":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"expression":{"type":"string","enum":["variable"]},"evidenceLevel":{"type":"string","enum":["established","emerging"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","variant","gene","variantCopies","expression","evidenceLevel","sourceRuleId"],"additionalProperties":false}},"viability":{"type":"object","properties":{"status":{"type":"string","enum":["viable","uncertain"]},"reasons":{"type":"array","items":{"type":"string"}}},"required":["status","reasons"],"additionalProperties":false},"catalogVersion":{"type":"string","minLength":1}},"required":["effects","viability","catalogVersion"],"additionalProperties":false},"probability":{"$ref":"#/components/schemas/ProbabilityFraction"}},"required":["silver","phenotype","probability"],"additionalProperties":false}},"omitted":{"type":"object","properties":{"outcomeCount":{"type":"integer","minimum":0},"probability":{"type":"number","minimum":0,"description":"Unrounded sum of the probabilities in all outcomes omitted from topOutcomes."}},"required":["outcomeCount","probability"],"additionalProperties":false}},"required":["limit","outcomeCount","topOutcomes","omitted"],"additionalProperties":false,"description":"Shows the highest-probability outcomes up to limit. The omitted count and unrounded probability sum preserve the size and probability mass of the remaining outcomes; use mode=full to retrieve their individual details."},"silverToPax3RecombinationMap":{"type":"object","properties":{"dam":{"type":"object","properties":{"fraction":{"$ref":"#/components/schemas/ProbabilityFraction"},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false},"sire":{"type":"object","properties":{"fraction":{"$ref":"#/components/schemas/ProbabilityFraction"},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false}},"required":["dam","sire"],"additionalProperties":false},"chromosome6PatternBlockAssumption":{"type":"string","enum":["no-internal-recombination"]},"mitfHaplotypeAssumption":{"type":"string","enum":["no-internal-recombination"]}},"required":["outcomes","silverToPax3RecombinationMap","chromosome6PatternBlockAssumption","mitfHaplotypeAssumption"],"additionalProperties":false},"leopardPatternModifier":{"type":"object","properties":{"outcomes":{"type":"object","properties":{"limit":{"type":"integer","exclusiveMinimum":0},"outcomeCount":{"type":"integer","minimum":0},"topOutcomes":{"type":"array","items":{"type":"object","properties":{"leopard":{"type":"array","prefixItems":[{"type":"string","enum":["N","LP"]},{"type":"string","enum":["N","LP"]}]},"patn1":{"type":"array","prefixItems":[{"type":"string","enum":["N","PATN1"]},{"type":"string","enum":["N","PATN1"]}]},"phenotype":{"type":"object","properties":{"leopardComplexPresent":{"type":"boolean"},"patn1Copies":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"increasedWhiteModifierActive":{"type":"boolean"},"whitePatternCategory":{"type":"string","enum":["no-leopard-complex","variable-leopard-complex","increased-white-leopard-complex"]},"associatedEffects":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Identifier"},"variantCopies":{"type":"number","enum":[2]},"relationship":{"type":"string","enum":["expected-condition","increased-risk-association"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","variantCopies","relationship","sourceRuleId"],"additionalProperties":false}},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"},"catalogVersion":{"type":"string","minLength":1}},"required":["leopardComplexPresent","patn1Copies","increasedWhiteModifierActive","whitePatternCategory","associatedEffects","sourceRuleId","catalogVersion"],"additionalProperties":false},"probability":{"$ref":"#/components/schemas/ProbabilityFraction"}},"required":["leopard","patn1","phenotype","probability"],"additionalProperties":false}},"omitted":{"type":"object","properties":{"outcomeCount":{"type":"integer","minimum":0},"probability":{"type":"number","minimum":0,"description":"Unrounded sum of the probabilities in all outcomes omitted from topOutcomes."}},"required":["outcomeCount","probability"],"additionalProperties":false}},"required":["limit","outcomeCount","topOutcomes","omitted"],"additionalProperties":false,"description":"Shows the highest-probability outcomes up to limit. The omitted count and unrounded probability sum preserve the size and probability mass of the remaining outcomes; use mode=full to retrieve their individual details."},"assortmentAssumption":{"type":"string","enum":["independent-chromosomes"]}},"required":["outcomes","assortmentAssumption"],"additionalProperties":false},"jointPatternOutcomes":{"type":"object","properties":{"outcomes":{"type":"object","properties":{"limit":{"type":"integer","exclusiveMinimum":0},"outcomeCount":{"type":"integer","minimum":0},"topOutcomes":{"type":"array","items":{"type":"object","properties":{"chromosome3":{"type":"object","properties":{"extension":{"type":"array","prefixItems":[{"type":"string","enum":["E","e","ea"]},{"type":"string","enum":["E","e","ea"]}]},"classicRoanMarker":{"type":"array","prefixItems":[{"type":"string","enum":["N","Rn"]},{"type":"string","enum":["N","Rn"]}]},"patn1":{"type":"array","prefixItems":[{"type":"string","enum":["N","PATN1"]},{"type":"string","enum":["N","PATN1"]}]},"phenotype":{"type":"object","properties":{"effects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["coat.pattern.tobiano","coat.pattern.sabino-1","coat.pattern.dominant-white"]},"variant":{"type":"string","enum":["TO","SB1","W5","W10","W13","W20","W22"]},"variantCopies":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"expression":{"type":"string","enum":["variable","typically-extensive-white"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","variant","variantCopies","expression","sourceRuleId"],"additionalProperties":false}},"classicRoanMarker":{"type":"object","properties":{"markerCopies":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"interpretation":{"type":"string","enum":["associated-haplotype-detected","associated-haplotype-not-detected"]},"caveat":{"type":"string","enum":["marker-associated-not-causal"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["markerCopies","interpretation","caveat","sourceRuleId"],"additionalProperties":false},"viability":{"type":"object","properties":{"status":{"type":"string","enum":["viable","suspected-non-viable","uncertain"]},"reasons":{"type":"array","items":{"type":"string"}}},"required":["status","reasons"],"additionalProperties":false},"catalogVersion":{"type":"string","minLength":1}},"required":["effects","viability","catalogVersion"],"additionalProperties":false}},"required":["extension","patn1","phenotype"],"additionalProperties":false},"splashedWhite":{"type":"object","properties":{"silver":{"type":"array","prefixItems":[{"type":"string","enum":["N","Z"]},{"type":"string","enum":["N","Z"]}]},"phenotype":{"type":"object","properties":{"effects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["coat.pattern.splashed-white"]},"variant":{"type":"string","enum":["SW1","SW2","SW3","SW4","SW5","SW6","SW7","SW8","SW9","SW10"]},"gene":{"type":"string","enum":["MITF","PAX3"]},"variantCopies":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"expression":{"type":"string","enum":["variable"]},"evidenceLevel":{"type":"string","enum":["established","emerging"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","variant","gene","variantCopies","expression","evidenceLevel","sourceRuleId"],"additionalProperties":false}},"viability":{"type":"object","properties":{"status":{"type":"string","enum":["viable","uncertain"]},"reasons":{"type":"array","items":{"type":"string"}}},"required":["status","reasons"],"additionalProperties":false},"catalogVersion":{"type":"string","minLength":1}},"required":["effects","viability","catalogVersion"],"additionalProperties":false}},"required":["silver","phenotype"],"additionalProperties":false},"leopard":{"type":"array","prefixItems":[{"type":"string","enum":["N","LP"]},{"type":"string","enum":["N","LP"]}]},"leopardPatternModifier":{"type":"object","properties":{"leopardComplexPresent":{"type":"boolean"},"patn1Copies":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"increasedWhiteModifierActive":{"type":"boolean"},"whitePatternCategory":{"type":"string","enum":["no-leopard-complex","variable-leopard-complex","increased-white-leopard-complex"]},"associatedEffects":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Identifier"},"variantCopies":{"type":"number","enum":[2]},"relationship":{"type":"string","enum":["expected-condition","increased-risk-association"]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","variantCopies","relationship","sourceRuleId"],"additionalProperties":false}},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"},"catalogVersion":{"type":"string","minLength":1}},"required":["leopardComplexPresent","patn1Copies","increasedWhiteModifierActive","whitePatternCategory","associatedEffects","sourceRuleId","catalogVersion"],"additionalProperties":false},"probability":{"$ref":"#/components/schemas/ProbabilityFraction"}},"required":["chromosome3","splashedWhite","leopard","leopardPatternModifier","probability"],"additionalProperties":false}},"omitted":{"type":"object","properties":{"outcomeCount":{"type":"integer","minimum":0},"probability":{"type":"number","minimum":0,"description":"Unrounded sum of the probabilities in all outcomes omitted from topOutcomes."}},"required":["outcomeCount","probability"],"additionalProperties":false}},"required":["limit","outcomeCount","topOutcomes","omitted"],"additionalProperties":false,"description":"Shows the highest-probability outcomes up to limit. The omitted count and unrounded probability sum preserve the size and probability mass of the remaining outcomes; use mode=full to retrieve their individual details."},"betweenChromosomeGroupsAssumption":{"type":"string","enum":["independent-assortment"]},"scope":{"type":"string","enum":["pattern-submodels-only"]}},"required":["outcomes","betweenChromosomeGroupsAssumption","scope"],"additionalProperties":false},"jointCoatPatternOutcomes":{"type":"object","properties":{"outcomes":{"type":"object","properties":{"limit":{"type":"integer","exclusiveMinimum":0},"outcomeCount":{"type":"integer","minimum":0},"topOutcomes":{"type":"array","items":{"$ref":"#/components/schemas/FullCoatPatternCrossOutcomeV2"}},"omitted":{"type":"object","properties":{"outcomeCount":{"type":"integer","minimum":0},"probability":{"type":"number","minimum":0,"description":"Unrounded sum of the probabilities in all outcomes omitted from topOutcomes."}},"required":["outcomeCount","probability"],"additionalProperties":false}},"required":["limit","outcomeCount","topOutcomes","omitted"],"additionalProperties":false,"description":"Shows the highest-probability outcomes up to limit. The omitted count and unrounded probability sum preserve the size and probability mass of the remaining outcomes; use mode=full to retrieve their individual details."},"betweenChromosomeGroupsAssumption":{"type":"string","enum":["independent-assortment"]},"scope":{"type":"string","enum":["full-coat-and-pattern-submodels"]}},"required":["outcomes","betweenChromosomeGroupsAssumption","scope"],"additionalProperties":false},"trace":{"type":"object","properties":{"method":{"type":"string","enum":["weighted-parent-genotype-hypotheses","factorized-parent-distributions"]},"damHypothesisCount":{"type":"integer","exclusiveMinimum":0},"sireHypothesisCount":{"type":"integer","exclusiveMinimum":0},"damGameteCount":{"type":"integer","exclusiveMinimum":0},"sireGameteCount":{"type":"integer","exclusiveMinimum":0},"catalogVersion":{"type":"string","minLength":1},"parents":{"type":"array","prefixItems":[{"type":"object","properties":{"mode":{"type":"string","enum":["genotype","phenotype"]},"weighting":{"type":"string","enum":["known-genotype","uniform-compatible-genotypes","locus-allele-frequency-prior"]},"compatibleGenotypeCount":{"type":"integer","exclusiveMinimum":0},"populationProfileId":{"$ref":"#/components/schemas/Identifier"},"populationDatasetVersion":{"type":"string","minLength":1},"populationPriorEstimator":{"type":"string","enum":["jeffreys-dirichlet-half-count"]},"inference":{"type":"object","properties":{"compatibleGenotypeCount":{"type":"integer","minimum":0},"weighting":{"type":"string","enum":["uniform-compatible-genotypes","locus-allele-frequency-prior"]},"catalogVersion":{"type":"string","minLength":1},"scope":{"type":"string","enum":["ten-locus-coat-model"]},"representation":{"type":"string","enum":["factorized"]},"frequencyEvidence":{"type":"array","items":{"type":"object","properties":{"locusId":{"$ref":"#/components/schemas/Identifier"},"frequencies":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ProbabilityFraction"}},"referencePopulation":{"type":"string","minLength":1},"sources":{"type":"array","items":{"$ref":"#/components/schemas/Identifier"}},"reviewedAt":{"type":"string","format":"date"},"sampleSize":{"type":"integer","exclusiveMinimum":0},"genotypePriorModel":{"type":"string","enum":["hardy-weinberg"]}},"required":["locusId","frequencies","referencePopulation","sources","reviewedAt","genotypePriorModel"],"additionalProperties":false}}},"required":["compatibleGenotypeCount","weighting","catalogVersion","scope","representation"],"additionalProperties":false}},"required":["mode","weighting","compatibleGenotypeCount"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","enum":["genotype","phenotype"]},"weighting":{"type":"string","enum":["known-genotype","uniform-compatible-genotypes","locus-allele-frequency-prior"]},"compatibleGenotypeCount":{"type":"integer","exclusiveMinimum":0},"populationProfileId":{"$ref":"#/components/schemas/Identifier"},"populationDatasetVersion":{"type":"string","minLength":1},"populationPriorEstimator":{"type":"string","enum":["jeffreys-dirichlet-half-count"]},"inference":{"type":"object","properties":{"compatibleGenotypeCount":{"type":"integer","minimum":0},"weighting":{"type":"string","enum":["uniform-compatible-genotypes","locus-allele-frequency-prior"]},"catalogVersion":{"type":"string","minLength":1},"scope":{"type":"string","enum":["ten-locus-coat-model"]},"representation":{"type":"string","enum":["factorized"]},"frequencyEvidence":{"type":"array","items":{"type":"object","properties":{"locusId":{"$ref":"#/components/schemas/Identifier"},"frequencies":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ProbabilityFraction"}},"referencePopulation":{"type":"string","minLength":1},"sources":{"type":"array","items":{"$ref":"#/components/schemas/Identifier"}},"reviewedAt":{"type":"string","format":"date"},"sampleSize":{"type":"integer","exclusiveMinimum":0},"genotypePriorModel":{"type":"string","enum":["hardy-weinberg"]}},"required":["locusId","frequencies","referencePopulation","sources","reviewedAt","genotypePriorModel"],"additionalProperties":false}}},"required":["compatibleGenotypeCount","weighting","catalogVersion","scope","representation"],"additionalProperties":false}},"required":["mode","weighting","compatibleGenotypeCount"],"additionalProperties":false}]}},"required":["method","damHypothesisCount","sireHypothesisCount","damGameteCount","sireGameteCount","catalogVersion","parents"],"additionalProperties":false}},"required":["contractVersion","modelVersion","mode","outcomes","trace"],"additionalProperties":false,"description":"Compact calculation response. outcomes.coatGroups provides the ten most probable reference coats with conditional characteristic marginals. The existing topOutcomes list remains available for clients using specific appearance combinations. Every requested distribution preserves omitted probability mass; full mode retains all evidence and provenance."},"CoatPhenotypeSummaryV2":{"type":"object","properties":{"base":{"type":"string","enum":["coat.base.chestnut","coat.base.bay","coat.base.black"]},"dilutions":{"type":"array","items":{"$ref":"#/components/schemas/Identifier"}},"visibleModifiers":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Identifier"},"variantCopies":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]}},"required":["id","variantCopies"],"additionalProperties":false}},"features":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Identifier"},"expression":{"type":"string"}},"required":["id","expression"],"additionalProperties":false}},"gray":{"type":"object","properties":{"progressiveGraying":{"type":"boolean"},"progressionRate":{"type":"string","enum":["none","slow","fast"]}},"required":["progressiveGraying","progressionRate"],"additionalProperties":false},"spottingPatterns":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Identifier"},"variantCopies":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"expression":{"type":"string"}},"required":["id","variantCopies","expression"],"additionalProperties":false}},"spottingViability":{"type":"string","enum":["viable","not-viable"]},"leopardComplex":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Identifier"},"variantCopies":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"expression":{"type":"string","enum":["variable"]}},"required":["id","variantCopies","expression"],"additionalProperties":false}}},"required":["base","dilutions","visibleModifiers","features","gray","spottingPatterns","spottingViability","leopardComplex"],"additionalProperties":false,"description":"Compact coat appearance projection used only in summary mode. Full mode retains all evidence, health associations, and provenance fields."},"InferPatternPhasesV2Request":{"type":"object","properties":{"dam":{"type":"object","properties":{"chromosome3":{"type":"object","properties":{"extension":{"type":"array","prefixItems":[{"type":"string","enum":["E","e","ea"]},{"type":"string","enum":["E","e","ea"]}]},"patn1":{"type":"array","prefixItems":[{"type":"string","enum":["N","PATN1"]},{"type":"string","enum":["N","PATN1"]}]},"classicRoanMarker":{"type":"array","prefixItems":[{"type":"string","enum":["N","Rn"]},{"type":"string","enum":["N","Rn"]}]},"patternVariantCopies":{"type":"object","properties":{"TO":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"SB1":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"W5":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"W10":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"W13":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"W20":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"W22":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]}},"required":["TO","SB1","W5","W10","W13","W20","W22"],"additionalProperties":false}},"required":["extension","patternVariantCopies"],"additionalProperties":false},"splashedWhite":{"type":"object","properties":{"silver":{"type":"array","prefixItems":[{"type":"string","enum":["N","Z"]},{"type":"string","enum":["N","Z"]}]},"pax3VariantCopies":{"type":"object","properties":{"SW2":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"SW4":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"SW10":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]}},"required":["SW2","SW4","SW10"],"additionalProperties":false},"mitfVariantCopies":{"type":"object","properties":{"SW1":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"SW3":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"SW5":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"SW6":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"SW7":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"SW8":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"SW9":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]}},"required":["SW1","SW3","SW5","SW6","SW7","SW8","SW9"],"additionalProperties":false}},"required":["silver","pax3VariantCopies","mitfVariantCopies"],"additionalProperties":false}},"required":["chromosome3","splashedWhite"],"additionalProperties":false},"sire":{"type":"object","properties":{"chromosome3":{"type":"object","properties":{"extension":{"type":"array","prefixItems":[{"type":"string","enum":["E","e","ea"]},{"type":"string","enum":["E","e","ea"]}]},"patn1":{"type":"array","prefixItems":[{"type":"string","enum":["N","PATN1"]},{"type":"string","enum":["N","PATN1"]}]},"classicRoanMarker":{"type":"array","prefixItems":[{"type":"string","enum":["N","Rn"]},{"type":"string","enum":["N","Rn"]}]},"patternVariantCopies":{"type":"object","properties":{"TO":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"SB1":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"W5":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"W10":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"W13":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"W20":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"W22":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]}},"required":["TO","SB1","W5","W10","W13","W20","W22"],"additionalProperties":false}},"required":["extension","patternVariantCopies"],"additionalProperties":false},"splashedWhite":{"type":"object","properties":{"silver":{"type":"array","prefixItems":[{"type":"string","enum":["N","Z"]},{"type":"string","enum":["N","Z"]}]},"pax3VariantCopies":{"type":"object","properties":{"SW2":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"SW4":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"SW10":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]}},"required":["SW2","SW4","SW10"],"additionalProperties":false},"mitfVariantCopies":{"type":"object","properties":{"SW1":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"SW3":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"SW5":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"SW6":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"SW7":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"SW8":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"SW9":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]},{"type":"number","enum":[2]}]}},"required":["SW1","SW3","SW5","SW6","SW7","SW8","SW9"],"additionalProperties":false}},"required":["silver","pax3VariantCopies","mitfVariantCopies"],"additionalProperties":false}},"required":["chromosome3","splashedWhite"],"additionalProperties":false}},"required":["dam","sire"],"additionalProperties":false,"description":"Unphased genotype calls. Variant copy counts must be explicit (0 means tested and absent); unknown variants must not be encoded as zero. Compatible haplotype configurations are listed without phase prior probabilities."},"InferPatternPhasesV2Response":{"type":"object","properties":{"dam":{"type":"object","properties":{"chromosome3":{"type":"array","items":{"type":"array","prefixItems":[{"type":"object","properties":{"extension":{"type":"string","enum":["E","e","ea"]},"patternVariants":{"type":"array","items":{"type":"string","enum":["TO","SB1","W5","W10","W13","W20","W22"]}},"classicRoanMarker":{"type":"string","enum":["N","Rn"]},"patn1":{"type":"string","enum":["N","PATN1"]}},"required":["extension","patternVariants"],"additionalProperties":false},{"type":"object","properties":{"extension":{"type":"string","enum":["E","e","ea"]},"patternVariants":{"type":"array","items":{"type":"string","enum":["TO","SB1","W5","W10","W13","W20","W22"]}},"classicRoanMarker":{"type":"string","enum":["N","Rn"]},"patn1":{"type":"string","enum":["N","PATN1"]}},"required":["extension","patternVariants"],"additionalProperties":false}]}},"splashedWhite":{"type":"object","properties":{"chromosome6":{"type":"array","items":{"type":"array","prefixItems":[{"type":"object","properties":{"silver":{"type":"string","enum":["N","Z"]},"pax3Variants":{"type":"array","items":{"type":"string","enum":["SW2","SW4","SW10"]}}},"required":["silver","pax3Variants"],"additionalProperties":false},{"type":"object","properties":{"silver":{"type":"string","enum":["N","Z"]},"pax3Variants":{"type":"array","items":{"type":"string","enum":["SW2","SW4","SW10"]}}},"required":["silver","pax3Variants"],"additionalProperties":false}]}},"mitf":{"type":"array","items":{"type":"array","prefixItems":[{"type":"object","properties":{"variants":{"type":"array","items":{"type":"string","enum":["SW1","SW3","SW5","SW6","SW7","SW8","SW9"]}}},"required":["variants"],"additionalProperties":false},{"type":"object","properties":{"variants":{"type":"array","items":{"type":"string","enum":["SW1","SW3","SW5","SW6","SW7","SW8","SW9"]}}},"required":["variants"],"additionalProperties":false}]}}},"required":["chromosome6","mitf"],"additionalProperties":false}},"required":["chromosome3","splashedWhite"],"additionalProperties":false},"sire":{"type":"object","properties":{"chromosome3":{"type":"array","items":{"type":"array","prefixItems":[{"type":"object","properties":{"extension":{"type":"string","enum":["E","e","ea"]},"patternVariants":{"type":"array","items":{"type":"string","enum":["TO","SB1","W5","W10","W13","W20","W22"]}},"classicRoanMarker":{"type":"string","enum":["N","Rn"]},"patn1":{"type":"string","enum":["N","PATN1"]}},"required":["extension","patternVariants"],"additionalProperties":false},{"type":"object","properties":{"extension":{"type":"string","enum":["E","e","ea"]},"patternVariants":{"type":"array","items":{"type":"string","enum":["TO","SB1","W5","W10","W13","W20","W22"]}},"classicRoanMarker":{"type":"string","enum":["N","Rn"]},"patn1":{"type":"string","enum":["N","PATN1"]}},"required":["extension","patternVariants"],"additionalProperties":false}]}},"splashedWhite":{"type":"object","properties":{"chromosome6":{"type":"array","items":{"type":"array","prefixItems":[{"type":"object","properties":{"silver":{"type":"string","enum":["N","Z"]},"pax3Variants":{"type":"array","items":{"type":"string","enum":["SW2","SW4","SW10"]}}},"required":["silver","pax3Variants"],"additionalProperties":false},{"type":"object","properties":{"silver":{"type":"string","enum":["N","Z"]},"pax3Variants":{"type":"array","items":{"type":"string","enum":["SW2","SW4","SW10"]}}},"required":["silver","pax3Variants"],"additionalProperties":false}]}},"mitf":{"type":"array","items":{"type":"array","prefixItems":[{"type":"object","properties":{"variants":{"type":"array","items":{"type":"string","enum":["SW1","SW3","SW5","SW6","SW7","SW8","SW9"]}}},"required":["variants"],"additionalProperties":false},{"type":"object","properties":{"variants":{"type":"array","items":{"type":"string","enum":["SW1","SW3","SW5","SW6","SW7","SW8","SW9"]}}},"required":["variants"],"additionalProperties":false}]}}},"required":["chromosome6","mitf"],"additionalProperties":false}},"required":["chromosome3","splashedWhite"],"additionalProperties":false},"phasePrior":{"type":"string","enum":["not-assigned"]},"interpretation":{"type":"string","enum":["compatible-phases-only"]}},"required":["dam","sire","phasePrior","interpretation"],"additionalProperties":false},"InferGrayGenotypesV2Request":{"type":"object","properties":{"totalCopyNumber":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]},{"type":"number","enum":[6]}]}},"required":["totalCopyNumber"],"additionalProperties":false,"description":"Total STX17 copy number from the Gray Copy Number test. Four copies are unresolved between N/G3 and G2/G2."},"InferGrayGenotypesV2Response":{"type":"object","properties":{"totalCopyNumber":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]},{"type":"number","enum":[6]}]},"candidates":{"type":"array","items":{"type":"object","properties":{"genotype":{"type":"array","prefixItems":[{"type":"string","enum":["N","G2","G3"]},{"type":"string","enum":["N","G2","G3"]}]},"phenotype":{"type":"object","properties":{"progressiveGraying":{"type":"boolean"},"progressionRate":{"type":"string","enum":["none","slow","fast"]},"associatedEffects":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Identifier"},"variantCopies":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"sourceRuleId":{"$ref":"#/components/schemas/Identifier"}},"required":["id","variantCopies","sourceRuleId"],"additionalProperties":false}},"catalogVersion":{"type":"string","minLength":1}},"required":["progressiveGraying","progressionRate","associatedEffects","catalogVersion"],"additionalProperties":false}},"required":["genotype","phenotype"],"additionalProperties":false},"minItems":1},"prior":{"type":"string","enum":["not-assigned"]},"interpretation":{"type":"string","enum":["compatible-genotypes-only"]}},"required":["totalCopyNumber","candidates","prior","interpretation"],"additionalProperties":false},"ScorePhaseFromOffspringV2Request":{"type":"object","properties":{"markers":{"type":"array","items":{"type":"object","properties":{"locusId":{"$ref":"#/components/schemas/Identifier"},"damGenotype":{"type":"array","prefixItems":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._-]+$"},{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._-]+$"}]},"sireGenotype":{"type":"array","prefixItems":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._-]+$"},{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._-]+$"}]}},"required":["locusId","damGenotype","sireGenotype"],"additionalProperties":false},"minItems":1,"maxItems":8},"damHaplotypes":{"type":"array","prefixItems":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._-]+$"},"minItems":1,"maxItems":8},{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._-]+$"},"minItems":1,"maxItems":8}]},"sireHaplotypes":{"type":"array","prefixItems":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._-]+$"},"minItems":1,"maxItems":8},{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._-]+$"},"minItems":1,"maxItems":8}]},"recombinationMap":{"type":"object","properties":{"dam":{"type":"array","items":{"type":"object","properties":{"fraction":{"type":"number","minimum":0,"maximum":0.5},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false},"maxItems":7},"sire":{"type":"array","items":{"type":"object","properties":{"fraction":{"type":"number","minimum":0,"maximum":0.5},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false},"maxItems":7}},"required":["dam","sire"],"additionalProperties":false},"offspring":{"type":"array","items":{"type":"object","properties":{"genotypes":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._-]+$"},{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._-]+$"}]},"minItems":1,"maxItems":8}},"required":["genotypes"],"additionalProperties":false},"minItems":1,"maxItems":20}},"required":["markers","damHaplotypes","sireHaplotypes","recombinationMap","offspring"],"additionalProperties":false,"description":"Scores proposed parental phases against fully called offspring genotypes. Each recombination interval must include a caller-sourced fraction and URL; the output is likelihood evidence, not a posterior probability."},"ScorePhaseFromOffspringV2Response":{"type":"object","properties":{"perOffspring":{"type":"array","items":{"$ref":"#/components/schemas/ProbabilityFraction"}},"jointLikelihood":{"$ref":"#/components/schemas/ProbabilityFraction"},"interpretation":{"type":"string","enum":["likelihood-not-posterior"]},"phasePrior":{"type":"string","enum":["not-applied"]}},"required":["perOffspring","jointLikelihood","interpretation","phasePrior"],"additionalProperties":false},"InferAndScorePhasesV2Request":{"type":"object","properties":{"markers":{"type":"array","items":{"type":"object","properties":{"locusId":{"$ref":"#/components/schemas/Identifier"},"damGenotype":{"type":"array","prefixItems":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._-]+$"},{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._-]+$"}]},"sireGenotype":{"type":"array","prefixItems":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._-]+$"},{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._-]+$"}]}},"required":["locusId","damGenotype","sireGenotype"],"additionalProperties":false},"minItems":1,"maxItems":7},"recombinationMap":{"type":"object","properties":{"dam":{"type":"array","items":{"type":"object","properties":{"fraction":{"type":"number","minimum":0,"maximum":0.5},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false},"maxItems":6},"sire":{"type":"array","items":{"type":"object","properties":{"fraction":{"type":"number","minimum":0,"maximum":0.5},"source":{"type":"string","format":"uri"}},"required":["fraction","source"],"additionalProperties":false},"maxItems":6}},"required":["dam","sire"],"additionalProperties":false},"offspring":{"type":"array","items":{"type":"object","properties":{"genotypes":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._-]+$"},{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._-]+$"}]},"minItems":1,"maxItems":8}},"required":["genotypes"],"additionalProperties":false},"minItems":1,"maxItems":20}},"required":["markers","recombinationMap","offspring"],"additionalProperties":false,"description":"Enumerates parental phase candidates from unphased calls and scores every pair against fully called offspring genotypes. Marker count is capped at seven to bound the scenario space; recombination fractions must be sourced."},"InferAndScorePhasesV2Response":{"type":"object","properties":{"damCandidates":{"type":"array","items":{"type":"array","prefixItems":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._-]+$"},"minItems":1,"maxItems":8},{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._-]+$"},"minItems":1,"maxItems":8}]}},"sireCandidates":{"type":"array","items":{"type":"array","prefixItems":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._-]+$"},"minItems":1,"maxItems":8},{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._-]+$"},"minItems":1,"maxItems":8}]}},"scores":{"type":"array","items":{"type":"object","properties":{"damCandidateIndex":{"type":"integer","minimum":0},"sireCandidateIndex":{"type":"integer","minimum":0},"perOffspring":{"type":"array","items":{"$ref":"#/components/schemas/ProbabilityFraction"}},"jointLikelihood":{"$ref":"#/components/schemas/ProbabilityFraction"}},"required":["damCandidateIndex","sireCandidateIndex","perOffspring","jointLikelihood"],"additionalProperties":false}},"interpretation":{"type":"string","enum":["likelihoods-rank-candidates-only"]},"phasePrior":{"type":"string","enum":["not-applied"]}},"required":["damCandidates","sireCandidates","scores","interpretation","phasePrior"],"additionalProperties":false}},"parameters":{}},"paths":{"/v2/coat/catalog":{"get":{"operationId":"getHorseCoatCatalogV2","summary":"List common coat names, loci, alleles, patterns, and sources","description":"Returns the language-neutral catalog used by the current engine. The response includes common coat-name identifiers and English reference labels, their observed base and dilution mappings, calculation genotype fields, evidence references, and modeled pattern variants so clients can build their own localized interfaces. A named coat describes observed effects and does not establish a complete genotype or exclude unrecorded traits.","tags":["Coats"],"responses":{"200":{"description":"Current versioned engine catalog.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HorseCoatCatalogV2Response"}}}}}}},"/v2/coat/populations":{"get":{"operationId":"listCoatPopulationProfilesV2","summary":"List published coat-variant frequency profiles by breed","description":"Lists the 28 breed cohorts studied by the UC Davis VGL publication, with cohort sizes and source metadata. Frequencies summarize tested samples and must not be read as guaranteed properties of every horse in a breed.","tags":["Coats"],"responses":{"200":{"description":"Published breed-level cohort summaries and study metadata.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoatPopulationListV2Response"}}}}}}},"/v2/coat/populations/{profileId}":{"get":{"operationId":"getCoatPopulationProfileV2","summary":"Get coat-variant frequencies for one studied breed cohort","description":"Returns the source-rounded allele-frequency data and locus-specific sample counts from UC Davis VGL Supplementary Table S4. A zero is an observed sample estimate, not proof of breed-wide absence. The calculation endpoint can optionally use matching supported loci from this profile under Hardy-Weinberg equilibrium after source-rounding normalization and a Jeffreys half-count per allele.","tags":["Coats"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"profileId","in":"path"}],"responses":{"200":{"description":"Full sourced population profile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoatPopulationProfileV2Response"}}}},"400":{"description":"The population profile identifier is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No published population profile has this identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v2/coat/phases/infer-from-offspring":{"post":{"operationId":"inferPhasesFromOffspringV2","summary":"Enumerate and score parental phases using offspring genotypes","description":"Enumerates compatible phases from the parents' unphased calls, then computes the offspring genotype likelihood for every parental phase pair. Scores are not normalized into posterior probabilities and no phase prior is applied.","tags":["Coats"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferAndScorePhasesV2Request"}}}},"responses":{"200":{"description":"Compatible parental phase candidates and their offspring likelihood scores.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferAndScorePhasesV2Response"}}}},"400":{"description":"Genotype calls or recombination maps are malformed or inconsistent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v2/coat/phases/score-offspring":{"post":{"operationId":"scorePhaseFromOffspringV2","summary":"Score parental phase candidates against offspring genotypes","description":"Calculates per-offspring and joint genotype likelihoods for supplied parental phase candidates and caller-sourced recombination fractions. Likelihoods do not include a prior over phases and are not posterior probabilities.","tags":["Coats"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScorePhaseFromOffspringV2Request"}}}},"responses":{"200":{"description":"Offspring genotype likelihoods for the supplied phase pair.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScorePhaseFromOffspringV2Response"}}}},"400":{"description":"Genotypes, phases, offspring calls, or recombination maps are inconsistent or malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v2/coat/genotypes/gray-candidates":{"post":{"operationId":"inferGrayGenotypesFromCopyNumberV2","summary":"Enumerate Gray genotypes compatible with an STX17 copy number","description":"Returns all supported diploid genotypes compatible with the measured total copy number. Four copies are ambiguous between N/G3 and G2/G2; candidates are not weighted.","tags":["Coats"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferGrayGenotypesV2Request"}}}},"responses":{"200":{"description":"Compatible genotypes and their modeled gray phenotypes, with no prior weights assigned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferGrayGenotypesV2Response"}}}},"400":{"description":"The copy-number call is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v2/coat/phases/infer":{"post":{"operationId":"inferCoatPatternPhasesV2","summary":"Enumerate compatible phases from unphased pattern genotypes","description":"Returns compatible phase candidates separately for chromosome 3, chromosome 6, and chromosome 16 for each parent; independent groups are not expanded into a Cartesian product. The endpoint deliberately assigns no phase probabilities; pedigree, parentage, or sequencing evidence is needed to weight candidates.","tags":["Coats"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferPatternPhasesV2Request"}}}},"responses":{"200":{"description":"Compatible phase candidates, with no prior weights assigned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferPatternPhasesV2Response"}}}},"400":{"description":"Unphased genotype calls are malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v2/coat/calculations":{"post":{"operationId":"calculateCoatProbabilitiesV2","summary":"Calculate coat probabilities with the coat genetics engine v2","description":"Uses the language-neutral ten-locus engine. Parents may be supplied by genotype or structured observations; phenotype-mode parents may optionally use a sourced population profile or explicit allele-frequency evidence for Hardy-Weinberg priors, but not both. Population profiles are empirical breed cohorts, not individual genotypes. Optional phased motif calculations require known parental genotypes and explicit sourced recombination fractions. Omit mode (or set mode=full) for all outcome rows. Set mode=summary for outcomes.coatGroups: the ten most probable reference coats, grouped by base color and one defining dilution before progressive graying and patterns. The naming priority is Cream/Pearl, Champagne, Dun, Silver, then Mushroom; it is a presentation convention, not biological dominance. Other effects remain conditional characteristics. Each coat probability includes all conceptions in that group. Each characteristic includes its joint probability among all conceptions and its conditionalProbability within that coat group; these overlapping characteristics must not be added. coverage and omitted describe named-coat probability mass without renormalization. Common-name identifiers are language neutral; unnamed combinations retain structured base/dilution labels. Non-viable outcomes remain included. Exhaustive base-coat and global characteristic probabilities are also returned. The existing topOutcomes appearance list remains available for compatibility. Health associations and provenance remain available in a second request with mode=full. Set includeJointPatternOutcomes=true to combine the supported motifs, or includeJointCoatPatternOutcomes=true to join the motifs to the complete ten-locus phenotype without discarding shared-locus linkage.","tags":["Coats"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalculateV2Request"},"example":{"mode":"summary","dam":{"mode":"phenotype","observation":{"base":"coat.base.chestnut","creamPearlDilutions":[]}},"sire":{"mode":"genotype","genotype":{"extension":["E","e"],"agouti":["A","a"],"slc45a2":["N","N"],"dun":["nd2","nd2"],"champagne":["N","N"],"silver":["N","N"],"mushroom":["N","N"],"gray":["N","N"],"frame":["N","N"],"leopard":["N","N"]}}}}}},"responses":{"200":{"description":"Full distributions by default, or compact per-distribution summaries when mode=summary is requested.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CalculateV2Response"},{"$ref":"#/components/schemas/CalculateV2SummaryResponse"}]}}}},"400":{"description":"Request fields, allele symbols, or evidence values are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"An observation has no compatible genotype, or a supplied living parent genotype is non-viable within the model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"The calculation could not be completed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}}},"webhooks":{}}