Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a "search" view #20

Closed
holtgrewe opened this issue Aug 31, 2023 · 0 comments · Fixed by #37
Closed

Create a "search" view #20

holtgrewe opened this issue Aug 31, 2023 · 0 comments · Fixed by #37
Assignees
Labels
enhancement New feature or request

Comments

@holtgrewe
Copy link
Member

Is your feature request related to a problem? Please describe.
Currently, the search bar automatically redirects to the right gene/variant view. However, what if the query like BRCA yields an approximate match only? It would be better to go through a search view that can do the disambiguation.

Describe the solution you'd like
Entering a search term should redirect the user to a search (result) view. This view should do the following:

  • If there is a direct/single match to gene symbol, HGNC, ENSEMBL, Entrez/NCBI gene ID then directly go to the gene view. Resolution can be done via /annonars/genes/search?q=$QUERY&fields=hgnc_id,ensembl_gene_id,ncbi_gene_id,symbol endpoint.
  • If there is a direct match to CHROM:POS:REF:ALT or RELEASE:CHROM:POS:REF:ALT then directly go to the variant detail view.
  • Otherwise, display the multiple matches from above /annonars/genes/search query and allow the users to go to the gene search directly.
  • If there is no match display this and give users examples of good queries.

Describe alternatives you've considered
N/A

Additional context
N/A

@holtgrewe holtgrewe added the enhancement New feature or request label Aug 31, 2023
@gromdimon gromdimon linked a pull request Sep 4, 2023 that will close this issue
3 tasks
@gromdimon gromdimon self-assigned this Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants