Une MAJ de sécurité est nécessaire sur notre version actuelle. Elle sera effectuée lundi 02/08 entre 12h30 et 13h. L'interruption de service devrait durer quelques minutes (probablement moins de 5 minutes).

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

germline_builder.js : use clone object

parent 64e496c7
......@@ -50,12 +50,12 @@ Germline.prototype = {
//reduce germline size (keep only detected genes)
//and add undetected genes
var g = {}
for (var i=0; i<this.m.windows.length; i++){
if (typeof this.m.windows[i][type] != "undefined"
&& typeof this.m.windows[i][type][0] != "undefined"){
var gene=this.m.windows[i][type][0];
if (this.m.system != "multi" || this.m.windows[i].system == system){
if ( typeof this.allele[gene] !="undefined"){
for (var i=0; i<this.m.n_windows; i++){
if (typeof this.m.clone(i)[type] != "undefined"
&& typeof this.m.clone(i)[type][0] != "undefined"){
var gene=this.m.clone(i)[type][0];
if (this.m.system != "multi" || this.m.clone(i).getSystem() == system){
if ( typeof this.allele[gene] != "undefined"){
g[gene] = this.allele[gene]
}else{
g[gene] = "unknow sequence"
......
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