OmicsDI / ddi-web-app

Data Discovery Index Web Application
Apache License 2.0
11 stars 13 forks source link

Advance Search First Test #142

Open ypriverol opened 7 years ago

ypriverol commented 7 years ago

Hi @baimingze firt of all thanks a lot for this work. The tool work perfectly fine and it will help our users a lot to find and search for data. Some minor comments before it integration in the release branch:

Figure 1

screen shot 2016-12-12 at 14 52 23

Figure 2

screen shot 2016-12-12 at 15 03 52

Figure 3

screen shot 2016-12-12 at 15 09 28
baimingze commented 7 years ago

hi @ypriverol , could you give more details about chrome not working isssue? Like see what the console told by pressing F12.

ypriverol commented 7 years ago

http://www.ebi.ac.uk/ebisearch/ws/rest/{domain}/xref http://www.ebi.ac.uk/Tools/webservices/services/eb-eye_rest#cross-reference_search

baimingze commented 7 years ago

11111111111111111

I guess we already can search by uniprot ID?

ypriverol commented 7 years ago

http://www.omicsdi.org/search?q=UNIPROT:(P04637)%20AND%20UNIPROT:(P01106)%20AND%20TAXONOMY:%229606%22

We should be able to filter by the cross-reference database and the Key. For example UNIPROT and then the accession. like the query

mindcrusher11 commented 7 years ago

Instead of condition we can have fields like in ncbi

image

image

ypriverol commented 7 years ago

Some other tips we should take into account:

baimingze commented 7 years ago

feedbacks from Henning:

ypriverol commented 7 years ago

@mingze: If I understand properly, we can do some priorities and continue release in steps, Priority:

We can than continue with the more complex things:

baimingze commented 7 years ago

@ypriverol Agree

baimingze commented 7 years ago

@ypriverol I can get the Cross Reference Fields from here: http://www.ebi.ac.uk/ebisearch/ws/rest/omics , which is inspired from your info, but not from "http://www.ebi.ac.uk/ebisearch/ws/rest/omics/xref", which provides nothing.

I still can not find a way to list all the Uniprot IDs for user to select, do you have some ideas about this? And I also wondering, the list should be a huge list with only ids, it may not a good idea to list them. How do you think?

ypriverol commented 7 years ago

First if I don't understand wrong you can get the cross-reference from http://www.ebi.ac.uk/ebisearch/ws/rest/omics then get it from there?

The second question, when you type P04637 in the general search is found by the auto-complete. Then (inprinciple) it must be possible to restrict the autocomplete to only the Uniprot field and get the list of proteins with auto complete?.

baimingze commented 7 years ago
                var xref_fields = [
                    {name: 'UNIPROT', label:'UNIPROT'},
                    {name: 'PUBMED', label:'PUBMED'},
                    {name: 'ENSEMBL', label:'ENSEMBL'},
                    {name: 'WORMGENE', label:'WORMGENE'},
                    {name: 'PUBCHEM', label:'PUBCHEM'},
                    {name: 'CHEBI', label:'CHEBI'},
                    {name: 'HMDB', label:'HMDB'},
                    {name: 'KEGG', label:'KEGG'},
                    {name: 'NCBI', label:'NCBI'},
                    {name: 'PASS', label:'PASS'},
                    {name: 'SGD', label:'SGD'}
                ]

I collected them from http://www.ebi.ac.uk/ebisearch/ws/rest/omics , with the

<option name="type">XREF</option>

from

<fieldInfo id="PUBMED" name="PUBMED">
<options>
<option name="searchable">true</option>
<option name="retrievable">true</option>
<option name="sortable">false</option>
<option name="facet">false</option>
<option name="referenced domain">medline</option>
<option name="referenced field">id</option>
<option name="type">XREF</option>
<option name="topterms">false</option>
</options>
</fieldInfo>