cutevariant icon indicating copy to clipboard operation
cutevariant copied to clipboard

[quick search] Improve quick search

Open antonylebechec opened this issue 2 years ago • 7 comments

Proposition to improve quick search:

  • [ ] Quick search bar error in focus (need to unfocus main window to focus on quick search bar)
  • [ ] Apply quick filter to the current selection of variants
  • [ ] Configure (in config.yml) "gene" field (default "ann.gene")
  • [x] Allow position define for 1 position (pattern "CHR:POS")
  • [ ] Configure (in config.yml) multiple fields to search into (not only "gene", but also "transcript", "clinvar"...)
  • [ ] Allow applying quick search to existing filter (add to filters with AND operator). By default, with a checkbox to apply to all (source)
  • [ ] Allow multiple search with pattern
    • like NCBI query language
      • Example in NCBI: Human[Organism] AND BRCA*[Gene Name]
      • Example in CuteVariant: BRCA[ann.gene] AND NM_007294[ann.transcript]
    • in VQL
      • Example: ann.gene LIKE '%BRCA%' AND ann.transcript LIKE '%NM_007294%'

antonylebechec avatar Apr 11 '22 18:04 antonylebechec

Some fix and new features in "branch fix_gene_view":

  • quick search added to existing filters
  • quick search "removed" from existing filters (if not changed)
  • search on one position (pattern "CHR:POS")
  • search on annotations (ann.*)
  • search on all other fields
  • including operators (=|>|>=|<|<=|!=|=~|!~|IN|!IN|HAS|!HAS)
  • detecting IN operator with a list of values with comma ","
  • auto detection of pattern (symbol=*RAS -> symbol =~ RAS) to be user friendly

quicksearch quicksearch2 quicksearch3 quicksearch4

antonylebechec avatar Apr 11 '22 22:04 antonylebechec

  • Create different pattern : -- Gene Name -- Chr3:pos-end -- VQL

dridk avatar Apr 21 '22 15:04 dridk

  • Create different pattern : -- Gene Name -- Chr3:pos-end -- VQL

dridk avatar Apr 21 '22 15:04 dridk

from the new branch #375 , @SteampunkIslande disable existing filter extension . Because, searching two gene name will generate a filter like "gene='CFTR' AND gene='GJB2'". I suggest to extend existing filter with quick filter only for VQL statement.

dridk avatar Apr 24 '22 21:04 dridk

You're right. VQL is the answer to select multiple genes, such as "ann.gene IN KRAS,NRAS"

antonylebechec avatar Apr 24 '22 21:04 antonylebechec

je clos l'issue pour la release.. On rouvrira pour améliorer

dridk avatar Apr 24 '22 22:04 dridk

On ne peut pas la clore tant que :

  • la requête VQL construite (par quick search) n'est pas ajoutée aux "filters" existants
  • le quick search à "vide" n'enlève pas la requête VQL construite (par quick search)

On peut le faire ne mémorisant la requête construite, puis l'enlever soit

  1. quand le requête quick search est "vide",
  2. quand une autre requête est demandée

antonylebechec avatar Apr 24 '22 23:04 antonylebechec