There are two main methods of DNA sequencing: the chain termination method (Sanger sequencing) and fluorescent sequencing. Sanger sequencing uses dideoxynucleotides that terminate DNA synthesis, producing fragments of different lengths that can be resolved on a gel. Fluorescent sequencing labels each dideoxynucleotide with a different colored dye, then uses software to analyze electrophoresed fragments by color and size. Next-generation sequencing allows high-throughput parallel sequencing of multiple DNA segments. It can be used for whole genome sequencing, targeted exome sequencing, or custom panels. Metagenomics applies next-generation sequencing to study the genomes of multiple organisms within an environmental sample.