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.js
CHANGED
|
@@ -42194,24 +42194,7 @@ class ShowSeq {
|
|
|
42194
42194
|
}
|
|
42195
42195
|
}
|
|
42196
42196
|
else {
|
|
42197
|
-
|
|
42198
|
-
|
|
42199
|
-
// // skip non-protein residues
|
|
42200
|
-
// // after G strand and before A strand, just use the mapped reference number
|
|
42201
|
-
if((!atom || ic.proteins.hasOwnProperty(atom.serial)) && prevStrand && !bCustom && !kabat_or_imgt
|
|
42202
|
-
&& (!currStrand_ori || currStrand_ori.substr(0,1) != 'G')) {
|
|
42203
|
-
if(currStrand != ' ') {
|
|
42204
|
-
bLoop = ic.residIgLoop[residueid];
|
|
42205
|
-
html += this.getRefnumHtml(residueid, refnumStr, refnumStr_ori, refnumLabel, currStrand, bLoop, bHidelabel);
|
|
42206
|
-
// if(bLoop) ic.residIgLoop[residueid] = 1;
|
|
42207
|
-
}
|
|
42208
|
-
else {
|
|
42209
|
-
html += '<span></span>';
|
|
42210
|
-
}
|
|
42211
|
-
}
|
|
42212
|
-
else {
|
|
42213
|
-
html += '<span></span>';
|
|
42214
|
-
}
|
|
42197
|
+
html += '<span></span>';
|
|
42215
42198
|
}
|
|
42216
42199
|
//}
|
|
42217
42200
|
|
|
@@ -42238,13 +42221,13 @@ class ShowSeq {
|
|
|
42238
42221
|
|
|
42239
42222
|
let html = '';
|
|
42240
42223
|
|
|
42241
|
-
if(lastTwo == 50 && !bLoop) {
|
|
42224
|
+
if(refnumLabel && lastTwo == 50 && !bLoop) {
|
|
42242
42225
|
// highlight the anchor residues
|
|
42243
42226
|
ic.hAtomsRefnum = me.hashUtilsCls.unionHash(ic.hAtomsRefnum, ic.residues[residueid]);
|
|
42244
42227
|
|
|
42245
42228
|
html += '<span ' + colorStr + ' title="' + refnumLabel + '"><b>' + refnumLabel.substr(0, 1) + '</b>' + refnumLabel.substr(1) + '</span>';
|
|
42246
42229
|
}
|
|
42247
|
-
else if(lastTwo % 2 == 0 && lastTwo != 52 && !bHidelabel) { // don't show label for the first, middle, and last loop residues
|
|
42230
|
+
else if(refnumLabel && lastTwo % 2 == 0 && lastTwo != 52 && !bHidelabel) { // don't show label for the first, middle, and last loop residues
|
|
42248
42231
|
// e.g., 2152a
|
|
42249
42232
|
let lastTwoStr = isNaN(refnumStr) ? lastTwo + refnumStr.substr(refnumStr.length - 1, 1) : lastTwo;
|
|
42250
42233
|
html += '<span ' + colorStr + ' title="' + refnumLabel + '">' + lastTwoStr + '</span>';
|
|
@@ -61962,6 +61945,7 @@ class Dssp {
|
|
|
61962
61945
|
|
|
61963
61946
|
// open sequence view
|
|
61964
61947
|
ic.hAtomsRefnum = {};
|
|
61948
|
+
ic.bResetAnno = true;
|
|
61965
61949
|
await ic.showAnnoCls.showAnnotations();
|
|
61966
61950
|
ic.annotationCls.setAnnoViewAndDisplay('detailed view');
|
|
61967
61951
|
}
|
|
@@ -62262,6 +62246,7 @@ if(!me.bNode) {
|
|
|
62262
62246
|
|
|
62263
62247
|
// open sequence view
|
|
62264
62248
|
ic.hAtomsRefnum = {};
|
|
62249
|
+
ic.bResetAnno = true;
|
|
62265
62250
|
await ic.showAnnoCls.showAnnotations();
|
|
62266
62251
|
ic.annotationCls.setAnnoViewAndDisplay('detailed view');
|
|
62267
62252
|
}
|
|
@@ -62540,10 +62525,12 @@ console.log("free energy: " + energy + " kcal/mol");
|
|
|
62540
62525
|
if(struct == pdbid + '2') { // mutant
|
|
62541
62526
|
let residWt = pdbid + resid.substr(resid.indexOf('_'));
|
|
62542
62527
|
let atomWt = ic.firstAtomObjCls.getFirstAtomObj(ic.residues[residWt]);
|
|
62543
|
-
|
|
62544
|
-
ic.
|
|
62545
|
-
|
|
62546
|
-
|
|
62528
|
+
if(atomWt) {
|
|
62529
|
+
for(let i in ic.residues[resid]) {
|
|
62530
|
+
ic.atoms[i].ss = atomWt.ss;
|
|
62531
|
+
ic.atoms[i].ssbegin = atomWt.ssbegin;
|
|
62532
|
+
ic.atoms[i].ssend = atomWt.ssend;
|
|
62533
|
+
}
|
|
62547
62534
|
}
|
|
62548
62535
|
}
|
|
62549
62536
|
}
|