The comet assay involves embedding cells in a thin layer of agarose on a microscope slide, lysing the cells to form nucleoids, subjecting them to electrophoresis, and then staining the DNA with a fluorescent dye. The extent of DNA migration from the nucleus (forming a comet tail) is proportional to the amount of damage.