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.js CHANGED
@@ -9396,8 +9396,8 @@ class SetMenu {
9396
9396
  //}
9397
9397
 
9398
9398
  //!!!
9399
- html += this.getRadio('mn4_clr', 'mn4_clrIgstrand', 'Ig Strand', undefined, undefined, 2);
9400
- html += this.getRadio('mn4_clr', 'mn4_clrIgproto', 'Ig Protodomain', undefined, undefined, 2);
9399
+ //html += this.getRadio('mn4_clr', 'mn4_clrIgstrand', 'Ig Strand', undefined, undefined, 2);
9400
+ //html += this.getRadio('mn4_clr', 'mn4_clrIgproto', 'Ig Protodomain', undefined, undefined, 2);
9401
9401
  }
9402
9402
  else {
9403
9403
  //if(!me.cfg.hidelicense) html += this.getRadio('mn4_clr', 'mn1_delphi2', 'DelPhi<br><span style="padding-left:1.5em;">Potential ' + me.htmlCls.licenseStr + '</span>');
@@ -9528,7 +9528,7 @@ class SetMenu {
9528
9528
  html += this.getRadio('mn6_addlabel', 'mn6_addlabelResidues', 'per Residue', undefined, 1, 2);
9529
9529
  html += this.getRadio('mn6_addlabel', 'mn6_addlabelResnum', 'per Residue & Number', undefined, 1, 2);
9530
9530
  //!!!
9531
- html += this.getRadio('mn6_addlabel', 'mn6_addlabelRefnum', 'per Reference Number', undefined, 1, 2);
9531
+ //html += this.getRadio('mn6_addlabel', 'mn6_addlabelRefnum', 'per Reference Number', undefined, 1, 2);
9532
9532
  html += this.getRadio('mn6_addlabel', 'mn6_addlabelChains', 'per Chain', undefined, undefined, 2);
9533
9533
  html += this.getRadio('mn6_addlabel', 'mn6_addlabelTermini', 'N- & C-Termini', undefined, 1, 2);
9534
9534
  }
@@ -9620,12 +9620,12 @@ class SetMenu {
9620
9620
 
9621
9621
  html += "<ul>";
9622
9622
  //!!!
9623
-
9623
+ /*
9624
9624
  html += this.getLink('mn6_igrefYes', 'Show Ig Ref. Number', undefined, 2);
9625
9625
  html += this.getLink('mn6_igrefNo', 'Hide Ig Ref. Number', undefined, 2);
9626
9626
 
9627
9627
  html += this.getMenuSep();
9628
-
9628
+ */
9629
9629
  html += this.getLink('mn6_customref', 'Custom Ref. Number', undefined, 2);
9630
9630
  html += "</ul>";
9631
9631
  html += "</li>";
@@ -42194,24 +42194,7 @@ class ShowSeq {
42194
42194
  }
42195
42195
  }
42196
42196
  else {
42197
- let atom = ic.firstAtomObjCls.getFirstAtomObj(ic.residues[residueid]);
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
- for(let i in ic.residues[resid]) {
62544
- ic.atoms[i].ss = atomWt.ss;
62545
- ic.atoms[i].ssbegin = atomWt.ssbegin;
62546
- ic.atoms[i].ssend = atomWt.ssend;
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
  }