Population Genetics API
Population-genetics maths as an API, computed locally and deterministically. The hardy-weinberg endpoint applies the Hardy-Weinberg principle, p² + 2pq + q² = 1 — give a dominant allele frequency p, a recessive q, or the homozygous-recessive (affected) frequency q² and it returns all the allele and genotype frequencies, including the carrier frequency 2pq. The punnett endpoint crosses two parent genotypes and returns the offspring genotype and phenotype ratios, handling a single gene (a monohybrid 1:2:1 / 3:1 cross), two genes (a dihybrid 9:3:3:1 cross) and up to four genes by independent assortment. The carrier endpoint takes the incidence of a recessive disease — as a fraction or one-in-N — and returns the recessive allele frequency q = √incidence, the carrier frequency 2pq, the one-in-N carrier rate and, for a given population, the expected number of carriers and affected individuals. Everything is computed locally and deterministically, so it is instant and private. Ideal for genetics-education, genetic-counselling, breeding and biology app developers, inheritance and risk tools, and biology teaching. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is population genetics; for DNA sequence analysis use a DNA API.
api.oanor.com/genetics-api