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

Using &loc= parameter can open two instances of the same track #567

Closed
cmdcolin opened this Issue Feb 27, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@cmdcolin
Contributor

cmdcolin commented Feb 27, 2015

Open this link in two tabs
http://jbrowse.org/code/JBrowse-1.11.6/?data=sample_data/json/volvox&loc=EDEN

The first time you open it, it will show the track "Protein-coding genes" centered on EDEN
The second time you open it, it will show the same track duplicated and it also has bad formatting

screenshot-jbrowse org 2015-02-27 15-22-02

Interestingly this problem doesn't affect most HTMLFeatures tracks in the volvox sample but I first observed this problem in a recent version of WebApollo that uses HTMLFeatures tracks

This problem also affects lots of other JBrowse versions including back to the 1.10 branch but I haven't evaluated the entire scope

Another version example http://jbrowse.org/code/JBrowse-1.11.0/?data=sample_data/json/volvox&loc=EDEN

@fossilfriend

This comment has been minimized.

fossilfriend commented May 11, 2016

I'm having the same problem on my site; it occurs when the value for the loc parameter specifies a named feature such as a gene or SNP (as opposed to just a physical location, e.g., chr1:10..20) and the track used to generate the name is also specified as a default track or using the tracks parameter in the URL. JBrowse v 1.12.0

@cmdcolin

This comment has been minimized.

Contributor

cmdcolin commented May 11, 2016

@fossilfriend interesting, that is actually a good clue for why it happens (e.g. when a feature is located in the name store, it automatically opens the track that the feature was on, so if that track was already open, then it gets opened twice)

cmdcolin added a commit that referenced this issue Jul 5, 2016

cmdcolin added a commit that referenced this issue Jul 6, 2016

Revert "Add fix for #567"
This reverts commit 6f3c295.

cmdcolin added a commit that referenced this issue Jul 6, 2016

@rbuels rbuels added this to the 1.12.4 milestone Jan 25, 2018

cmdcolin added a commit that referenced this issue Jan 25, 2018

@rbuels rbuels modified the milestones: 1.12.4, 1.12.5 Feb 2, 2018

@rbuels rbuels modified the milestones: 1.12.5, 1.12.4 Feb 12, 2018

@rbuels rbuels closed this in c3ac64c Feb 13, 2018

rbuels added a commit that referenced this issue Feb 13, 2018

Merge pull request #781 from GMOD/fix_567
Add fix for bug that allows two instances of track to appear at startup, fixes #567
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment