icn3d 3.30.3 → 3.30.4
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 +28 -18
- package/icn3d.min.js +3 -5
- package/icn3d.module.js +28 -18
- package/package.json +1 -1
package/icn3d.module.js
CHANGED
|
@@ -6729,7 +6729,7 @@ class ClickMenu {
|
|
|
6729
6729
|
if(!ic.bAnnoShown) await ic.showAnnoCls.showAnnotations();
|
|
6730
6730
|
await ic.annotationCls.setAnnoTabIg(bSelection, template);
|
|
6731
6731
|
|
|
6732
|
-
|
|
6732
|
+
ic.bRunRefnumAgain = false;
|
|
6733
6733
|
}
|
|
6734
6734
|
|
|
6735
6735
|
clickMenu1() { let me = this.icn3dui; me.icn3d;
|
|
@@ -8315,7 +8315,7 @@ class ClickMenu {
|
|
|
8315
8315
|
// ic.drawCls.draw();
|
|
8316
8316
|
// }
|
|
8317
8317
|
|
|
8318
|
-
|
|
8318
|
+
ic.bRunRefnumAgain = false;
|
|
8319
8319
|
});
|
|
8320
8320
|
|
|
8321
8321
|
me.myEventCls.onIds("#" + me.pre + "mn6_igrefTpl", "click", async function(e) { me.icn3d; //e.preventDefault();
|
|
@@ -15894,7 +15894,7 @@ class AlignSeq {
|
|
|
15894
15894
|
alignChainArray = Object.keys(ic.alnChains);
|
|
15895
15895
|
|
|
15896
15896
|
if (bReverse) alignChainArray = alignChainArray.reverse();
|
|
15897
|
-
|
|
15897
|
+
|
|
15898
15898
|
let maxSeqCnt = 0;
|
|
15899
15899
|
|
|
15900
15900
|
let chainHash = {};
|
|
@@ -38621,8 +38621,6 @@ class AnnoIg {
|
|
|
38621
38621
|
$("#" + ic.pre + "dt_" + type + "_" + chnid).html(html);
|
|
38622
38622
|
$("#" + ic.pre + "ov_" + type + "_" + chnid).html(html2);
|
|
38623
38623
|
$("#" + ic.pre + "tt_" + type + "_" + chnid).html(html3);
|
|
38624
|
-
|
|
38625
|
-
ic.bRunRefnumAgain = false;
|
|
38626
38624
|
}
|
|
38627
38625
|
|
|
38628
38626
|
showAllRefNum(giSeq, chnid) { let ic = this.icn3d; ic.icn3dui;
|
|
@@ -43410,7 +43408,7 @@ class Annotation {
|
|
|
43410
43408
|
|
|
43411
43409
|
ic.bRunRefnumAgain = true;
|
|
43412
43410
|
await this.updateIg();
|
|
43413
|
-
|
|
43411
|
+
ic.bRunRefnumAgain = false;
|
|
43414
43412
|
|
|
43415
43413
|
this.updateInteraction();
|
|
43416
43414
|
}
|
|
@@ -43492,8 +43490,9 @@ class Annotation {
|
|
|
43492
43490
|
|
|
43493
43491
|
$("[id^=" + ic.pre + "transmem]").show();
|
|
43494
43492
|
}
|
|
43495
|
-
if($("#" + ic.pre + "anno_ig").length && $("#" + ic.pre + "anno_ig")[0].checked) {
|
|
43496
|
-
//
|
|
43493
|
+
if($("#" + ic.pre + "anno_ig").length && $("#" + ic.pre + "anno_ig")[0].checked || ic.bShowRefnum) {
|
|
43494
|
+
// no need to redo ref num calculation
|
|
43495
|
+
ic.bRunRefnumAgain = false;
|
|
43497
43496
|
|
|
43498
43497
|
await this.updateIg();
|
|
43499
43498
|
|
|
@@ -43606,6 +43605,7 @@ class Annotation {
|
|
|
43606
43605
|
if($("#" + ic.pre + "anno_transmem").length) $("#" + ic.pre + "anno_transmem")[0].checked = false;
|
|
43607
43606
|
}
|
|
43608
43607
|
async setAnnoTabIg(bSelection, template) { let ic = this.icn3d; ic.icn3dui;
|
|
43608
|
+
|
|
43609
43609
|
await this.updateIg(bSelection, template);
|
|
43610
43610
|
|
|
43611
43611
|
$("[id^=" + ic.pre + "ig]").show();
|
|
@@ -43768,7 +43768,7 @@ class Annotation {
|
|
|
43768
43768
|
await thisClass.setAnnoTabIg();
|
|
43769
43769
|
me.htmlCls.clickMenuCls.setLogCmd("set annotation ig", true);
|
|
43770
43770
|
|
|
43771
|
-
|
|
43771
|
+
ic.bRunRefnumAgain = false;
|
|
43772
43772
|
}
|
|
43773
43773
|
else {
|
|
43774
43774
|
thisClass.hideAnnoTabIg();
|
|
@@ -49992,7 +49992,7 @@ class ChainalignParser {
|
|
|
49992
49992
|
await this.downloadChainalignmentPart3(chainresiCalphaHash2, chainidArray, ic.hAtoms);
|
|
49993
49993
|
}
|
|
49994
49994
|
|
|
49995
|
-
setMsa(chainidArray, bVastplus, bRealign) { let ic = this.icn3d, me = ic.icn3dui;
|
|
49995
|
+
setMsa(chainidArray, bVastplus, bRealign) { let ic = this.icn3d, me = ic.icn3dui;
|
|
49996
49996
|
// get aligned length for each pair
|
|
49997
49997
|
let index_alignLen = [];
|
|
49998
49998
|
for(let index = 1, indexl = chainidArray.length; index < indexl; ++index) {
|
|
@@ -50815,6 +50815,7 @@ class ChainalignParser {
|
|
|
50815
50815
|
// vastplusAtype: 0: VAST, global, 1: VAST, invarant core, 2: TM-align, global
|
|
50816
50816
|
// VAST+ on the fly
|
|
50817
50817
|
let structArray = Object.keys(ic.structures);
|
|
50818
|
+
if(vastplusAtype == 2) me.cfg.aligntool = 'tmalign';
|
|
50818
50819
|
await ic.vastplusCls.vastplusAlign(structArray, vastplusAtype);
|
|
50819
50820
|
}
|
|
50820
50821
|
|
|
@@ -56583,7 +56584,8 @@ class ParserUtils {
|
|
|
56583
56584
|
|
|
56584
56585
|
// display the structure right away. load the mns and sequences later
|
|
56585
56586
|
setTimeout(async function(){
|
|
56586
|
-
|
|
56587
|
+
if(ic.bInitial) {
|
|
56588
|
+
// if(!ic.bAnnoShown || ic.bResetAnno) {
|
|
56587
56589
|
// if(me.cfg.showsets) {
|
|
56588
56590
|
// ic.definedSetsCls.showSets();
|
|
56589
56591
|
// }
|
|
@@ -58257,7 +58259,14 @@ class SetSeqAlign {
|
|
|
58257
58259
|
// resi = ic.qt_start_end[chainIndex][i].t_start;
|
|
58258
58260
|
// }
|
|
58259
58261
|
// else {
|
|
58260
|
-
let resiPos = (bRealign || me.cfg.aligntool != 'tmalign') ? j : j - baseResi;
|
|
58262
|
+
// let resiPos = (bRealign || me.cfg.aligntool != 'tmalign') ? j : j - baseResi;
|
|
58263
|
+
let resiPos;
|
|
58264
|
+
if(me.cfg.aligntool == 'tmalign') {
|
|
58265
|
+
resiPos = j - baseResi;
|
|
58266
|
+
}
|
|
58267
|
+
else {
|
|
58268
|
+
resiPos = (bRealign) ? j : j - baseResi;
|
|
58269
|
+
}
|
|
58261
58270
|
resi = ic.ParserUtilsCls.getResi(chainidArray[0], resiPos);
|
|
58262
58271
|
// }
|
|
58263
58272
|
|
|
@@ -60051,6 +60060,7 @@ class Vastplus {
|
|
|
60051
60060
|
}
|
|
60052
60061
|
|
|
60053
60062
|
let bRealign = true, atype = 2; // VAST+ based on TM-align
|
|
60063
|
+
me.cfg.aligntool = 'tmalign';
|
|
60054
60064
|
await ic.vastplusCls.vastplusAlign(Object.keys(structHash), atype, bRealign);
|
|
60055
60065
|
}
|
|
60056
60066
|
|
|
@@ -60995,7 +61005,7 @@ class ApplyCommand {
|
|
|
60995
61005
|
else if(command == 'set annotation ig') {
|
|
60996
61006
|
ic.bRunRefnumAgain = true;
|
|
60997
61007
|
await ic.annotationCls.setAnnoTabIg();
|
|
60998
|
-
|
|
61008
|
+
ic.bRunRefnumAgain = false;
|
|
60999
61009
|
}
|
|
61000
61010
|
else if(command == 'ig refnum on') {
|
|
61001
61011
|
ic.bRunRefnumAgain = true;
|
|
@@ -61003,7 +61013,7 @@ class ApplyCommand {
|
|
|
61003
61013
|
if(!ic.bAnnoShown) await ic.showAnnoCls.showAnnotations();
|
|
61004
61014
|
await ic.annotationCls.setAnnoTabIg(true);
|
|
61005
61015
|
|
|
61006
|
-
|
|
61016
|
+
ic.bRunRefnumAgain = false;
|
|
61007
61017
|
}
|
|
61008
61018
|
else if(command == 'highlight level up') {
|
|
61009
61019
|
ic.resid2specCls.switchHighlightLevelUp();
|
|
@@ -63726,7 +63736,7 @@ class LoadScript {
|
|
|
63726
63736
|
if(!ic.bAnnoShown) await ic.showAnnoCls.showAnnotations();
|
|
63727
63737
|
await ic.annotationCls.setAnnoTabIg(true);
|
|
63728
63738
|
|
|
63729
|
-
|
|
63739
|
+
ic.bRunRefnumAgain = false;
|
|
63730
63740
|
}
|
|
63731
63741
|
else if(lastCommand.indexOf('set annotation 3ddomain') == 0) {
|
|
63732
63742
|
thisClass.applyCommand3ddomain(lastCommand);
|
|
@@ -67357,8 +67367,6 @@ class Dssp {
|
|
|
67357
67367
|
}
|
|
67358
67368
|
}
|
|
67359
67369
|
|
|
67360
|
-
//!!!
|
|
67361
|
-
|
|
67362
67370
|
// combine the top four clusters for the 2nd round alignment
|
|
67363
67371
|
if(bRound1) {
|
|
67364
67372
|
for(let domainid in domainid2refpdbnamelist) {
|
|
@@ -68292,13 +68300,15 @@ class Dssp {
|
|
|
68292
68300
|
if(i != il - 1) { // modify
|
|
68293
68301
|
strandArray[i + 1].loopResCnt += strandArray[i].loopResCnt + parseInt(strandArray[i].endResi) - parseInt(strandArray[i].startResi) + 1;
|
|
68294
68302
|
}
|
|
68303
|
+
|
|
68304
|
+
// assign before removing
|
|
68305
|
+
let resid = chnid + '_' + strandArray[i].startResi;
|
|
68295
68306
|
|
|
68296
68307
|
strandArray.splice(i, 1);
|
|
68297
68308
|
|
|
68298
68309
|
if(strandTmp == 'B' || strandTmp == 'C' || strandTmp == 'E' || strandTmp == 'F') {
|
|
68299
68310
|
if(!me.bNode) console.log("Ig strand " + strandTmp + " is removed since it is too short...");
|
|
68300
68311
|
|
|
68301
|
-
let resid = chnid + '_' + strandArray[i].startResi;
|
|
68302
68312
|
let domainid = ic.resid2domainid[resid];
|
|
68303
68313
|
removeDomainidHash[domainid] = 1;
|
|
68304
68314
|
continue;
|