The process of performing a karyotype which is a test to identify chromosome abnormalities as the cause of malformation or disease. This test can both count the number of chromosomes and look for structural changes in chromosomes that may indicate genetic changes associated with increased risk for disease.