Pyrosequencing is used to reveal the genetic code of a section of DNA. It is also able to detect single nucleotide polymorphisms, insertion-deletion, or other sequence variations, in addition to being able to quantify DNA methylation and allele frequency.
Metagenomics is the study of a collection of genetic material (genomes) from a mixed community of organisms. Metagenomics usually refers to the study of microbial communities.