A couple has a known family history of a genetic disorder. They visit a doctor before they have their first child, and the doctor performs karyotyping on both the male and the female. What is the doctor most likely trying to do?