diff options
author | christian | 2016-08-04 16:55:36 +0200 |
---|---|---|
committer | christian | 2016-08-04 16:55:36 +0200 |
commit | c55bb30fd7cd54a5065074f19cd6ed64fa6d79f1 (patch) | |
tree | af0ce5298f04bdace8add179f33af21b70ac96a6 | |
parent | 32afb970e6ac87c4dc71b5b5fe698a2892d7b1d8 (diff) | |
download | genenetwork2-c55bb30fd7cd54a5065074f19cd6ed64fa6d79f1.tar.gz |
Add placeholder BD browser to marker_regressions
-rw-r--r-- | wqflask/wqflask/templates/marker_regression_gn1.html | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/wqflask/wqflask/templates/marker_regression_gn1.html b/wqflask/wqflask/templates/marker_regression_gn1.html index 2fb2a36d..8934aa62 100644 --- a/wqflask/wqflask/templates/marker_regression_gn1.html +++ b/wqflask/wqflask/templates/marker_regression_gn1.html @@ -280,10 +280,15 @@ <script language="javascript" type="text/javascript" src="/static/new/javascript/chr_lod_chart.js"></script> <script language="javascript" type="text/javascript" src="/static/new/javascript/lod_chart.js"></script> <script language="javascript" type="text/javascript" src="/static/new/javascript/create_lodchart.js"></script> + + <script language="javascript" type="text/javascript" src="/dalliance/dalliance-all.js"></script> + <script language="javascript" type="text/javascript" src="/static/new/javascript/biodalliance.js"></script> {% endif %} <script type="text/javascript" charset="utf-8"> $(document).ready( function () { + var bd_browser = null; + console.time("Creating table"); $('#qtl_results').dataTable( { "columns": [ @@ -324,16 +329,34 @@ $('#vector_map_tab').click(function(){ $('div#gn1_map_options').hide(); + /* $('#bd_container').hide();*/ }); - + /* */ $('#gn1_map_tab').click(function(){ - $('div#gn1_map_options').show(); + $('#gn1_map_options').show(); + /* $('div#bd_container').hide();*/ }); $('#open_bd').click(function() { + if (!bd_browser) { + bd_browser = createBDBrowser('11', 0, 40000000, +[{name: 'Genome', + twoBitURI: 'http://www.biodalliance.org/datasets/GRCm38/mm10.2bit', + desc: 'Mouse reference genome build GRCm38', + tier_type: 'sequence', + provides_entrypoints: true}, + {name: 'QTL', + tier_type: 'qtl', + uri: 'http://gsocbox:8880/static/qtl/lod_bak.csv', + stylesheet_uri: "http://gsocbox:8880/stylesheets/qtl-stylesheet.xml", + }] + ); + } + $('#topchart').hide(); + $('#bd_container').show(); + console.log("clicked #open_bd"); console.log($('#topchart').contents()); - }) - + }); }); chrView = function(this_chr, chr_mb_list) { @@ -370,4 +393,3 @@ </script> {% endblock %} - |