The study of the entire DNA sequence of an organism or species, including the identification of genes and their functions.