icn3d 3.24.3 → 3.24.5
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 +11 -24
- package/icn3d.min.js +2 -2
- package/icn3d.module.js +11 -24
- package/package.json +1 -1
package/icn3d.module.js
CHANGED
|
@@ -43095,24 +43095,7 @@ class ShowSeq {
|
|
|
43095
43095
|
}
|
|
43096
43096
|
}
|
|
43097
43097
|
else {
|
|
43098
|
-
|
|
43099
|
-
|
|
43100
|
-
// // skip non-protein residues
|
|
43101
|
-
// // after G strand and before A strand, just use the mapped reference number
|
|
43102
|
-
if((!atom || ic.proteins.hasOwnProperty(atom.serial)) && prevStrand && !bCustom && !kabat_or_imgt
|
|
43103
|
-
&& (!currStrand_ori || currStrand_ori.substr(0,1) != 'G')) {
|
|
43104
|
-
if(currStrand != ' ') {
|
|
43105
|
-
bLoop = ic.residIgLoop[residueid];
|
|
43106
|
-
html += this.getRefnumHtml(residueid, refnumStr, refnumStr_ori, refnumLabel, currStrand, bLoop, bHidelabel);
|
|
43107
|
-
// if(bLoop) ic.residIgLoop[residueid] = 1;
|
|
43108
|
-
}
|
|
43109
|
-
else {
|
|
43110
|
-
html += '<span></span>';
|
|
43111
|
-
}
|
|
43112
|
-
}
|
|
43113
|
-
else {
|
|
43114
|
-
html += '<span></span>';
|
|
43115
|
-
}
|
|
43098
|
+
html += '<span></span>';
|
|
43116
43099
|
}
|
|
43117
43100
|
//}
|
|
43118
43101
|
|
|
@@ -43139,13 +43122,13 @@ class ShowSeq {
|
|
|
43139
43122
|
|
|
43140
43123
|
let html = '';
|
|
43141
43124
|
|
|
43142
|
-
if(lastTwo == 50 && !bLoop) {
|
|
43125
|
+
if(refnumLabel && lastTwo == 50 && !bLoop) {
|
|
43143
43126
|
// highlight the anchor residues
|
|
43144
43127
|
ic.hAtomsRefnum = me.hashUtilsCls.unionHash(ic.hAtomsRefnum, ic.residues[residueid]);
|
|
43145
43128
|
|
|
43146
43129
|
html += '<span ' + colorStr + ' title="' + refnumLabel + '"><b>' + refnumLabel.substr(0, 1) + '</b>' + refnumLabel.substr(1) + '</span>';
|
|
43147
43130
|
}
|
|
43148
|
-
else if(lastTwo % 2 == 0 && lastTwo != 52 && !bHidelabel) { // don't show label for the first, middle, and last loop residues
|
|
43131
|
+
else if(refnumLabel && lastTwo % 2 == 0 && lastTwo != 52 && !bHidelabel) { // don't show label for the first, middle, and last loop residues
|
|
43149
43132
|
// e.g., 2152a
|
|
43150
43133
|
let lastTwoStr = isNaN(refnumStr) ? lastTwo + refnumStr.substr(refnumStr.length - 1, 1) : lastTwo;
|
|
43151
43134
|
html += '<span ' + colorStr + ' title="' + refnumLabel + '">' + lastTwoStr + '</span>';
|
|
@@ -62863,6 +62846,7 @@ class Dssp {
|
|
|
62863
62846
|
|
|
62864
62847
|
// open sequence view
|
|
62865
62848
|
ic.hAtomsRefnum = {};
|
|
62849
|
+
ic.bResetAnno = true;
|
|
62866
62850
|
await ic.showAnnoCls.showAnnotations();
|
|
62867
62851
|
ic.annotationCls.setAnnoViewAndDisplay('detailed view');
|
|
62868
62852
|
}
|
|
@@ -63163,6 +63147,7 @@ if(!me.bNode) {
|
|
|
63163
63147
|
|
|
63164
63148
|
// open sequence view
|
|
63165
63149
|
ic.hAtomsRefnum = {};
|
|
63150
|
+
ic.bResetAnno = true;
|
|
63166
63151
|
await ic.showAnnoCls.showAnnotations();
|
|
63167
63152
|
ic.annotationCls.setAnnoViewAndDisplay('detailed view');
|
|
63168
63153
|
}
|
|
@@ -63441,10 +63426,12 @@ console.log("free energy: " + energy + " kcal/mol");
|
|
|
63441
63426
|
if(struct == pdbid + '2') { // mutant
|
|
63442
63427
|
let residWt = pdbid + resid.substr(resid.indexOf('_'));
|
|
63443
63428
|
let atomWt = ic.firstAtomObjCls.getFirstAtomObj(ic.residues[residWt]);
|
|
63444
|
-
|
|
63445
|
-
ic.
|
|
63446
|
-
|
|
63447
|
-
|
|
63429
|
+
if(atomWt) {
|
|
63430
|
+
for(let i in ic.residues[resid]) {
|
|
63431
|
+
ic.atoms[i].ss = atomWt.ss;
|
|
63432
|
+
ic.atoms[i].ssbegin = atomWt.ssbegin;
|
|
63433
|
+
ic.atoms[i].ssend = atomWt.ssend;
|
|
63434
|
+
}
|
|
63448
63435
|
}
|
|
63449
63436
|
}
|
|
63450
63437
|
}
|