This disclosure provides, among other things, methods of analyzing microbial communities using whole genome data, methods of diagnosing subjects based on information from microbial communities, and methods of treating subjects by modifying microbial communities they host.