aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchristian2016-08-04 16:54:54 +0200
committerchristian2016-08-04 16:54:54 +0200
commit32afb970e6ac87c4dc71b5b5fe698a2892d7b1d8 (patch)
tree89eb4a67f12e24e950096944423841f0a402810f
parentb8e9edd94fcd1f2630915b888993ee39e8f4e53b (diff)
downloadgenenetwork2-32afb970e6ac87c4dc71b5b5fe698a2892d7b1d8.tar.gz
Add function for creating a basic BD browser
-rw-r--r--wqflask/wqflask/static/new/javascript/biodalliance.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/wqflask/wqflask/static/new/javascript/biodalliance.js b/wqflask/wqflask/static/new/javascript/biodalliance.js
new file mode 100644
index 00000000..6b082fbb
--- /dev/null
+++ b/wqflask/wqflask/static/new/javascript/biodalliance.js
@@ -0,0 +1,24 @@
+"use strict";
+
+var createBDBrowser = function(chr, start, end, sources) {
+ console.log("creating BD browser");
+ var b = new Browser({
+ chr: chr,
+ viewStart: start,
+ viewEnd: end,
+
+ coordSystem: {
+ speciesName: 'Mouse'
+ },
+
+ sources: sources,
+
+ setDocumentTitle: false,
+ prefix: '/dalliance/',
+ noPersist: true,
+ pageName: 'bd_container'
+ });
+
+ console.log("created BD browser");
+ return b;
+};