class QueryGetter: def __init__(self): self.query_handler = QueryHandler() def search(self, query_str, incl="ensembl"): resp = self.query_handler.search(query_str, keyed=True, incl=incl) return resp.source_matches[SourceName.ENSEMBL.value]
class QueryGetter: def __init__(self): self.query_handler = QueryHandler() def search(self, query_str, incl='hgnc'): resp = self.query_handler.search(query_str, keyed=True, incl=incl) return resp.source_matches[SourceName.HGNC]
class QueryGetter: def __init__(self): self.query_handler = QueryHandler() def search(self, query_str, keyed=False, incl='', excl=''): return self.query_handler.search(query_str=query_str, keyed=keyed, incl=incl, excl=excl) def normalize(self, query_str): return self.query_handler.normalize(query_str)