From 2ddde04f4dd773d64705694e67f7cdcbe341637b Mon Sep 17 00:00:00 2001 From: christian Date: Thu, 8 Sep 2016 16:40:47 +0200 Subject: Fix genotype & QTL plot vertical scaling --- wqflask/wqflask/static/new/javascript/biodalliance.js | 2 +- wqflask/wqflask/templates/marker_regression_gn1.html | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wqflask/wqflask/static/new/javascript/biodalliance.js b/wqflask/wqflask/static/new/javascript/biodalliance.js index 3cfc26eb..3b9e3b7f 100644 --- a/wqflask/wqflask/static/new/javascript/biodalliance.js +++ b/wqflask/wqflask/static/new/javascript/biodalliance.js @@ -23,7 +23,7 @@ BD.createBrowser = function(chr, start, end, speciesName, sources) { sources: sources, - maxHeight: 1000, + maxHeight: 1400, setDocumentTitle: false, prefix: '/dalliance/', workerPrefix: 'build/', diff --git a/wqflask/wqflask/templates/marker_regression_gn1.html b/wqflask/wqflask/templates/marker_regression_gn1.html index a6c942dc..2bba1cc5 100644 --- a/wqflask/wqflask/templates/marker_regression_gn1.html +++ b/wqflask/wqflask/templates/marker_regression_gn1.html @@ -372,7 +372,8 @@ BD.putSource({name: 'Genotype', controlURI: "http://test-gn2.genenetwork.org/api_pre1/genotype/mouse/BXD.json", URIBase: "http://test-gn2.genenetwork.org/api_pre1/genotype/mouse/", - tier_type: 'rqtl-genotype', + tier_type: 'rqtl-genotype', + vOffset: 8, pinned: true, transposed: true, style: [ @@ -425,6 +426,7 @@ type: 'default', style: { glyph: "LINEPLOT", + AUTOMAX: "true", MIN: 0, MAX: 3, HEIGHT: 200, -- cgit v1.2.3 From 83774eb60deda8897c89cf29cf91065e02348115 Mon Sep 17 00:00:00 2001 From: christian Date: Fri, 16 Sep 2016 13:15:04 +0200 Subject: Refetch SNP density on zoom --- wqflask/wqflask/templates/marker_regression_gn1.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wqflask/wqflask/templates/marker_regression_gn1.html b/wqflask/wqflask/templates/marker_regression_gn1.html index 2bba1cc5..bb2024f1 100644 --- a/wqflask/wqflask/templates/marker_regression_gn1.html +++ b/wqflask/wqflask/templates/marker_regression_gn1.html @@ -438,12 +438,14 @@ BD.putSource({name: 'SNP density', jbURI: "http://test-gn2.genenetwork.org/api_pre1/snp", jbQuery: "", + refetchOnZoom: true, style: [{ type: 'default', style: { glyph: "HISTOGRAM", MIN: 0, MAX: 5000, + AUTOMAX: "true", HEIGHT: 60, STEPS: 100, COLOR1: "red", -- cgit v1.2.3