Maj terminée. Pour consulter la release notes associée voici le lien :
https://about.gitlab.com/releases/2021/07/07/critical-security-release-gitlab-14-0-4-released/

Commit f452a859 authored by Marc Duez's avatar Marc Duez
Browse files

model.js : compute_gene_list function , return a list of gene from germline and data

//todo : use this list instead of germline
parent 3867ffac
......@@ -499,7 +499,42 @@ Model.prototype = {
return this;
}, //end loadGermline
/*
* gene : kind of gene V/D/J
* system : system wanted IGH/TRG/TRB/...
* */
compute_gene_list: function(gene, system){
var list = {}
//si le germline complet est inférieur a 20 genes on le charge entierement
if ( typeof germline[system+gene] != "undefined" && Object.keys(germline[system+gene]).length < 20){
for (var key in germline[system+gene]){
list[key] = 0
}
}
if (this.system == "multi"){
for ( var i=0; i<this.windows.length; i++){
if (this.windows[i].system == system) {
if (this.windows[i][gene] && this.windows[i][gene][0]){
list[this.windows[i][gene][0]]=0
}
}
}
}else{
for (var i=0; i<this.windows.length; i++){
if (this.windows[i][gene] && this.windows[i][gene][0]){
list[this.windows[i][gene][0]]=0
}
}
}
var result = Object.keys(list)
mySortedArray(result);
return result
},
/* load the selected analysis file in the model
* @analysis : id of the form (html element) linking to the analysis file
* */
......
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