D4 is encoded by the Dopamine receptor D4 gene. The D4 receptor gene displays polymorphisms that differ in a variable number tandem repeat present within the coding sequence of exon 3. Some of these alleles are associated with greater incidence of certain disorders. For example, the D4.7 alleles have an established association with attention-deficit hyperactivity disorder.