Commit 8512d50f authored by Mathieu Giraud's avatar Mathieu Giraud

js/germline_axis.js: remove useless duplicated code

converter() could be rather clone.getGene()
See #2641.
parent 40a3acfc
......@@ -56,10 +56,6 @@ GermlineAxis.prototype = Object.create(GenericAxis.prototype);
var allele_list = this.germline.allele
var total_gene = Object.keys(gene_list).length
if (geneType=="V") this.type2="5"
if (geneType=="D") this.type2="4"
if (geneType=="J") this.type2="3"
var pos;
//labels
for (var key in gene_list){
......@@ -110,26 +106,6 @@ GermlineAxis.prototype = Object.create(GenericAxis.prototype);
var pos = this.applyConverter(clone);
return this.label_mapping[pos];
}
GermlineAxis.prototype.converter = function(clone) {
var gene_list = this.gene_list;
var allele_list = this.allele_list;
var total_gene = this.total_gene;
var value;
if (clone.hasSeg(this.type2)) {
var name = clone.seg[this.type2].name;
if (typeof name != 'undefined' &&
typeof gene_list[name.split("*")[0]] != "undefined")
{
if (this.displayAllele){
value = name;
}else {
value = name.split("*")[0];
}
}
}
return value;
}
/**
* build a label descriptor
......
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