{
  "about": {
    "recordedOn": "2026-10-25",
    "issue": "SCI-199",
    "scope": "Edge Welch only; no new row/column or control-diagnostic expectations.",
    "script": "pipeline/assay-analyser/oracles/plate_edge_spread_v1.py",
    "scriptSha256": "30cb3e7428c6bad81be2bfd682d6acef85debdd47230a8e772ff4f428d181633",
    "environment": {
      "python": "3.12.14",
      "implementation": "CPython",
      "dependencies": "standard library only"
    },
    "reference": {
      "algorithm": "student-t-sine-quadrature-v1",
      "absoluteIntegrationTarget": 1e-13,
      "maxDepth": 30,
      "maxEvaluations": 100000,
      "analyticAndIdentityChecks": 34,
      "crossCheck": {
        "ran": false,
        "reason": "No SciPy or R executed; independent exact fractions and standard-library quadrature with analytic distribution checks."
      }
    },
    "tolerances": {
      "statesCountsReasons": "exact",
      "meansTAndDf": "1e-9 relative; exact zero within 1e-12 absolute",
      "p": "1e-8 absolute"
    }
  },
  "cases": [
    {
      "id": "distinct-constants-96",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A5",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B6",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B7",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B8",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B9",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B10",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B11",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C2",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C3",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C4",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C5",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C6",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "A2",
              "A3",
              "A4",
              "A5"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5",
              "B6",
              "B7",
              "B8",
              "B9",
              "B10",
              "B11",
              "C2",
              "C3",
              "C4",
              "C5",
              "C6"
            ],
            "edge": {
              "flat": true,
              "spread": "0",
              "bound": "3/5629499534213120",
              "rawVariance": "0",
              "effectiveVarianceOfMean": "0"
            },
            "interior": {
              "flat": true,
              "spread": "0",
              "bound": "3/4503599627370496",
              "rawVariance": "0",
              "effectiveVarianceOfMean": "0"
            }
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "B2",
          "B3",
          "B4",
          "B5",
          "B6",
          "B7",
          "B8",
          "B9",
          "B10",
          "B11",
          "C2",
          "C3",
          "C4",
          "C5",
          "C6"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 19,
            "edge": {
              "ok": false,
              "reason": "no-spread",
              "nEdge": 4,
              "nInterior": 15
            }
          }
        ]
      }
    },
    {
      "id": "distinct-constants-swapped",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A5",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B6",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B7",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B8",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B9",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B10",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B11",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C2",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C3",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C4",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C5",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C6",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "A2",
              "A3",
              "A4",
              "A5"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5",
              "B6",
              "B7",
              "B8",
              "B9",
              "B10",
              "B11",
              "C2",
              "C3",
              "C4",
              "C5",
              "C6"
            ],
            "edge": {
              "flat": true,
              "spread": "0",
              "bound": "1/5629499534213120",
              "rawVariance": "0",
              "effectiveVarianceOfMean": "0"
            },
            "interior": {
              "flat": true,
              "spread": "0",
              "bound": "9/4503599627370496",
              "rawVariance": "0",
              "effectiveVarianceOfMean": "0"
            }
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "B2",
          "B3",
          "B4",
          "B5",
          "B6",
          "B7",
          "B8",
          "B9",
          "B10",
          "B11",
          "C2",
          "C3",
          "C4",
          "C5",
          "C6"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 19,
            "edge": {
              "ok": false,
              "reason": "no-spread",
              "nEdge": 4,
              "nInterior": 15
            }
          }
        ]
      }
    },
    {
      "id": "equal-constants",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A5",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B6",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B7",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B8",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B9",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B10",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B11",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C2",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C3",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C4",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C5",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C6",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "A2",
              "A3",
              "A4",
              "A5"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5",
              "B6",
              "B7",
              "B8",
              "B9",
              "B10",
              "B11",
              "C2",
              "C3",
              "C4",
              "C5",
              "C6"
            ],
            "edge": {
              "flat": true,
              "spread": "0",
              "bound": "1/5629499534213120",
              "rawVariance": "0",
              "effectiveVarianceOfMean": "0"
            },
            "interior": {
              "flat": true,
              "spread": "0",
              "bound": "3/4503599627370496",
              "rawVariance": "0",
              "effectiveVarianceOfMean": "0"
            }
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "B2",
          "B3",
          "B4",
          "B5",
          "B6",
          "B7",
          "B8",
          "B9",
          "B10",
          "B11",
          "C2",
          "C3",
          "C4",
          "C5",
          "C6"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 19,
            "edge": {
              "ok": false,
              "reason": "no-spread",
              "nEdge": 4,
              "nInterior": 15
            }
          }
        ]
      }
    },
    {
      "id": "exact-zero",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "0",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "0",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "0",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A5",
            "role": "sample",
            "value": "0",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "0",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "0",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "0",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "0",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B6",
            "role": "sample",
            "value": "0",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B7",
            "role": "sample",
            "value": "0",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B8",
            "role": "sample",
            "value": "0",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B9",
            "role": "sample",
            "value": "0",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B10",
            "role": "sample",
            "value": "0",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B11",
            "role": "sample",
            "value": "0",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C2",
            "role": "sample",
            "value": "0",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C3",
            "role": "sample",
            "value": "0",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C4",
            "role": "sample",
            "value": "0",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C5",
            "role": "sample",
            "value": "0",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C6",
            "role": "sample",
            "value": "0",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "A2",
              "A3",
              "A4",
              "A5"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5",
              "B6",
              "B7",
              "B8",
              "B9",
              "B10",
              "B11",
              "C2",
              "C3",
              "C4",
              "C5",
              "C6"
            ],
            "edge": {
              "flat": true,
              "spread": "0",
              "bound": "0",
              "rawVariance": "0",
              "effectiveVarianceOfMean": "0"
            },
            "interior": {
              "flat": true,
              "spread": "0",
              "bound": "0",
              "rawVariance": "0",
              "effectiveVarianceOfMean": "0"
            }
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "B2",
          "B3",
          "B4",
          "B5",
          "B6",
          "B7",
          "B8",
          "B9",
          "B10",
          "B11",
          "C2",
          "C3",
          "C4",
          "C5",
          "C6"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 19,
            "edge": {
              "ok": false,
              "reason": "no-spread",
              "nEdge": 4,
              "nInterior": 15
            }
          }
        ]
      }
    },
    {
      "id": "negative-constants",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "-0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "-0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "-0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A5",
            "role": "sample",
            "value": "-0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "-0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "-0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "-0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "-0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B6",
            "role": "sample",
            "value": "-0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B7",
            "role": "sample",
            "value": "-0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B8",
            "role": "sample",
            "value": "-0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B9",
            "role": "sample",
            "value": "-0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B10",
            "role": "sample",
            "value": "-0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B11",
            "role": "sample",
            "value": "-0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C2",
            "role": "sample",
            "value": "-0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C3",
            "role": "sample",
            "value": "-0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C4",
            "role": "sample",
            "value": "-0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C5",
            "role": "sample",
            "value": "-0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C6",
            "role": "sample",
            "value": "-0.1",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "A2",
              "A3",
              "A4",
              "A5"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5",
              "B6",
              "B7",
              "B8",
              "B9",
              "B10",
              "B11",
              "C2",
              "C3",
              "C4",
              "C5",
              "C6"
            ],
            "edge": {
              "flat": true,
              "spread": "0",
              "bound": "3/5629499534213120",
              "rawVariance": "0",
              "effectiveVarianceOfMean": "0"
            },
            "interior": {
              "flat": true,
              "spread": "0",
              "bound": "3/4503599627370496",
              "rawVariance": "0",
              "effectiveVarianceOfMean": "0"
            }
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "B2",
          "B3",
          "B4",
          "B5",
          "B6",
          "B7",
          "B8",
          "B9",
          "B10",
          "B11",
          "C2",
          "C3",
          "C4",
          "C5",
          "C6"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 19,
            "edge": {
              "ok": false,
              "reason": "no-spread",
              "nEdge": 4,
              "nInterior": 15
            }
          }
        ]
      }
    },
    {
      "id": "small-constants",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "3e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "3e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "3e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A5",
            "role": "sample",
            "value": "3e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "1e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "1e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "1e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "1e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B6",
            "role": "sample",
            "value": "1e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B7",
            "role": "sample",
            "value": "1e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B8",
            "role": "sample",
            "value": "1e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B9",
            "role": "sample",
            "value": "1e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B10",
            "role": "sample",
            "value": "1e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B11",
            "role": "sample",
            "value": "1e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C2",
            "role": "sample",
            "value": "1e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C3",
            "role": "sample",
            "value": "1e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C4",
            "role": "sample",
            "value": "1e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C5",
            "role": "sample",
            "value": "1e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C6",
            "role": "sample",
            "value": "1e-25",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "A2",
              "A3",
              "A4",
              "A5"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5",
              "B6",
              "B7",
              "B8",
              "B9",
              "B10",
              "B11",
              "C2",
              "C3",
              "C4",
              "C5",
              "C6"
            ],
            "edge": {
              "flat": true,
              "spread": "0",
              "bound": "3/5629499534213120000000000000000000000000",
              "rawVariance": "0",
              "effectiveVarianceOfMean": "0"
            },
            "interior": {
              "flat": true,
              "spread": "0",
              "bound": "3/4503599627370496000000000000000000000000",
              "rawVariance": "0",
              "effectiveVarianceOfMean": "0"
            }
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "B2",
          "B3",
          "B4",
          "B5",
          "B6",
          "B7",
          "B8",
          "B9",
          "B10",
          "B11",
          "C2",
          "C3",
          "C4",
          "C5",
          "C6"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 19,
            "edge": {
              "ok": false,
              "reason": "no-spread",
              "nEdge": 4,
              "nInterior": 15
            }
          }
        ]
      }
    },
    {
      "id": "large-constants",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "3e12",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "3e12",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "3e12",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A5",
            "role": "sample",
            "value": "3e12",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "1e12",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "1e12",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "1e12",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "1e12",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B6",
            "role": "sample",
            "value": "1e12",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B7",
            "role": "sample",
            "value": "1e12",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B8",
            "role": "sample",
            "value": "1e12",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B9",
            "role": "sample",
            "value": "1e12",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B10",
            "role": "sample",
            "value": "1e12",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B11",
            "role": "sample",
            "value": "1e12",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C2",
            "role": "sample",
            "value": "1e12",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C3",
            "role": "sample",
            "value": "1e12",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C4",
            "role": "sample",
            "value": "1e12",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C5",
            "role": "sample",
            "value": "1e12",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C6",
            "role": "sample",
            "value": "1e12",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "A2",
              "A3",
              "A4",
              "A5"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5",
              "B6",
              "B7",
              "B8",
              "B9",
              "B10",
              "B11",
              "C2",
              "C3",
              "C4",
              "C5",
              "C6"
            ],
            "edge": {
              "flat": true,
              "spread": "0",
              "bound": "732421875/137438953472",
              "rawVariance": "0",
              "effectiveVarianceOfMean": "0"
            },
            "interior": {
              "flat": true,
              "spread": "0",
              "bound": "3662109375/549755813888",
              "rawVariance": "0",
              "effectiveVarianceOfMean": "0"
            }
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "B2",
          "B3",
          "B4",
          "B5",
          "B6",
          "B7",
          "B8",
          "B9",
          "B10",
          "B11",
          "C2",
          "C3",
          "C4",
          "C5",
          "C6"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 19,
            "edge": {
              "ok": false,
              "reason": "no-spread",
              "nEdge": 4,
              "nInterior": 15
            }
          }
        ]
      }
    },
    {
      "id": "within-relative-rounding",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A5",
            "role": "sample",
            "value": "0.30000000000000001",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B6",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B7",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B8",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B9",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B10",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B11",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C2",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C3",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C4",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C5",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C6",
            "role": "sample",
            "value": "0.10000000000000001",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "A2",
              "A3",
              "A4",
              "A5"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5",
              "B6",
              "B7",
              "B8",
              "B9",
              "B10",
              "B11",
              "C2",
              "C3",
              "C4",
              "C5",
              "C6"
            ],
            "edge": {
              "flat": true,
              "spread": "1/100000000000000000",
              "bound": "30000000000000001/56294995342131200000000000000000",
              "rawVariance": "1/40000000000000000000000000000000000",
              "effectiveVarianceOfMean": "0"
            },
            "interior": {
              "flat": true,
              "spread": "1/100000000000000000",
              "bound": "30000000000000003/45035996273704960000000000000000",
              "rawVariance": "1/150000000000000000000000000000000000",
              "effectiveVarianceOfMean": "0"
            }
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "B2",
          "B3",
          "B4",
          "B5",
          "B6",
          "B7",
          "B8",
          "B9",
          "B10",
          "B11",
          "C2",
          "C3",
          "C4",
          "C5",
          "C6"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 19,
            "edge": {
              "ok": false,
              "reason": "no-spread",
              "nEdge": 4,
              "nInterior": 15
            }
          }
        ]
      }
    },
    {
      "id": "above-relative-rounding-binary-ulps",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "1.000000000000227373675443232059478759765625",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "1.00000000000045474735088646411895751953125",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A5",
            "role": "sample",
            "value": "1.000000000000682121026329696178436279296875",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "1.0000000000001136868377216160297393798828125",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "1.000000000000227373675443232059478759765625",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "1.0000000000003410605131648480892181396484375",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "A2",
              "A3",
              "A4",
              "A5"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5"
            ],
            "edge": {
              "flat": false,
              "spread": "3/4398046511104",
              "bound": "4398046511107/2475880078570760549798248448",
              "rawVariance": "5/58028439341502200385896448",
              "effectiveVarianceOfMean": "5/232113757366008801543585792"
            },
            "interior": {
              "flat": false,
              "spread": "3/8796093022208",
              "bound": "8796093022211/4951760157141521099596496896",
              "rawVariance": "5/232113757366008801543585792",
              "effectiveVarianceOfMean": "5/928455029464035206174343168"
            },
            "meanEdge": "8796093022211/8796093022208",
            "meanInterior": "17592186044419/17592186044416",
            "difference": "3/17592186044416",
            "tSquared": "27/25",
            "df": "75/17"
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "B2",
          "B3",
          "B4",
          "B5"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 8,
            "edge": {
              "ok": true,
              "nEdge": 4,
              "nInterior": 4,
              "meanEdge": 1.000000000000341,
              "meanInterior": 1.0000000000001705,
              "difference": 1.7053025658242404e-13,
              "differencePercentOfSpan": null,
              "t": 1.0392304845413265,
              "df": 4.411764705882353,
              "p": 0.3522629812565186
            }
          }
        ]
      }
    },
    {
      "id": "edge-flat-interior-varying",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A5",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "0.2",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "0.4",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B6",
            "role": "sample",
            "value": "0.5",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B7",
            "role": "sample",
            "value": "0.6",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B8",
            "role": "sample",
            "value": "0.7",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "A2",
              "A3",
              "A4",
              "A5"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5",
              "B6",
              "B7",
              "B8"
            ],
            "edge": {
              "flat": true,
              "spread": "0",
              "bound": "3/5629499534213120",
              "rawVariance": "0",
              "effectiveVarianceOfMean": "0"
            },
            "interior": {
              "flat": false,
              "spread": "3/5",
              "bound": "49/22517998136852480",
              "rawVariance": "7/150",
              "effectiveVarianceOfMean": "1/150"
            },
            "meanEdge": "3/10",
            "meanInterior": "2/5",
            "difference": "-1/10",
            "tSquared": "3/2",
            "df": "6"
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "B2",
          "B3",
          "B4",
          "B5",
          "B6",
          "B7",
          "B8"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 11,
            "edge": {
              "ok": true,
              "nEdge": 4,
              "nInterior": 7,
              "meanEdge": 0.3,
              "meanInterior": 0.4,
              "difference": -0.1,
              "differencePercentOfSpan": null,
              "t": -1.224744871391589,
              "df": 6.0,
              "p": 0.2665697033800689
            }
          }
        ]
      }
    },
    {
      "id": "interior-flat-edge-varying",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "0.2",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A5",
            "role": "sample",
            "value": "0.4",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A6",
            "role": "sample",
            "value": "0.5",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A7",
            "role": "sample",
            "value": "0.6",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A8",
            "role": "sample",
            "value": "0.7",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B6",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "A2",
              "A3",
              "A4",
              "A5",
              "A6",
              "A7",
              "A8"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5",
              "B6"
            ],
            "edge": {
              "flat": false,
              "spread": "3/5",
              "bound": "49/22517998136852480",
              "rawVariance": "7/150",
              "effectiveVarianceOfMean": "1/150"
            },
            "interior": {
              "flat": true,
              "spread": "0",
              "bound": "3/4503599627370496",
              "rawVariance": "0",
              "effectiveVarianceOfMean": "0"
            },
            "meanEdge": "2/5",
            "meanInterior": "3/10",
            "difference": "1/10",
            "tSquared": "3/2",
            "df": "6"
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "A6",
          "A7",
          "A8",
          "B2",
          "B3",
          "B4",
          "B5",
          "B6"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 12,
            "edge": {
              "ok": true,
              "nEdge": 7,
              "nInterior": 5,
              "meanEdge": 0.4,
              "meanInterior": 0.3,
              "difference": 0.1,
              "differencePercentOfSpan": null,
              "t": 1.224744871391589,
              "df": 6.0,
              "p": 0.2665697033800689
            }
          }
        ]
      }
    },
    {
      "id": "flat-edge-own-scale-tiny-interior-scatter",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A5",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A6",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A7",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A8",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A9",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A10",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A11",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B12",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C12",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "D12",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "E12",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "F12",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "1e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "2e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "3e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "4e-25",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "A2",
              "A3",
              "A4",
              "A5",
              "A6",
              "A7",
              "A8",
              "A9",
              "A10",
              "A11",
              "B12",
              "C12",
              "D12",
              "E12",
              "F12"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5"
            ],
            "edge": {
              "flat": true,
              "spread": "0",
              "bound": "3/4503599627370496",
              "rawVariance": "0",
              "effectiveVarianceOfMean": "0"
            },
            "interior": {
              "flat": false,
              "spread": "3/10000000000000000000000000",
              "bound": "1/1407374883553280000000000000000000000000",
              "rawVariance": "1/60000000000000000000000000000000000000000000000000",
              "effectiveVarianceOfMean": "1/240000000000000000000000000000000000000000000000000"
            },
            "meanEdge": "1/10",
            "meanInterior": "1/4000000000000000000000000",
            "difference": "399999999999999999999999/4000000000000000000000000",
            "tSquared": "2399999999999999999999988000000000000000000000015",
            "df": "3"
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "A6",
          "A7",
          "A8",
          "A9",
          "A10",
          "A11",
          "B12",
          "C12",
          "D12",
          "E12",
          "F12",
          "B2",
          "B3",
          "B4",
          "B5"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 19,
            "edge": {
              "ok": true,
              "nEdge": 15,
              "nInterior": 4,
              "meanEdge": 0.1,
              "meanInterior": 2.5e-25,
              "difference": 0.1,
              "differencePercentOfSpan": null,
              "t": 1.5491933384829667e+24,
              "df": 3.0,
              "p": 5.931354528476478e-73
            }
          }
        ]
      }
    },
    {
      "id": "both-varying",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "90",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "94",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "92",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A5",
            "role": "sample",
            "value": "96",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "100",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "102",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "98",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "101",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B6",
            "role": "sample",
            "value": "99",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "A2",
              "A3",
              "A4",
              "A5"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5",
              "B6"
            ],
            "edge": {
              "flat": false,
              "spread": "6",
              "bound": "3/17592186044416",
              "rawVariance": "20/3",
              "effectiveVarianceOfMean": "5/3"
            },
            "interior": {
              "flat": false,
              "spread": "4",
              "bound": "255/1125899906842624",
              "rawVariance": "5/2",
              "effectiveVarianceOfMean": "1/2"
            },
            "meanEdge": "93",
            "meanInterior": "100",
            "difference": "-7",
            "tSquared": "294/13",
            "df": "2028/427"
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "B2",
          "B3",
          "B4",
          "B5",
          "B6"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 9,
            "edge": {
              "ok": true,
              "nEdge": 4,
              "nInterior": 5,
              "meanEdge": 93.0,
              "meanInterior": 100.0,
              "difference": -7.0,
              "differencePercentOfSpan": null,
              "t": -4.755563543407303,
              "df": 4.749414519906323,
              "p": 0.005799804265611483
            }
          }
        ]
      }
    },
    {
      "id": "both-varying-small-scale",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "9e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "9.4e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "9.2e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A5",
            "role": "sample",
            "value": "9.6e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "1e-24",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "1.02e-24",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "9.8e-25",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "1.01e-24",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B6",
            "role": "sample",
            "value": "9.9e-25",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "A2",
              "A3",
              "A4",
              "A5"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5",
              "B6"
            ],
            "edge": {
              "flat": false,
              "spread": "3/50000000000000000000000000",
              "bound": "3/1759218604441600000000000000000000000000",
              "rawVariance": "1/1500000000000000000000000000000000000000000000000000",
              "effectiveVarianceOfMean": "1/6000000000000000000000000000000000000000000000000000"
            },
            "interior": {
              "flat": false,
              "spread": "1/25000000000000000000000000",
              "bound": "51/22517998136852480000000000000000000000000",
              "rawVariance": "1/4000000000000000000000000000000000000000000000000000",
              "effectiveVarianceOfMean": "1/20000000000000000000000000000000000000000000000000000"
            },
            "meanEdge": "93/100000000000000000000000000",
            "meanInterior": "1/1000000000000000000000000",
            "difference": "-7/100000000000000000000000000",
            "tSquared": "294/13",
            "df": "2028/427"
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "B2",
          "B3",
          "B4",
          "B5",
          "B6"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 9,
            "edge": {
              "ok": true,
              "nEdge": 4,
              "nInterior": 5,
              "meanEdge": 9.3e-25,
              "meanInterior": 1e-24,
              "difference": -7e-26,
              "differencePercentOfSpan": null,
              "t": -4.755563543407303,
              "df": 4.749414519906323,
              "p": 0.005799804265611483
            }
          }
        ]
      }
    },
    {
      "id": "varying-equal-means",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "0.2",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A5",
            "role": "sample",
            "value": "0.4",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "0.05",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "0.15",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "0.35",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "0.45",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "A2",
              "A3",
              "A4",
              "A5"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5"
            ],
            "edge": {
              "flat": false,
              "spread": "3/10",
              "bound": "1/1407374883553280",
              "rawVariance": "1/60",
              "effectiveVarianceOfMean": "1/240"
            },
            "interior": {
              "flat": false,
              "spread": "2/5",
              "bound": "9/11258999068426240",
              "rawVariance": "1/30",
              "effectiveVarianceOfMean": "1/120"
            },
            "meanEdge": "1/4",
            "meanInterior": "1/4",
            "difference": "0",
            "tSquared": "0",
            "df": "27/5"
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "B2",
          "B3",
          "B4",
          "B5"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 8,
            "edge": {
              "ok": true,
              "nEdge": 4,
              "nInterior": 4,
              "meanEdge": 0.25,
              "meanInterior": 0.25,
              "difference": 0.0,
              "differencePercentOfSpan": null,
              "t": 0.0,
              "df": 5.4,
              "p": 1.0
            }
          }
        ]
      }
    },
    {
      "id": "three-edge-floor",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "A2",
              "A3",
              "A4"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5"
            ]
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "B2",
          "B3",
          "B4",
          "B5"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 7,
            "edge": {
              "ok": false,
              "reason": "too-few-wells",
              "nEdge": 3,
              "nInterior": 4
            }
          }
        ]
      }
    },
    {
      "id": "three-interior-floor",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A5",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "A2",
              "A3",
              "A4",
              "A5"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4"
            ]
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "B2",
          "B3",
          "B4"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 7,
            "edge": {
              "ok": false,
              "reason": "too-few-wells",
              "nEdge": 4,
              "nInterior": 3
            }
          }
        ]
      }
    },
    {
      "id": "four-each-floor",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "2",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A5",
            "role": "sample",
            "value": "4",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "2",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "4",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "5",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "A2",
              "A3",
              "A4",
              "A5"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5"
            ],
            "edge": {
              "flat": false,
              "spread": "3",
              "bound": "1/140737488355328",
              "rawVariance": "5/3",
              "effectiveVarianceOfMean": "5/12"
            },
            "interior": {
              "flat": false,
              "spread": "3",
              "bound": "5/562949953421312",
              "rawVariance": "5/3",
              "effectiveVarianceOfMean": "5/12"
            },
            "meanEdge": "5/2",
            "meanInterior": "7/2",
            "difference": "-1",
            "tSquared": "6/5",
            "df": "6"
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "B2",
          "B3",
          "B4",
          "B5"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 8,
            "edge": {
              "ok": true,
              "nEdge": 4,
              "nInterior": 4,
              "meanEdge": 2.5,
              "meanInterior": 3.5,
              "difference": -1.0,
              "differencePercentOfSpan": null,
              "t": -1.0954451150103321,
              "df": 6.0,
              "p": 0.31533359620122986
            }
          }
        ]
      }
    },
    {
      "id": "exclusion-crosses-edge-floor",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": true
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A5",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "A3",
              "A4",
              "A5"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5"
            ]
          }
        ],
        "keptWells": [
          "A3",
          "A4",
          "A5",
          "B2",
          "B3",
          "B4",
          "B5"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 7,
            "edge": {
              "ok": false,
              "reason": "too-few-wells",
              "nEdge": 3,
              "nInterior": 4
            }
          }
        ]
      }
    },
    {
      "id": "exclusion-crosses-interior-floor",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A5",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": true
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "A2",
              "A3",
              "A4",
              "A5"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4"
            ]
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "B2",
          "B3",
          "B4"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 7,
            "edge": {
              "ok": false,
              "reason": "too-few-wells",
              "nEdge": 4,
              "nInterior": 3
            }
          }
        ]
      }
    },
    {
      "id": "excluded-outlier-keeps-flat-counts",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A5",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A6",
            "role": "sample",
            "value": "99",
            "concentration": "1",
            "excluded": true
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B6",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B7",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B8",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B9",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B10",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B11",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C2",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C3",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C4",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C5",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C6",
            "role": "sample",
            "value": "0.1",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "A2",
              "A3",
              "A4",
              "A5"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5",
              "B6",
              "B7",
              "B8",
              "B9",
              "B10",
              "B11",
              "C2",
              "C3",
              "C4",
              "C5",
              "C6"
            ],
            "edge": {
              "flat": true,
              "spread": "0",
              "bound": "3/5629499534213120",
              "rawVariance": "0",
              "effectiveVarianceOfMean": "0"
            },
            "interior": {
              "flat": true,
              "spread": "0",
              "bound": "3/4503599627370496",
              "rawVariance": "0",
              "effectiveVarianceOfMean": "0"
            }
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "B2",
          "B3",
          "B4",
          "B5",
          "B6",
          "B7",
          "B8",
          "B9",
          "B10",
          "B11",
          "C2",
          "C3",
          "C4",
          "C5",
          "C6"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 19,
            "edge": {
              "ok": false,
              "reason": "no-spread",
              "nEdge": 4,
              "nInterior": 15
            }
          }
        ]
      }
    },
    {
      "id": "physical-ring-96",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "H2",
            "role": "sample",
            "value": "1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "H3",
            "role": "sample",
            "value": "2",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B12",
            "role": "sample",
            "value": "3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C1",
            "role": "sample",
            "value": "4",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "2",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "4",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "5",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B6",
            "role": "sample",
            "value": "6",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "H2",
              "H3",
              "B12",
              "C1"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5",
              "B6"
            ],
            "edge": {
              "flat": false,
              "spread": "3",
              "bound": "1/140737488355328",
              "rawVariance": "5/3",
              "effectiveVarianceOfMean": "5/12"
            },
            "interior": {
              "flat": false,
              "spread": "4",
              "bound": "15/1125899906842624",
              "rawVariance": "5/2",
              "effectiveVarianceOfMean": "1/2"
            },
            "meanEdge": "5/2",
            "meanInterior": "4",
            "difference": "-3/2",
            "tSquared": "27/11",
            "df": "363/52"
          }
        ],
        "keptWells": [
          "H2",
          "H3",
          "B12",
          "C1",
          "B2",
          "B3",
          "B4",
          "B5",
          "B6"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 9,
            "edge": {
              "ok": true,
              "nEdge": 4,
              "nInterior": 5,
              "meanEdge": 2.5,
              "meanInterior": 4.0,
              "difference": -1.5,
              "differencePercentOfSpan": null,
              "t": -1.5666989036012806,
              "df": 6.980769230769231,
              "p": 0.16128585628930456
            }
          }
        ]
      }
    },
    {
      "id": "physical-ring-384",
      "inputs": {
        "format": 384,
        "wells": [
          {
            "well": "P2",
            "role": "sample",
            "value": "1",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "P3",
            "role": "sample",
            "value": "2",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B24",
            "role": "sample",
            "value": "3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "C1",
            "role": "sample",
            "value": "4",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "2",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "4",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "5",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B6",
            "role": "sample",
            "value": "6",
            "concentration": "1",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [
          {
            "group": "samples",
            "edgeWells": [
              "P2",
              "P3",
              "B24",
              "C1"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5",
              "B6"
            ],
            "edge": {
              "flat": false,
              "spread": "3",
              "bound": "1/140737488355328",
              "rawVariance": "5/3",
              "effectiveVarianceOfMean": "5/12"
            },
            "interior": {
              "flat": false,
              "spread": "4",
              "bound": "15/1125899906842624",
              "rawVariance": "5/2",
              "effectiveVarianceOfMean": "1/2"
            },
            "meanEdge": "5/2",
            "meanInterior": "4",
            "difference": "-3/2",
            "tSquared": "27/11",
            "df": "363/52"
          }
        ],
        "keptWells": [
          "P2",
          "P3",
          "B24",
          "C1",
          "B2",
          "B3",
          "B4",
          "B5",
          "B6"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "samples",
            "n": 9,
            "edge": {
              "ok": true,
              "nEdge": 4,
              "nInterior": 5,
              "meanEdge": 2.5,
              "meanInterior": 4.0,
              "difference": -1.5,
              "differencePercentOfSpan": null,
              "t": -1.5666989036012806,
              "df": 6.980769230769231,
              "p": 0.16128585628930456
            }
          }
        ]
      }
    },
    {
      "id": "roles-never-pooled",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "positive",
            "value": "0.3",
            "concentration": null,
            "excluded": false
          },
          {
            "well": "A3",
            "role": "positive",
            "value": "0.3",
            "concentration": null,
            "excluded": false
          },
          {
            "well": "A4",
            "role": "positive",
            "value": "0.3",
            "concentration": null,
            "excluded": false
          },
          {
            "well": "A5",
            "role": "positive",
            "value": "0.3",
            "concentration": null,
            "excluded": false
          },
          {
            "well": "B2",
            "role": "negative",
            "value": "0.1",
            "concentration": null,
            "excluded": false
          },
          {
            "well": "B3",
            "role": "negative",
            "value": "0.1",
            "concentration": null,
            "excluded": false
          },
          {
            "well": "B4",
            "role": "negative",
            "value": "0.1",
            "concentration": null,
            "excluded": false
          },
          {
            "well": "B5",
            "role": "negative",
            "value": "0.1",
            "concentration": null,
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": "1/5",
        "groups": [
          {
            "group": "positive",
            "edgeWells": [
              "A2",
              "A3",
              "A4",
              "A5"
            ],
            "interiorWells": []
          },
          {
            "group": "negative",
            "edgeWells": [],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5"
            ]
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "B2",
          "B3",
          "B4",
          "B5"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "positive",
            "n": 4,
            "edge": {
              "ok": false,
              "reason": "too-few-wells",
              "nEdge": 4,
              "nInterior": 0
            }
          },
          {
            "group": "negative",
            "n": 4,
            "edge": {
              "ok": false,
              "reason": "too-few-wells",
              "nEdge": 0,
              "nInterior": 4
            }
          }
        ]
      }
    },
    {
      "id": "sample-concentrations-never-pooled",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A3",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A4",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "A5",
            "role": "sample",
            "value": "0.3",
            "concentration": "1",
            "excluded": false
          },
          {
            "well": "B2",
            "role": "sample",
            "value": "0.1",
            "concentration": "2",
            "excluded": false
          },
          {
            "well": "B3",
            "role": "sample",
            "value": "0.1",
            "concentration": "2",
            "excluded": false
          },
          {
            "well": "B4",
            "role": "sample",
            "value": "0.1",
            "concentration": "2",
            "excluded": false
          },
          {
            "well": "B5",
            "role": "sample",
            "value": "0.1",
            "concentration": "2",
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": null,
        "groups": [],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "B2",
          "B3",
          "B4",
          "B5"
        ]
      },
      "expected": {
        "pattern": []
      }
    },
    {
      "id": "control-span-kept",
      "inputs": {
        "format": 96,
        "wells": [
          {
            "well": "A2",
            "role": "positive",
            "value": "90",
            "concentration": null,
            "excluded": false
          },
          {
            "well": "A3",
            "role": "positive",
            "value": "94",
            "concentration": null,
            "excluded": false
          },
          {
            "well": "A4",
            "role": "positive",
            "value": "92",
            "concentration": null,
            "excluded": false
          },
          {
            "well": "A5",
            "role": "positive",
            "value": "96",
            "concentration": null,
            "excluded": false
          },
          {
            "well": "B2",
            "role": "positive",
            "value": "100",
            "concentration": null,
            "excluded": false
          },
          {
            "well": "B3",
            "role": "positive",
            "value": "102",
            "concentration": null,
            "excluded": false
          },
          {
            "well": "B4",
            "role": "positive",
            "value": "98",
            "concentration": null,
            "excluded": false
          },
          {
            "well": "B5",
            "role": "positive",
            "value": "101",
            "concentration": null,
            "excluded": false
          },
          {
            "well": "B6",
            "role": "positive",
            "value": "99",
            "concentration": null,
            "excluded": false
          },
          {
            "well": "D12",
            "role": "negative",
            "value": "10",
            "concentration": null,
            "excluded": false
          },
          {
            "well": "E12",
            "role": "negative",
            "value": "12",
            "concentration": null,
            "excluded": false
          }
        ]
      },
      "decision": {
        "controlSpan": "773/9",
        "groups": [
          {
            "group": "positive",
            "edgeWells": [
              "A2",
              "A3",
              "A4",
              "A5"
            ],
            "interiorWells": [
              "B2",
              "B3",
              "B4",
              "B5",
              "B6"
            ],
            "edge": {
              "flat": false,
              "spread": "6",
              "bound": "3/17592186044416",
              "rawVariance": "20/3",
              "effectiveVarianceOfMean": "5/3"
            },
            "interior": {
              "flat": false,
              "spread": "4",
              "bound": "255/1125899906842624",
              "rawVariance": "5/2",
              "effectiveVarianceOfMean": "1/2"
            },
            "meanEdge": "93",
            "meanInterior": "100",
            "difference": "-7",
            "tSquared": "294/13",
            "df": "2028/427"
          },
          {
            "group": "negative",
            "edgeWells": [
              "D12",
              "E12"
            ],
            "interiorWells": []
          }
        ],
        "keptWells": [
          "A2",
          "A3",
          "A4",
          "A5",
          "B2",
          "B3",
          "B4",
          "B5",
          "B6",
          "D12",
          "E12"
        ]
      },
      "expected": {
        "pattern": [
          {
            "group": "positive",
            "n": 9,
            "edge": {
              "ok": true,
              "nEdge": 4,
              "nInterior": 5,
              "meanEdge": 93.0,
              "meanInterior": 100.0,
              "difference": -7.0,
              "differencePercentOfSpan": -8.15006468305304,
              "t": -4.755563543407303,
              "df": 4.749414519906323,
              "p": 0.005799804265611483
            }
          },
          {
            "group": "negative",
            "n": 2,
            "edge": {
              "ok": false,
              "reason": "too-few-wells",
              "nEdge": 2,
              "nInterior": 0
            }
          }
        ]
      }
    }
  ]
}
