For a simple example of a complementation test, suppose a geneticist is interested in studying two strains of white-eyed flies of the species
Drosophila melanogaster, more commonly known as the common fruit fly. In this species,
wild-type flies have red eyes, and eye color is known to be related to two genes, A and B. Each of these genes has two alleles, a
dominant one that codes for a working protein (
A and
B respectively) and a
recessive one that codes for a malfunctioning protein (
a and
b respectively). Since both proteins are necessary for the synthesis of red pigmentation in the eyes, if a given fly is
homozygous for either
a or
b, it will have white eyes. Knowing this, the geneticist may perform a complementation test on two separately obtained strains of pure-breeding white-eyed flies. The test is performed by crossing two flies, one from each strain. If the resulting progeny have red eyes, the two strains are said to complement; if the progeny have white eyes, they do not. If the strains complement, we imagine that one strain must have a genotype aa BB and the other AA bb, which yields the genotype AaBb when crossed. In other words, each strain is homozygous for a different deficiency that produces the same phenotype. If the strains do not complement, they both must have genotypes 'aaBB', 'AAbb', or 'aabb'. In other words, they are both homozygous for the same deficiency, which obviously will produce the same phenotype. ==Complementation tests in fungi and bacteriophage==