The process begins with a sample collection, which can be done through various methods such as blood draw, amniocentesis, or chorionic villus sampling. The cells are then cultured in a laboratory to allow them to divide. During cell division, chromosomes are most visible and are stained to be examined under a microscope. Specialized software and laboratory techniques are used to arrange and photograph the chromosomes, creating a karyotype for detailed analysis.