ebi-gene-expression-group / atlas-web-single-cell

Single Cell Expression Atlas web application
Apache License 2.0
5 stars 5 forks source link

Filter species metadata cell type wheel search on ogranism field #439

Closed lingyun1010 closed 2 months ago

lingyun1010 commented 3 months ago

In the metadata search result page, if the search term is a species, such as Homo sapiens or Mus musculus, some entry in the json response is from other species. Given some results in Solr, for example, Homo sapiens,

(ontology_annotation_ancestors_labels_t:Homo sapiens OR ontology_annotation_parent_labels_t:Homo sapiens OR ontology_annotation_part_of_rel_labels_t:Homo sapiens OR ontology_annotation_synonyms_t:Homo sapiens OR ontology_annotation_label_t:Homo sapiens) AND experiment_accession:E-GEOD-156455

Image

there is an entry contains Homo sapiens in one of the ontology labels, but from Drosophila melanogaster.

To prevent this error happens, we need to filter the search results on ctw_organism if it is a species search. i.e. ctw_organism==species_search_term.