The discovery of the HD gene led to a genetic test to make or confirm the diagnosis of Huntington’s disease. Using a blood sample, the genetic test analyzes DNA for the HD mutation by counting the number of CAG repeats in the huntingtin gene.
https://www.genome.gov/Genetic-Disorders/Huntingtons-Disease