icn3d 3.26.5 → 3.26.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/icn3d.js +83 -50
- package/icn3d.min.js +2 -2
- package/icn3d.module.js +83 -50
- package/package.json +1 -1
package/icn3d.module.js
CHANGED
|
@@ -45388,7 +45388,7 @@ class LineGraph {
|
|
|
45388
45388
|
pdb_query = header + pdb_query;
|
|
45389
45389
|
|
|
45390
45390
|
let dataObj = {'pdb_query': pdb_query, 'pdb_target': pdb_target, "queryid": ic.refpdbArray[index]};
|
|
45391
|
-
let alignAjax =
|
|
45391
|
+
let alignAjax = me.getAjaxPostPromise(urltmalign, dataObj);
|
|
45392
45392
|
ajaxArray.push(alignAjax);
|
|
45393
45393
|
|
|
45394
45394
|
domainidpairArray.push(domainid + "|" + ic.refpdbArray[index]);
|
|
@@ -45405,7 +45405,8 @@ class LineGraph {
|
|
|
45405
45405
|
|
|
45406
45406
|
//split arrays into chunks of 100 jobs
|
|
45407
45407
|
let n = (me.bNode) ? 16 : 96;
|
|
45408
|
-
|
|
45408
|
+
|
|
45409
|
+
for(let i = 0, il = parseInt((ajaxArray.length - 1) / n + 1); i < il; ++i) {
|
|
45409
45410
|
let currAjaxArray = [];
|
|
45410
45411
|
if(i == il - 1) { // last one
|
|
45411
45412
|
currAjaxArray = ajaxArray.slice(i * n, ajaxArray.length);
|
|
@@ -45419,7 +45420,6 @@ class LineGraph {
|
|
|
45419
45420
|
|
|
45420
45421
|
dataArray2 = dataArray2.concat(currDataArray);
|
|
45421
45422
|
}
|
|
45422
|
-
|
|
45423
45423
|
|
|
45424
45424
|
let bRound1 = true;
|
|
45425
45425
|
await thisClass.parseAlignData(dataArray2, domainidpairArray, bRound1);
|
|
@@ -45529,7 +45529,7 @@ class LineGraph {
|
|
|
45529
45529
|
|
|
45530
45530
|
//if(!(bBstrand && bCstrand && bEstrand && bFstrand && bGstrand)) continue;
|
|
45531
45531
|
if(!(bBstrand && bCstrand && bEstrand && bFstrand)) {
|
|
45532
|
-
if(!me.bNode) console.log("
|
|
45532
|
+
if(!me.bNode) console.log("Some of the Ig strands B, C, E, F are missing in the domain " + domainid + "...");
|
|
45533
45533
|
continue;
|
|
45534
45534
|
}
|
|
45535
45535
|
|
|
@@ -72496,58 +72496,91 @@ iCn3DUI.prototype.setIcn3d = function() { let me = this;
|
|
|
72496
72496
|
me.setDialogAjax();
|
|
72497
72497
|
};
|
|
72498
72498
|
|
|
72499
|
-
iCn3DUI.prototype.getAjaxPromise = function(url, dataType, beforeSend, alertMess, logMess, complete) { let me = this;
|
|
72500
|
-
|
|
72501
|
-
|
|
72502
|
-
|
|
72503
|
-
|
|
72504
|
-
|
|
72505
|
-
|
|
72506
|
-
|
|
72507
|
-
|
|
72508
|
-
|
|
72509
|
-
|
|
72510
|
-
|
|
72511
|
-
|
|
72512
|
-
|
|
72513
|
-
|
|
72514
|
-
|
|
72515
|
-
|
|
72516
|
-
|
|
72517
|
-
|
|
72518
|
-
|
|
72519
|
-
|
|
72499
|
+
iCn3DUI.prototype.getAjaxPromise = function(url, dataType, beforeSend, alertMess, logMess, complete, bNode) { let me = this;
|
|
72500
|
+
// if(!bNode || dataType != 'json') {
|
|
72501
|
+
return new Promise(function(resolve, reject) {
|
|
72502
|
+
$.ajax({
|
|
72503
|
+
url: url,
|
|
72504
|
+
dataType: dataType,
|
|
72505
|
+
cache: true,
|
|
72506
|
+
beforeSend: function() {
|
|
72507
|
+
if(beforeSend) me.icn3d.ParserUtilsCls.showLoading();
|
|
72508
|
+
},
|
|
72509
|
+
complete: function() {
|
|
72510
|
+
if(complete) me.icn3d.ParserUtilsCls.hideLoading();
|
|
72511
|
+
},
|
|
72512
|
+
success: function(data) {
|
|
72513
|
+
resolve(data);
|
|
72514
|
+
},
|
|
72515
|
+
error : function() {
|
|
72516
|
+
if(alertMess) alert(alertMess);
|
|
72517
|
+
if(logMess) console.log(logMess);
|
|
72518
|
+
|
|
72519
|
+
reject('error');
|
|
72520
|
+
}
|
|
72521
|
+
});
|
|
72520
72522
|
});
|
|
72521
|
-
}
|
|
72523
|
+
// }
|
|
72524
|
+
// else {
|
|
72525
|
+
// return new Promise(async function(resolve, reject) {
|
|
72526
|
+
// const response = await fetch(url);
|
|
72527
|
+
|
|
72528
|
+
// response.json().then(function(data) {
|
|
72529
|
+
// resolve(data);
|
|
72530
|
+
// }).catch(function(error) {
|
|
72531
|
+
// reject('error');
|
|
72532
|
+
// });
|
|
72533
|
+
// });
|
|
72534
|
+
// }
|
|
72522
72535
|
};
|
|
72523
72536
|
|
|
72524
|
-
iCn3DUI.prototype.getAjaxPostPromise = function(url, data, beforeSend, alertMess, logMess, complete, dataType) { let me = this;
|
|
72537
|
+
iCn3DUI.prototype.getAjaxPostPromise = async function(url, data, beforeSend, alertMess, logMess, complete, dataType, bNode) { let me = this;
|
|
72525
72538
|
dataType = (dataType) ? dataType : 'json';
|
|
72526
72539
|
|
|
72527
|
-
|
|
72528
|
-
|
|
72529
|
-
|
|
72530
|
-
|
|
72531
|
-
|
|
72532
|
-
|
|
72533
|
-
|
|
72534
|
-
|
|
72535
|
-
|
|
72536
|
-
|
|
72537
|
-
|
|
72538
|
-
|
|
72539
|
-
|
|
72540
|
-
|
|
72541
|
-
|
|
72542
|
-
|
|
72543
|
-
|
|
72544
|
-
|
|
72545
|
-
|
|
72546
|
-
|
|
72547
|
-
|
|
72548
|
-
|
|
72540
|
+
// if(!bNode || dataType != 'json') {
|
|
72541
|
+
return new Promise(function(resolve, reject) {
|
|
72542
|
+
$.ajax({
|
|
72543
|
+
url: url,
|
|
72544
|
+
type: 'POST',
|
|
72545
|
+
data : data,
|
|
72546
|
+
dataType: dataType,
|
|
72547
|
+
cache: true,
|
|
72548
|
+
beforeSend: function() {
|
|
72549
|
+
if(beforeSend) me.icn3d.ParserUtilsCls.showLoading();
|
|
72550
|
+
},
|
|
72551
|
+
complete: function() {
|
|
72552
|
+
if(complete) me.icn3d.ParserUtilsCls.hideLoading();
|
|
72553
|
+
},
|
|
72554
|
+
success: function(data) {
|
|
72555
|
+
resolve(data);
|
|
72556
|
+
},
|
|
72557
|
+
error : function() {
|
|
72558
|
+
if(alertMess) alert(alertMess);
|
|
72559
|
+
if(logMess) console.log(logMess);
|
|
72560
|
+
|
|
72561
|
+
reject('error');
|
|
72562
|
+
}
|
|
72563
|
+
});
|
|
72549
72564
|
});
|
|
72550
|
-
}
|
|
72565
|
+
// }
|
|
72566
|
+
// else {
|
|
72567
|
+
// return new Promise(async function(resolve, reject) {
|
|
72568
|
+
// const response = await fetch(url, {
|
|
72569
|
+
// method: 'POST',
|
|
72570
|
+
// headers: {
|
|
72571
|
+
// 'Accept': 'application/json',
|
|
72572
|
+
// 'Content-Type': 'application/json'
|
|
72573
|
+
// },
|
|
72574
|
+
// body: data
|
|
72575
|
+
// });
|
|
72576
|
+
|
|
72577
|
+
// response.json().then(function(data) {
|
|
72578
|
+
// resolve(data);
|
|
72579
|
+
// }).catch(function(error) {
|
|
72580
|
+
// reject('error');
|
|
72581
|
+
// });
|
|
72582
|
+
// });
|
|
72583
|
+
// }
|
|
72551
72584
|
};
|
|
72552
72585
|
|
|
72553
72586
|
iCn3DUI.prototype.setDialogAjax = function() { let me = this;
|