aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/marker_regression_gn1.html32
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 %}
-