def get_valid_markers_by_symbol(self, symbol): """ Retrieve list of valid markers by symbol """ search_query = SearchQuery() search_query.set_param('symbol', symbol) # restrict to official and withdrawn search_query.set_param('_marker_status_keys', [1,2]) # only search mouse search_query.set_param('_organism_keys', [1]) search_results = self.marker_dao.search(search_query) markers = search_results.items batchLoadAttribute(markers, 'current_markers') batchLoadAttribute(markers, 'featuretype_vocterms') ValidMarkerSortHelper().sort(markers) # convert db models to domain objects search_results.items = convert_models(markers, SmallMarker) return search_results
def _get_emapa_term_results_count(self, term_id): search_query = SearchQuery() search_query.set_param("direct_structure_id", term_id) count = self.gxdresult_dao.get_search_count(search_query) return count