Skip to content

Updating search box and region view logic #43

Open
@amkwong

Description

@amkwong

The updates from #42 forces the region view to always have chrom, start, end, tissue, and gene_id, to help preserve and recreate the state of the current view. This leads to a few issues which need to be addressed:

  • Some of the logic for handling missing data for the region_view() in pheget/frontend/init.py are now obsolete and need to be removed

  • We need to update the logic for the search box to smartly handle the following searches:

  1. Single-tissue+chromosome: (need to fill in: best gene -> start and end)
  2. Single-gene (gene_id or symbol): (need to fill in: chrom, best tissue, start and end from the gene)
  3. chrom+start+end: (need to fill in: best tissue, best gene -> start and end)
  • We need to update the searchbox to use the Fetch API to request data from omnisearch instead of the complicated mess it currently uses

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions