As the number of assembled genome and metagenome sequences continue to grow at an ever-increasing pace, so does the need for fast, flexible and automated pipelines for generating meaningful homologous relationships within and between these (meta)genomes. Such relationships, or lack thereof, are crucial for differentiating between microbial organisms and environments at compositional, functional and phylogenetic levels. Metaphor is a standalone application that identifies core genes, unique genes, orthologs and paralogs in complex genomic datasets. It is not only limited to isolate genomes, but can also be applied to metagenomes due to its flexible implementation of Bi-directional Best Hit analysis. Thus, Metaphor can be used for a variety of functional and phylogenetic applications on a multitude of (meta)genome datasets.