An algorithm identifies deeply homologous genetic modules in unicellular organisms, plants, and non-human animals based on phenotypes (such as traits and developmental defects). The technique aligns phenotypes across organisms based on the homology of genes involved in the phenotypes.