Deciphering the regulatory codes in bacterial genomes