Allele Frequency p from Homozygote Recessive q2 Square Root Solver

Solve p=1−sqrt(q²) conditionally under biallelic Hardy-Weinberg equilibrium; not direct allele counting.

Description

Solve p=1−sqrt(q²) conditionally under biallelic Hardy-Weinberg equilibrium; not direct allele counting.

Under a biallelic Hardy-Weinberg model, the recessive-homozygote fraction is q squared. Taking its square root provides a conditional allele-frequency estimate.

When to use this tool

Solve p=1−sqrt(q²) conditionally under biallelic Hardy-Weinberg equilibrium; not direct allele counting.

  • Prepare the supplied recessiveHomozygoteFraction fields for this operation.
  • Compare the complete example with the representation used by your own input before carrying the result into another step.

How to use the tool and how it works

  1. Enter recessiveHomozygoteFraction. Use the exact text syntax, units and index conventions explained below.
  2. Run the tool. If input validation fails, correct the supplied fields before interpreting any result.
  3. Read result.q, result.p, result.assumption. Interpret false, null and empty lists using the distinctions below; they can be valid outputs.

Require recessiveHomozygoteFraction within zero through one. Return q as its square root, p as one minus q, and the biallelic-Hardy-Weinberg assumption.1

Input fieldMeaning and representationAccepted input
recessiveHomozygoteFractionrecessive homozygote fraction.Finite number; from zero through one inclusive
Output fieldInterpretation
resultObject containing the named outputs below.
result.qThe q value under the stated formula or text convention.
result.pThe p value under the stated formula or text convention.
result.assumptionThe assumption value under the stated formula or text convention.
json
{
  "input": {
    "recessiveHomozygoteFraction": 0.25
  },
  "output": {
    "result": {
      "q": 0.5,
      "p": 0.5,
      "assumption": "biallelic-Hardy-Weinberg"
    }
  }
}

Limitations and assumptions

  • No equilibrium test, sampling interval or genotype validation is performed. The model does not apply automatically to every population or inheritance system, and inputs are fractions rather than percentages.
  • Every declared top-level field is required and unexpected fields are rejected. Numeric inputs must be finite; ordinary text fields are bounded to 8,192 UTF-16 code units, with tighter operation-specific limits where stated.
  • Ordinary string lists have at most 128 entries of at most 128 code units each; numeric lists and matrices have separate bounded size checks. Nonfinite results and excessively large serialized outputs are rejected.
  • Indexes are zero-based and spans have an exclusive end unless explicitly stated otherwise. A valid false, null or empty-list result is distinct from malformed input.

Alternative or Complementary methods

Keep model assumptions and phenotype-category order with each result. Ratio tolerance screens differ from goodness-of-fit inference, and sequence matches or likelihood products do not independently establish a biological mechanism or personal identity.

References

  1. Tool behavior and example: Allele Frequency p from Homozygote Recessive q2 Square Root Solver — tool.io

Similar or alternative tools

  • abo genotype cross

    A simplified ABO cross maps A and B alleles to codominant expression and O to the recessive phenotype.

  • additive phenotype class count

    An equal-effect additive diploid model groups offspring by the number of contributing allele copies.

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies