Population Genetic Analyis of Entire Genomes, From Snp Discovery to Genome-Wide Scans For Selection