Closed paul-shannon closed 8 years ago
@paul-shannon could you refresh our memory a little on what you are trying to accomplish, and what is happening in jupyter to lead you to believe it is failing? IIRC you are basically trying to turn double-click zoom off.
Hi Jim,
Yes, you are exactly right: I want to turn off double-click zoom in igv.js-jupyter.
What I see now is that, no matter what value very small or zero value I assign to doubleClickDelay, the double-click zoom still happens.
On Sep 9, 2016, at 8:18 PM, Jim Robinson notifications@github.com wrote:
@paul-shannon could you refresh our memory a little on what you are trying to accomplish, and what is happening in jupyter to lead you to believe it is failing? IIRC you are basically trying to turn double-click zoom off.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
I am looking at this now.
I deployed a new test version to PyPi Test that should fix the double-click issue.
Hi Douglass,
Thanks very much for fixing the double-click issue. I am new to PyPi - will the fix perhaps be available from github also, maybe on a dev branch?
Thanks,
On Sep 17, 2016, at 8:10 AM, Douglass Turner notifications@github.com wrote:
I deployed a new test version to PyPi Test that should fix the double-click issue.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Paul, yes. Just clone master or download as a zip file.
just cloned master, pip installed, installed and enabled the extension. Will be happy to discover that the error is mine, but I still cannot disable the double-click-zoom. Here is my simple test, after which double-click on the canvas triggers a zoom:
igv = IGV(locus="chr1:1-200", reference=Reference(id="hg19"),
tracks=[Track(
name="Genes",
doubleClickDelay=1,
url="//s3.amazonaws.com/igv.broadinstitute.org/annotations/hg19/genes/gencode.v18.collapsed.bed",
index_url="//s3.amazonaws.com/igv.broadinstitute.org/annotations/hg19/genes/gencode.v18.collapsed.bed.idx",
display_mode="EXPANDED")])
I believe the below code should work.
igv = IGV(locus="chr1:1-200", reference=Reference(id="hg19"), double_click_delay=1,
tracks=[Track(
name="Genes",
url="//s3.amazonaws.com/igv.broadinstitute.org/annotations/hg19/genes/gencode.v18.collapsed.bed",
index_url="//s3.amazonaws.com/igv.broadinstitute.org/annotations/hg19/genes/gencode.v18.collapsed.bed.idx",
display_mode="EXPANDED")])
After substituting your code in the notebook: alas, still no.
I appear to be using the correct version of the extension:
[D 11:28:24.003 NotebookApp] 200 GET /nbextensions/igv/igvjs/igv-1.0.1.min.js?v=20160930112807 (::1) 5.06ms
Anything else I can try?
Thanks!
On Sep 30, 2016, at 11:22 AM, Thorin Tabor notifications@github.com wrote:
I believe the below code should work (note the change on line 4).
igv = IGV(locus="chr1:1-200", reference=Reference(id="hg19" ),
tracks= [Track(
name="Genes" ,
double_click_delay=1 ,
url="//s3.amazonaws.com/igv.broadinstitute.org/annotations/hg19/genes/gencode.v18.collapsed.bed" ,
index_url="//s3.amazonaws.com/igv.broadinstitute.org/annotations/hg19/genes/gencode.v18.collapsed.bed.idx" ,
display_mode="EXPANDED")]) — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
I apologize. There was a typo in my code before. I've since fixed it. Namely, double_click_delay is a parameter on the IGV object, rather than the Track object.
The fix works perfectly. Thank you!
This solution used to (probably still does) work in igv.js. My tests and experiments lead me to believe it does not work for the notebook widget.
The first few lines of my call to the constructor: