Functional consequences in metabolic pathways from phylogenetic profiles