Epistasis refers to the phenomenon where the effect of one gene is dependent on the presence of other genes. There are different types of epistatic interactions: dominant epistasis occurs when a dominant allele of one gene masks the effect of alleles at another gene locus; recessive epistasis occurs when a recessive allele of one gene hides the effects of alleles at another locus; and duplicate recessive genes, or complementary genes, produce the same phenotype only when both genes have homozygous recessive alleles. Epistasis can modify expected Mendelian ratios from crosses.