def get_domain(self, token=None, ref=None): try: taxon_api = TaxonAPI(self.services, token, ref) return taxon_api.get_domain() except Exception, e: raise ttypes.ServiceException(e.message, traceback.print_exc(), "get_domain", {"ref": str(ref)})
def get_genome_annotations(self, token=None, ref=None): try: taxon_api = TaxonAPI(self.services, token, ref) return taxon_api.get_genome_annotations(ref_only=True) except Exception, e: raise ttypes.ServiceException(e.message, traceback.print_exc(), "get_genome_annotation", {"ref": str(ref)})