Metagenomics analyses the entire microbial community of a specific habitat by recovering genetic material directly from the environment. It involves studies of the community structure, species classification, systematic evolution, gene function, and metabolic network at a population level.