INFERRING ORTHOLOGOUS RELATIONSHIPS AND GENE TRANSFER IN MICROBIAL GENOMES AND METAGENOMES