icn3d 3.24.4 → 3.24.6

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>";
@@ -36291,7 +36291,6 @@ class SetOption {
36291
36291
  }
36292
36292
 
36293
36293
  showColorLegend(colorType) { let ic = this.icn3d, me = ic.icn3dui;
36294
- let bClose = false;
36295
36294
 
36296
36295
  let colorLabel = colorType.substr(0, 1).toUpperCase() + colorType.substr(1);
36297
36296
  if(colorType == 'confidence') {
@@ -36403,7 +36402,6 @@ class SetOption {
36403
36402
  }
36404
36403
  else {
36405
36404
  html = '';
36406
- bClose = true;
36407
36405
  }
36408
36406
 
36409
36407
  if(html) {
@@ -36411,9 +36409,9 @@ class SetOption {
36411
36409
  me.htmlCls.dialogCls.openDlg('dl_legend', 'Color Legend');
36412
36410
  }
36413
36411
 
36414
- if(bClose) {
36415
- if(window.dialog && window.dialog.hasClass('ui-dialog-content')) window.dialog.dialog( "close" );
36416
- }
36412
+ // if(bClose) {
36413
+ // if(window.dialog && window.dialog.hasClass('ui-dialog-content')) window.dialog.dialog( "close" );
36414
+ // }
36417
36415
  }
36418
36416
 
36419
36417
  getColorLegendForElem(category, atomHash) { let ic = this.icn3d, me = ic.icn3dui;
@@ -43095,24 +43093,7 @@ class ShowSeq {
43095
43093
  }
43096
43094
  }
43097
43095
  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
- }
43096
+ html += '<span></span>';
43116
43097
  }
43117
43098
  //}
43118
43099
 
@@ -43139,13 +43120,13 @@ class ShowSeq {
43139
43120
 
43140
43121
  let html = '';
43141
43122
 
43142
- if(lastTwo == 50 && !bLoop) {
43123
+ if(refnumLabel && lastTwo == 50 && !bLoop) {
43143
43124
  // highlight the anchor residues
43144
43125
  ic.hAtomsRefnum = me.hashUtilsCls.unionHash(ic.hAtomsRefnum, ic.residues[residueid]);
43145
43126
 
43146
43127
  html += '<span ' + colorStr + ' title="' + refnumLabel + '"><b>' + refnumLabel.substr(0, 1) + '</b>' + refnumLabel.substr(1) + '</span>';
43147
43128
  }
43148
- else if(lastTwo % 2 == 0 && lastTwo != 52 && !bHidelabel) { // don't show label for the first, middle, and last loop residues
43129
+ else if(refnumLabel && lastTwo % 2 == 0 && lastTwo != 52 && !bHidelabel) { // don't show label for the first, middle, and last loop residues
43149
43130
  // e.g., 2152a
43150
43131
  let lastTwoStr = isNaN(refnumStr) ? lastTwo + refnumStr.substr(refnumStr.length - 1, 1) : lastTwo;
43151
43132
  html += '<span ' + colorStr + ' title="' + refnumLabel + '">' + lastTwoStr + '</span>';
@@ -58016,7 +57997,9 @@ class ApplyCommand {
58016
57997
  let msa;
58017
57998
  if(paraArray.length >= 7) msa = paraArray[6].substr(4);
58018
57999
 
58019
- $("#" + ic.pre + "anno_custom")[0].checked = true;
58000
+ if($("#" + ic.pre + "anno_custom")[0]) {
58001
+ $("#" + ic.pre + "anno_custom")[0].checked = true;
58002
+ }
58020
58003
  $("[id^=" + ic.pre + "custom]").show();
58021
58004
 
58022
58005
  if(color == '0') color = undefined;
@@ -61327,16 +61310,18 @@ class Selection {
61327
61310
  if(me.cfg.bSidebyside && structureArray.length == 2) {
61328
61311
  let dividArray = Object.keys(window.icn3duiHash);
61329
61312
  let pos = dividArray.indexOf(ic.divid);
61330
-
61331
61313
  let structure = structureArray[pos];
61332
61314
  let chainArray = ic.structures[structure];
61315
+
61333
61316
  let structAtoms = {};
61334
- for(let i = 0, il = chainArray.length; i < il; ++i) {
61335
- structAtoms = me.hashUtilsCls.unionHash(structAtoms, ic.chains[chainArray[i]]);
61336
- }
61317
+ if(chainArray) {
61318
+ for(let i = 0, il = chainArray.length; i < il; ++i) {
61319
+ structAtoms = me.hashUtilsCls.unionHash(structAtoms, ic.chains[chainArray[i]]);
61320
+ }
61337
61321
 
61338
- ic.dAtoms = me.hashUtilsCls.intHash(structAtoms, ic.dAtoms);
61339
- ic.hAtoms = me.hashUtilsCls.cloneHash(ic.dAtoms);
61322
+ ic.dAtoms = me.hashUtilsCls.intHash(structAtoms, ic.dAtoms);
61323
+ ic.hAtoms = me.hashUtilsCls.cloneHash(ic.dAtoms);
61324
+ }
61340
61325
  }
61341
61326
  }
61342
61327
 
@@ -62863,6 +62848,7 @@ class Dssp {
62863
62848
 
62864
62849
  // open sequence view
62865
62850
  ic.hAtomsRefnum = {};
62851
+ ic.bResetAnno = true;
62866
62852
  await ic.showAnnoCls.showAnnotations();
62867
62853
  ic.annotationCls.setAnnoViewAndDisplay('detailed view');
62868
62854
  }
@@ -63163,6 +63149,7 @@ if(!me.bNode) {
63163
63149
 
63164
63150
  // open sequence view
63165
63151
  ic.hAtomsRefnum = {};
63152
+ ic.bResetAnno = true;
63166
63153
  await ic.showAnnoCls.showAnnotations();
63167
63154
  ic.annotationCls.setAnnoViewAndDisplay('detailed view');
63168
63155
  }
@@ -63441,10 +63428,12 @@ console.log("free energy: " + energy + " kcal/mol");
63441
63428
  if(struct == pdbid + '2') { // mutant
63442
63429
  let residWt = pdbid + resid.substr(resid.indexOf('_'));
63443
63430
  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;
63431
+ if(atomWt) {
63432
+ for(let i in ic.residues[resid]) {
63433
+ ic.atoms[i].ss = atomWt.ss;
63434
+ ic.atoms[i].ssbegin = atomWt.ssbegin;
63435
+ ic.atoms[i].ssend = atomWt.ssend;
63436
+ }
63448
63437
  }
63449
63438
  }
63450
63439
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icn3d",
3
- "version": "3.24.4",
3
+ "version": "3.24.6",
4
4
  "main": "./icn3d.js",
5
5
  "exports": {
6
6
  ".": {