Commit 44b9fd01 authored by Mathieu Giraud's avatar Mathieu Giraud

js/segmenter.js: adds 1 to 5end and 4end

The current values in the .vidjil files are based on 0, and not on 1 as they should be.
This is a temporary hack, we will investigate how to both correct
the .vidjil output and stay compatible with old files.
parent e54aa83a
......@@ -1171,12 +1171,12 @@ Sequence.prototype = {
var vdjArray ={} ;
vdjArray["5start"] = 0;
vdjArray["5end"] = this.pos[clone.seg["5end"]];
vdjArray["5end"] = this.pos[clone.seg["5end"]] + 1;
vdjArray["3start"] = this.pos[clone.seg["3start"]];
vdjArray["3end"] = this.seq.length;
if (typeof clone.seg["4start"] != 'undefined' && typeof clone.seg["4end"] != 'undefined') {
vdjArray["4start"] = this.pos[clone.seg["4start"]];
vdjArray["4end"] = this.pos[clone.seg["4end"]]
vdjArray["4end"] = this.pos[clone.seg["4end"]] + 1
}
return vdjArray;
},
......
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