The procedure involves embedding cells in agarose gel on a microscope slide, lysing the cells to release DNA, and applying an electric field. The DNA migrates towards the anode, forming a shape that resembles a comet. The extent of DNA migration is indicative of the level of damage.