Back to catalog
Cortexa research tool·genomics·popgen
PopGen Hwe Test
Test Hardy-Weinberg equilibrium for a biallelic locus given observed genotype counts (AA, Aa, aa). Computes allele frequencies, expected genotype counts under HWE, chi-square statistic with 1 df, and p-value. Reports whether the locus is in HWE (p > 0.05) and, if not, whether heterozygote excess or deficit is observed. Useful for detecting selection, inbreeding, assortative mating, or genotyping error at individual loci.
Livelast probed 2026-04-30 23:07Z· 101msCortexa
Status
The most recent probe succeeded. Safe to call from the agent today.
- Last probed
- 1d ago
- Last success
- 1d ago
- Last latency
- 101ms
Schema
JSON Schema the agent (or your API call) must match.
{
"properties": {
"obs_AA": {
"description": "Observed count of homozygous dominant (AA) genotypes",
"type": "integer"
},
"obs_Aa": {
"description": "Observed count of heterozygous (Aa) genotypes",
"type": "integer"
},
"obs_aa": {
"description": "Observed count of homozygous recessive (aa) genotypes",
"type": "integer"
},
"operation": {
"description": "Operation type",
"enum": [
"hwe_test"
],
"type": "string"
}
},
"required": [
"operation",
"obs_AA",
"obs_Aa",
"obs_aa"
],
"type": "object"
}Examples (1)
Default PopGen Hwe Test call
public-safeinput
{
"obs_AA": 1,
"obs_Aa": 1,
"obs_aa": 1,
"operation": ""
}Expected response keys: success
Anonymous-safe example. Rate-limited; no sign-in required.
Identifiers
- Catalog ID
- tu_PopGen_hwe_test
- Tool name
- PopGen_hwe_test
- Added
- 2026-04-30 22:47Z
- Tags
- tooluniverse