Evolutionary and ecological functional genomics