Codon bias and selection on single genomes