-
Notifications
You must be signed in to change notification settings - Fork 4
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
Genes disappear from LD plot at certain plot widths #160
Comments
Ugh. I've been watching what's going on and I think I've got an idea. When the plot_width changes, it needs to reload the data. I think this is block of code causing the problem:
|
@jstewart-ebi that's right! If either the What I find interesting though is that the initial loading of the page works... It only fails when the page is reloaded. Strange. We rather need something like this (you can easily try if it works): self.data.left < entry.end && entry.start < self.data.right; But I'm quite sure the guy will fix it in no time. |
There may be another bug with the way the data is loaded. In that same block of code, if there's no preloadedData, it queries the /overlap/region endpoint, but uses data.left and data.right, not data.maxLeft and data.maxRight, so the preloaded data will only be a 200kb region, not a 500kb one. |
Well that's interesting. Do they have the repo on github somewhere? |
I'm not sure. There is an Ensembl repo for widgets https://github.com/Ensembl/public-plugins, but I can't find the LDPlot.full.js file in the Ensembl repo. |
Hello @jstewart-ebi & @daniwelter, thank you reporting this issue and investigating this further. self.data.left < entry.end && entry.start < self.data.right;
The way it works is that it first loads the data for the initial value selected in the I hope that makes sense. Please let us know if you come across any other issues. Kind regards, |
Fixed by Ensembl. |
@ljwh2 commented on Mon Mar 02 2020
Daniel reported a bug with the LD plot. Genes that are visible in the 50kbp window disappear in the 25 and sometimes 200kbp window (genes displayed in track "Ensembl genes", below the plot; plot width changed using the drop-down on top right of the plot). I replicated the behaviour with a couple of other variants. As Daniel observes, it seems to occur when the gene is larger than the initial plot width:
https://www.ebi.ac.uk/gwas/variants/rs6466479
https://www.ebi.ac.uk/gwas/variants/rs45446698
but not
https://www.ebi.ac.uk/gwas/variants/rs7412
This is misleading for users and needs fixing so the genes are visible at all window sizes.
Original GWAS-info email:
I wanted to show off with the LD plot and I have bumped into a bug. Check out this variant: https://www.ebi.ac.uk/gwas/variants/rs35407685
This variant is an intron variant (https://www.ensembl.org/Homo_sapiens/Variation/Mappings?db=core;r=7:140785945-140786947;v=rs35407685;vdb=variation;vf=20866875) overlapping with BRAF. When the LD plot is loaded the BRAF gene on the reverse strand is correctly displayed (50kb window by default). However it disappears when the window size is decreased to 25kb, and when you try to change back to 50kb it still not shown, only when the largest 500kbp window is selected.
I think when the plot is updated only those genes are shown, whose start and end coordinates are both included within the window. So I suspect the fix could not be too complicated.
Please take a look and verify if this indeed not the expected behavior.
The text was updated successfully, but these errors were encountered: