Commit ad1db0d2 authored by flothoni's avatar flothoni Committed by Mathieu Giraud

segmenter.js; just change the indentation for lisibility

parent 18901581
...@@ -814,23 +814,25 @@ Segment.prototype = { ...@@ -814,23 +814,25 @@ Segment.prototype = {
for (var i = 0; i < list.length; i++) { for (var i = 0; i < list.length; i++) {
if (this.isClone(list[i])) { if (this.isClone(list[i])) {
var c = this.m.clone(list[i]) var c = this.m.clone(list[i])
if (typeof (c.getSequence()) !== 0){ if (typeof (c.getSequence()) !== 0){
request += ">" + c.index + "#" + c.getName() + "\n" + c.getSequence() + "\n"; request += ">" + c.index + "#" + c.getName() + "\n" + c.getSequence() + "\n";
}else{ } else {
request += ">" + c.index + "#" + c.getName() + "\n" + c.id + "\n"; request += ">" + c.index + "#" + c.getName() + "\n" + c.id + "\n";
}
if (c.getSize()>max){
system=c.get('germline')
max=c.getSize()
}
} }
if (c.getSize()>max){ else if (typeof this.germline[list[i]]) {
system=c.get('germline') request += ">" +list[i] + "\n" +this.germline[this.sequence[list[i]].locus][list[i]] + "\n";
max=c.getSize()
} }
} }
else if (typeof this.germline[list[i]]) { if (address == 'IMGT') {
request += ">" +list[i] + "\n" +this.germline[this.sequence[list[i]].locus][list[i]] + "\n"; imgtPost(this.m.species, request, system);
} }
}
if (address == 'IMGT') imgtPost(this.m.species, request, system);
if (address == 'IMGTSeg') { if (address == 'IMGTSeg') {
imgtPostForSegmenter(this.m.species, request, system, this); imgtPostForSegmenter(this.m.species, request, system, this);
var change_options = {'l01p01c47' : 'N', // Deactivate default output var change_options = {'l01p01c47' : 'N', // Deactivate default output
......
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