After a thorough medical history-taking and a physical examination, semen analysis determines the quantity and quality of semen. Further investigations, including diagnostic and genetic testing, may be required based on early results. Ultrasound may be used to identify a varicocele or abnormalities of the sperm tract.