Shotgun metagenomic sequencing allows researchers to comprehensively sample all genes in all organisms present in a given complex sample. The method enables microbiologists to evaluate bacterial diversity and detect the abundance of microbes in various environments.