Skip to content

LOD score for linkage from phase-known meioses and recombinants

genetics_lod_score

Works out the two-point LOD score against unlinked for phase-known meioses and recombinants.

Runs
On the server
Level
Checked against a reference: exact arithmetic: Python fractions and mpmath at 50 digits on the definition, written before the engine, with hand-worked cases; two second implementations in Python by separate agents of the same model family; Ott, Wang and Leal 2015's printed maxima
Ask your assistant

What it is

Returns the two-point LOD score, the log10 likelihood ratio against unlinked, for phase-known meioses and recombinants. Use when a cross or a phase-known family gives N scored meioses and R recombinants, at R/N capped at one half or at fractions you state. Not for allele association in a population sample: use `popgen_linkage_disequilibrium`. Counts only, R at most N; fractions from 0 to one half in unit 1; no linkage call is made and no p-value is given.

Field: Genetics, evolution and ecology.

What it does

You give

  • meioses (required): N, the phase-known meioses scored, at least 1. Must be at least 1 and at most 1000000.
  • recombinants (required): R, the recombinant meioses among them, from 0 to N. Must be at least 0 and at most 1000000.
  • thetas: Fractions at which to give Z as well as at the maximum; leave out for Z at the maximum only. Optional.

No request is recorded for this tool.

Limits

  • Research and teaching arithmetic on the caller's data.
  • Not for diagnosis, genetic counselling, clinical, breeding, conservation-management or animal-welfare decisions.
  • The tool checks arithmetic, not the data.
  • Two-point LOD for phase-known meioses with recombinants counted by the caller; not for phase-unknown or pedigree data; no linkage call is made.
  • Every computed number a reply returns, other than an integer or an exact decimal, is rounded once to 12 significant figures: to the nearest, a change of at most 5 × 10⁻¹² of its value, except that a lower bound is rounded down and an upper bound up, a change of less than 1 × 10⁻¹¹; the method computes, and decides any pass or fail, on the unrounded value.

It will not answer when

  • the recombinants counted exceed the meioses scored.
Every input, with its units3 inputs
  • meioses (required): N, the phase-known meioses scored, at least 1. Must be at least 1 and at most 1000000.
  • recombinants (required): R, the recombinant meioses among them, from 0 to N. Must be at least 0 and at most 1000000.
  • thetas: Fractions at which to give Z as well as at the maximum; leave out for Z at the maximum only. Optional.
Every refusal, with its code1 refusal
CodeWhen
RECOMBINANTS_ABOVE_MEIOSESthe recombinants counted exceed the meioses scored.

The calculation

The method's equations, constants and worked example.

Two-point LOD score for phase-known meiosesgenetics-lod-score@1.0.2

Equation 1

θ̂ = min(R/N, ½)

SymbolMeaning
θ̂maximum-likelihood recombination fraction, capped at one half
Rrecombinant meioses counted by the caller
Nphase-known meioses scored

Source 1.

Equation 2

Z(θ) = log10[θ^R (1 − θ)^(N − R) / ½^N] = R·log10(2θ) + (N − R)·log10(2(1 − θ)), with 0^0 = 1

SymbolMeaning
Z(θ)LOD score at recombination fraction θ, log10(1)
θrecombination fraction, from 0 to one half
Rrecombinant meioses
Nphase-known meioses

Source 1.

A definition, not a model: the equation states what the quantity means. A different convention gives a different number.

Worked example

Worked example: one case of genetics-lod-score@1.0.2, from its inputs through each step to the answer. Values are written as a person writes them; the working carries more digits, so your own figure may differ in the last digit shown.

Inputs

  • meioses = 20
  • recombinants = 2

Steps

  1. thetaHat = 0.1, from recombinants, meioses; by equation 1; gives maximumLikelihoodFraction.
  2. z = 3.1969651 log10(1), from meioses, recombinants, thetaHat; by equation 2; gives lodAtMaximum.

The working, as the case writes it:

theta-hat = 2/20 = 0.1. Z = log10(0.1^2 x 0.9^18 / 0.5^20) = 2 log10 0.1 + 18 log10 0.9 + 20 log10 2 = -2 - 0.8236540 + 6.0205999 = 3.1969651.

Answer

maximumLikelihoodFraction = 0.1

lodAtMaximum = 3.1969651 log10(1)

Where these values came from: our own exact-arithmetic script and a hand-worked case; stored reference values: fractions and mpmath 1.3.0 at 50 digits on the definition.

At build the tool returned this answer within the tolerance the file states: LOD absolute 1e-9 in log10(1); recombination fractions absolute 1e-15; statuses, codes, units, flags and withheld rules exact.

Sources

  1. Ott J, Wang J, Leal SM. Genetic linkage analysis in the age of whole-genome sequencing. Nature Reviews Genetics 2015; 16(5): 275–284

    Used for: Two-point LOD score for phase-known meioses. At: section Approaches for linkage analysis, LOD scores: in phase-known pedigrees the recombinant (k) and non-recombinant (n − k) events can be counted directly, and the estimate of the recombination fraction is then θ = k/n. The cap at ½ is this record's, consistent with Figure 3's maximum of 0 at θ = 0.5 for k = 6 of 10; section Figure 2b legend: for five phase-known offspring with no recombination events, Z(θ) = log10[(1 − θ)^5/(½)^5], maximum 1.5 at θ = 0; Glossary: the LOD score is the log of the likelihood ratio, numerator under linkage, denominator under no linkage (θ = ½); Figure 3 legend: maxima 3.0, 1.6 and 0 for k = 0, 1 and 6 of 10. The likelihood θ^R (1 − θ)^(N − R) for R recombinants is this record's generalisation of the printed k = 0 form, consistent with Figure 3's printed maxima.

    Read in full, 17 November 2026

How it is checked

Level

Checked against a reference.

Checked against

Our own exact-arithmetic script and a hand-worked case.

Cases

No case set is linked to this version.

Not checked

Morton 1955 was not read (its PMC scan is behind a reCAPTCHA); Ott, Wang and Leal 2015 print the no-recombinant form and three maxima, not a table of LOD scores, and the binomial form for R recombinants is this record's generalisation of theirs; only their printed maxima, to one decimal, are compared. Phase-unknown meioses, pedigrees, sex-specific fractions and multipoint LODs are outside the method.

What was not checked, in fullfrom the method records
  • Morton 1955 was not read (its PMC scan is behind a reCAPTCHA); Ott, Wang and Leal 2015 print the no-recombinant form and three maxima, not a table of LOD scores, and the binomial form for R recombinants is this record's generalisation of theirs; only their printed maxima, to one decimal, are compared.
  • Phase-unknown meioses, pedigrees, sex-specific fractions and multipoint LODs are outside the method.
  • Whether the caller's meioses are phase-known and the recombinants correctly counted is the caller's.
Changes to its methods0 changes

No change is logged for these method versions.