icn3d 3.24.4 → 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.module.js CHANGED
@@ -10297,8 +10297,8 @@ class SetMenu {
10297
10297
  //}
10298
10298
 
10299
10299
  //!!!
10300
- html += this.getRadio('mn4_clr', 'mn4_clrIgstrand', 'Ig Strand', undefined, undefined, 2);
10301
- html += this.getRadio('mn4_clr', 'mn4_clrIgproto', 'Ig Protodomain', undefined, undefined, 2);
10300
+ //html += this.getRadio('mn4_clr', 'mn4_clrIgstrand', 'Ig Strand', undefined, undefined, 2);
10301
+ //html += this.getRadio('mn4_clr', 'mn4_clrIgproto', 'Ig Protodomain', undefined, undefined, 2);
10302
10302
  }
10303
10303
  else {
10304
10304
  //if(!me.cfg.hidelicense) html += this.getRadio('mn4_clr', 'mn1_delphi2', 'DelPhi<br><span style="padding-left:1.5em;">Potential ' + me.htmlCls.licenseStr + '</span>');
@@ -10429,7 +10429,7 @@ class SetMenu {
10429
10429
  html += this.getRadio('mn6_addlabel', 'mn6_addlabelResidues', 'per Residue', undefined, 1, 2);
10430
10430
  html += this.getRadio('mn6_addlabel', 'mn6_addlabelResnum', 'per Residue & Number', undefined, 1, 2);
10431
10431
  //!!!
10432
- html += this.getRadio('mn6_addlabel', 'mn6_addlabelRefnum', 'per Reference Number', undefined, 1, 2);
10432
+ //html += this.getRadio('mn6_addlabel', 'mn6_addlabelRefnum', 'per Reference Number', undefined, 1, 2);
10433
10433
  html += this.getRadio('mn6_addlabel', 'mn6_addlabelChains', 'per Chain', undefined, undefined, 2);
10434
10434
  html += this.getRadio('mn6_addlabel', 'mn6_addlabelTermini', 'N- & C-Termini', undefined, 1, 2);
10435
10435
  }
@@ -10521,12 +10521,12 @@ class SetMenu {
10521
10521
 
10522
10522
  html += "<ul>";
10523
10523
  //!!!
10524
-
10524
+ /*
10525
10525
  html += this.getLink('mn6_igrefYes', 'Show Ig Ref. Number', undefined, 2);
10526
10526
  html += this.getLink('mn6_igrefNo', 'Hide Ig Ref. Number', undefined, 2);
10527
10527
 
10528
10528
  html += this.getMenuSep();
10529
-
10529
+ */
10530
10530
  html += this.getLink('mn6_customref', 'Custom Ref. Number', undefined, 2);
10531
10531
  html += "</ul>";
10532
10532
  html += "</li>";
@@ -43095,24 +43095,7 @@ class ShowSeq {
43095
43095
  }
43096
43096
  }
43097
43097
  else {
43098
- let atom = ic.firstAtomObjCls.getFirstAtomObj(ic.residues[residueid]);
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
- for(let i in ic.residues[resid]) {
63445
- ic.atoms[i].ss = atomWt.ss;
63446
- ic.atoms[i].ssbegin = atomWt.ssbegin;
63447
- ic.atoms[i].ssend = atomWt.ssend;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icn3d",
3
- "version": "3.24.4",
3
+ "version": "3.24.5",
4
4
  "main": "./icn3d.js",
5
5
  "exports": {
6
6
  ".": {