Functional annotation of a divergent genome using sequence and structure-based similarity