wurmlab / sequenceserver

Intuitive graphical web interface for running BLAST bioinformatics tool (i.e. have your own custom NCBI BLAST site!)
https://sequenceserver.com
GNU Affero General Public License v3.0
271 stars 113 forks source link

Alignment overview improvement. #302

Open yeban opened 8 years ago

yeban commented 8 years ago

This largely takes place within https://github.com/wurmlab/sequenceserver/blob/master/public/js/hits_overview.js

yannickwurm commented 2 years ago

Regarding overlapping HSPs, a minimal example is:

You should see that that top (and only) hit has 3 overlapping HSP.

Screenshot 2021-11-26 at 14 11 12 s

yannickwurm commented 2 years ago

If I search with:

>NP_059488.2modified cytochrome P450 3A4 isoform 1 [Homo sapiens] - modified
SKETESHKALSDLELVAQSIIFIFAGYETTSSVLSFIMYELATHPDVQQKLQEEIDAVLPNKAPPTYDTV
LQMEYLDMVVNETLRLFPIAMRLERVCKKDVEINGMFIPKGVVVMIPSYALHRDPKYWTEPEKFLPERFS
KKNKDNIDPYIYTPFGSGPRNCIGMRFALMNMKLALIRVLQNFSFKPCKETQIPLKLSLGGLLQPEKPVV
LKVESRDGTVSGASDFKLSDJFSDLKJxCLVKJBcLVKFGLKERJtlrekjtrelkjfgklJGdFOIUDGFKLJGFdFLGLFDKGJDFLGKJDFLKGJSDNbLKJROtidfkl
MALIPDLAMETWLLLAVSLVLLYLYGTHSHGLFKKLGIPGPTPLPFLGNILSYHKGFCMFDMECHKKYGK
VWGFYDGQQPVLAITDPDMIKTVLVKECYSVFTNRRPFGPVGFMKSAISIAEDEEWKRLRSLLSPTFTSG
KLKEMVPIIAQYGDVLVRNLRREAETGKPVTLKDVFGAYSMDVITSTSFGVNIDSLNNPQDPFVENTKKL
LRFDFLDPFFLSITVFPFLIPILEVLNICVFPREVTNFLRKSVKRMKESRLEDTQKHRVDFLQLMIDSQN

against the database 2020-11 Swiss-Prot insecta, then some of the HSPs at the right aren't appropriately shown. (i.e. they are white/invisible although they shouldn't be).

Screenshot 2021-11-26 at 15 28 23

yannickwurm commented 2 years ago

Note: I don't think next highest HSP should be on the next line (i.e. we should not increase y). Because one line per hit is a very established concept.

Instead, there should be a white border at the edge of the HSP, so that the user knows something funny is going on (1pt vertical). Perhaps this requires separating the drawing of the fill colour and the border colour. And on hover, the HSP we are hovering on should move to the top.