{
  "tool": "matric-nqf4.lifesci_punnett",
  "name": "Punnett square — monohybrid cross (CDU-GEN-NSC-400)",
  "answers": "The genotype and phenotype ratios of a monohybrid cross, by enumerating the four gamete combinations.",
  "degree": {
    "id": "competency:matric-nqf4",
    "code": "CDU-GEN-NSC-400",
    "name": "Senior Certificate (Amended) — exam-readiness programme (NQF 4 matric)",
    "version": "1.0.0"
  },
  "reference": "Umalusi/NSC subject catalogue, worked reference (offline reconstruction); Life Sciences row of §4 — a Punnett-square ratio",
  "endpoint": "/faculty/matric-nqf4/lifesci_punnett",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "parentOne",
      "parentTwo"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "parentOne": {
        "type": "string",
        "description": "first parent genotype",
        "enum": [
          "AA",
          "Aa",
          "aa"
        ]
      },
      "parentTwo": {
        "type": "string",
        "description": "second parent genotype",
        "enum": [
          "AA",
          "Aa",
          "aa"
        ]
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "genotypeRatio",
      "dominantFraction"
    ],
    "properties": {
      "genotypeRatio": {
        "type": "string",
        "description": "AA : Aa : aa"
      },
      "dominantFraction": {
        "type": "number",
        "description": "fraction showing the dominant phenotype"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "parentOne": "Aa",
    "parentTwo": "Aa"
  }
}