Commit 6e6a47ec authored by Mathieu Giraud's avatar Mathieu Giraud

js/segmenter.js: 'unexpected' clone on two different loci, give at least the...

js/segmenter.js: 'unexpected' clone on two different loci, give at least the first one to igBlast/IMGT

See #3513.
parent ee22fe59
...@@ -826,11 +826,9 @@ Segment.prototype = { ...@@ -826,11 +826,9 @@ Segment.prototype = {
if (system == "unexpected"){ if (system == "unexpected"){
var loci = [c.getGene("5").substring(0,3), c.getGene("3").substring(0,3) ] var loci = [c.getGene("5").substring(0,3), c.getGene("3").substring(0,3) ]
if (loci[0] == loci[1]){ system = loci[0]
system = loci[0] if (loci[0] != loci[1]){
} else { console.log("Clone " + c.getName() + "recombines sequences from two separate loci. Using: " + system)
console.log( "This clone have 2 locus for gene 5 and 3. Sytem still unexpected")
console.log( loci )
} }
} }
max=c.getSize() max=c.getSize()
......
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