Commit 7e8c5549 authored by BibloLeHibou's avatar BibloLeHibou
Browse files

export: add space between segments parts (link to #2627)

parent 4f7fb7a7
Pipeline #7009 passed with stages
in 2 minutes and 27 seconds
...@@ -720,15 +720,20 @@ Report.prototype = { ...@@ -720,15 +720,20 @@ Report.prototype = {
var seqJ = seq.substring(seg['3'].start) var seqJ = seq.substring(seg['3'].start)
$('<span/>', {'class': 'v_gene', 'text': seqV}).appendTo(sequence); $('<span/>', {'class': 'v_gene', 'text': seqV}).appendTo(sequence);
$('<span/>', {'text': " "}).appendTo(sequence);
if (this.m.clone(cloneID).getGene("4") != "undefined D"){ if (this.m.clone(cloneID).getGene("4") != "undefined D"){
var seqN1 = seq.substring(seg['5'].stop + 1, seg['4'].start) var seqN1 = seq.substring(seg['5'].stop + 1, seg['4'].start)
var seqD = seq.substring(seg['4'].start , seg['4'].stop + 1) var seqD = seq.substring(seg['4'].start , seg['4'].stop + 1)
var seqN2 = seq.substring(seg['4'].stop + 1, seg['3'].start) var seqN2 = seq.substring(seg['4'].stop + 1, seg['3'].start)
$('<span/>', {'class': 'n_gene', 'text': seqN1}).appendTo(sequence); $('<span/>', {'class': 'n_gene', 'text': seqN1}).appendTo(sequence);
$('<span/>', {'text': " "}).appendTo(sequence);
$('<span/>', {'class': 'd_gene', 'text': seqD}).appendTo(sequence); $('<span/>', {'class': 'd_gene', 'text': seqD}).appendTo(sequence);
$('<span/>', {'text': " "}).appendTo(sequence);
$('<span/>', {'class': 'n_gene', 'text': seqN2}).appendTo(sequence); $('<span/>', {'class': 'n_gene', 'text': seqN2}).appendTo(sequence);
}else{ $('<span/>', {'text': " "}).appendTo(sequence);
} else {
$('<span/>', {'class': 'n_gene', 'text': seqN}).appendTo(sequence); $('<span/>', {'class': 'n_gene', 'text': seqN}).appendTo(sequence);
$('<span/>', {'text': " "}).appendTo(sequence);
} }
$('<span/>', {'class': 'j_gene', 'text': seqJ}).appendTo(sequence); $('<span/>', {'class': 'j_gene', 'text': seqJ}).appendTo(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