Before we knew about genes, doctors pointed to heredity as a cause for madness, and they, along with government officials, became obsessed with preventing families of the insane from reproducing. Genetics in the Madhouse (Princeton University Press) looks at the data techniques used, and how they developed eugenics.