connectome-neuprint / neuPrintExplorer

View connectomic data stored in neuPrint
Other
24 stars 4 forks source link

Neuron name search input #218

Open neomorphic opened 5 years ago

neomorphic commented 5 years ago

submitted for Steve -

We need to investigate the easiest way for someone searching for their name of interest. Typing in L1 and expecting to see L1.* might be the expected behavior. If that is the case, then we need to modify the input fields to handle that situation.

neomorphic commented 5 years ago

I would suggest asking a number of end users what they would expect to happen and build the interface based on that.

neomorphic commented 5 years ago

Steve has been in touch with VFB and they have provided a REST end point that we can use to look up synonyms, by replacing all instances of $SEARCH_TERM. This might be enough to allow us to find our names in the synonyms list and display those, when someone is looking for a synonym that we don't use directly.

https://solr.virtualflybrain.org/solr/ontology/select?fl=short_form,label,synonym,id,type,has_narrow_synonym_annotation,has_broad_synonym_annotation&start=0&fq=ontology_name:(vfb)&fq=shortform_autosuggest:VFB*%20OR%20shortform_autosuggest:FB*%20OR%20is_defining_ontology:true&rows=100&bq=is_obsolete:false%5E100.0%20shortform_autosuggest:VFB*%5E110.0%20shortform_autosuggest:FBbt*%5E100.0%20is_defining_ontology:true%5E100.0%20label_s:%22%22%5E2%20synonym_s:%22%22%20in_subset_annotation:BRAINNAME%5E3%20short_form:FBbt_00003982%5E2&q=$SEARCH_TERM$%20OR%20$SEARCH_TERM$*%20OR%20*$SEARCH_TERM$*&defType=edismax&qf=label%20synonym%20label_autosuggest_ws%20label_autosuggest_e%20label_autosuggest%20synonym_autosuggest_ws%20synonym_autosuggest_e%20synonym_autosuggest%20shortform_autosuggest%20has_narrow_synonym_annotation%20has_broad_synonym_annotation&wt=json&indent=true