This document contains slides from a lecture on metagenomics given by Jonathan Eisen at UC Davis in winter 2014. The lecture discusses shotgun metagenomics and analyzing metagenomic functions and gene content from environmental samples without genome assemblies. It provides an example of a comparative metagenomics study of various microbial communities that identified habitat-specific genes and metabolic profiles reflecting the different environments. The slides include figures and references from a 2005 Science paper on this topic. Problem set 4 for the class involves selecting a relevant paper for presentation the following week.