Reconstructing the metabolic network of a bacterium from its genome