I'm trying to find bacterial species with certain metabolic pathways. I want to curate a "metagenome" of individual species that each have certain metabolic characteristics. So far, I have found KEGG has information on metabolic pathways, or I can search for a known species and see the KEGG pathways for that species. In NCBI, I have searched genomes and metagenomes for a function, but search results only display genomes that have the function keyword explicitly written in the description.
Is there a way to search KEGG or another database for all species that have a metabolic pathway or gene related to a certain function?