Commit 82af23e8 authored by Aurélien Béliard's avatar Aurélien Béliard Committed by Mathieu Giraud

use germline.js instead of germline.g in the browser

parent e97c27b7
Pipeline #2192 failed with stages
in 11 seconds
......@@ -70,7 +70,7 @@ GermlineList.prototype = {
* */
fallbackLoad : function () {
try {
this.list = germline_data['systems']
this.list = germline
}
catch(err){
console.log({"type": "popup", "msg": "Incorrect browser installation, 'js/germline.js' is not found<br />please run 'make' in 'germline/'"});
......@@ -155,24 +155,17 @@ Germline.prototype = {
if (type=="D") type2="4"
if (type=="J") type2="3"
if (typeof this.m.germlineList.list[system] != 'undefined'
&& typeof this.m.germlineList.list[system]['recombinations'] != 'undefined'){
if (typeof this.m.germlineList.list[system]['recombinations'][type2] != 'undefined' ){
for (var i=0; i<this.m.germlineList.list[system]['recombinations'][type2].length; i++){
var filename = this.m.germlineList.list[system]['recombinations'][type2][i]
filename = filename.split('/')[filename.split('/').length-1] //remove path
filename = filename.split('.')[0] //remove file extension
if (typeof germline[filename] != 'undefined'){
for (var key in germline[filename]){
this.allele[key] = germline[filename][key]
}
}else{
console.log({"type": "flash", "msg": "warning : this browser version doesn't have the "+filename+" germline file", "priority": 2});
}
}
this.allele[system+type]={}
for (key in m.germline[system+type]) {
this.allele[key]={}
this.allele[key]["seq"]=m.germline[system+type][key];
}
}
//reduce germline size (keep only detected genes)
//and add undetected genes (missing from germline)
......
......@@ -110,6 +110,7 @@ Model.prototype = {
this.tagSelectorList = document.createElement("ul")
this.tagSelector.appendChild(this.tagSelectorList);
this.germline =germline;
document.body.appendChild(this.tagSelector);
$('.tagSelector').hover(function() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment