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

"conflict" between url parameters 'loc' and 'tracklist' #4249

Closed
scottcain opened this issue Feb 28, 2024 · 1 comment · Fixed by #4250
Closed

"conflict" between url parameters 'loc' and 'tracklist' #4249

scottcain opened this issue Feb 28, 2024 · 1 comment · Fixed by #4250
Labels
bug Something isn't working

Comments

@scottcain
Copy link
Member

Describe the bug
This might be a little tricky to explain in abstract: basically, when I construct a url that has 'loc' and 'tracklist' parameters, I expect that the range that is actually shown when the page is drawn with the tracklist open is what is in 'loc'. I don't think that's the case. For example, here is a link that should show human BRCA1 with the tracklist open:
https://stage.alliancegenome.org/jbrowse2/?tracklist=true&loc=17%3A43044295..43170327&assembly=Homo_sapiens&tracks=Homo_sapiens_all_genes%2CHomo_sapiens_ht_variants
where the start and end coordinates correspond to the start and end of BRCA1. When I click on that link, JBrowse opens that location and then opens the tracklist, obscuring part of BRCA1 (at least, I'm reasonably sure that's what's going on).

To Reproduce

click on the link above. To demonstrate that part of the BRCA1 gene is "hidden behind" the tracklist, close the tracklist (and notice that the zoom and coordinates don't change) and mouseover the gene to see that the highlight extends all the way to the right edge of the display (ie, where the tracklist used to be).

Expected behavior

If a url GET parameter requests that the tracklist be open, the coordinates in the loc parameter should be applied after the tracklist is open so that the entire requested range is visible when the url is opened.

Version:
2.10.2

@cmdcolin
Copy link
Collaborator

can try branch in PR here to test a proposed fix #4250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants