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.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>";
@@ -35390,7 +35390,6 @@ class SetOption {
35390
35390
  }
35391
35391
 
35392
35392
  showColorLegend(colorType) { let ic = this.icn3d, me = ic.icn3dui;
35393
- let bClose = false;
35394
35393
 
35395
35394
  let colorLabel = colorType.substr(0, 1).toUpperCase() + colorType.substr(1);
35396
35395
  if(colorType == 'confidence') {
@@ -35502,7 +35501,6 @@ class SetOption {
35502
35501
  }
35503
35502
  else {
35504
35503
  html = '';
35505
- bClose = true;
35506
35504
  }
35507
35505
 
35508
35506
  if(html) {
@@ -35510,9 +35508,9 @@ class SetOption {
35510
35508
  me.htmlCls.dialogCls.openDlg('dl_legend', 'Color Legend');
35511
35509
  }
35512
35510
 
35513
- if(bClose) {
35514
- if(window.dialog && window.dialog.hasClass('ui-dialog-content')) window.dialog.dialog( "close" );
35515
- }
35511
+ // if(bClose) {
35512
+ // if(window.dialog && window.dialog.hasClass('ui-dialog-content')) window.dialog.dialog( "close" );
35513
+ // }
35516
35514
  }
35517
35515
 
35518
35516
  getColorLegendForElem(category, atomHash) { let ic = this.icn3d, me = ic.icn3dui;
@@ -42194,24 +42192,7 @@ class ShowSeq {
42194
42192
  }
42195
42193
  }
42196
42194
  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
- }
42195
+ html += '<span></span>';
42215
42196
  }
42216
42197
  //}
42217
42198
 
@@ -42238,13 +42219,13 @@ class ShowSeq {
42238
42219
 
42239
42220
  let html = '';
42240
42221
 
42241
- if(lastTwo == 50 && !bLoop) {
42222
+ if(refnumLabel && lastTwo == 50 && !bLoop) {
42242
42223
  // highlight the anchor residues
42243
42224
  ic.hAtomsRefnum = me.hashUtilsCls.unionHash(ic.hAtomsRefnum, ic.residues[residueid]);
42244
42225
 
42245
42226
  html += '<span ' + colorStr + ' title="' + refnumLabel + '"><b>' + refnumLabel.substr(0, 1) + '</b>' + refnumLabel.substr(1) + '</span>';
42246
42227
  }
42247
- else if(lastTwo % 2 == 0 && lastTwo != 52 && !bHidelabel) { // don't show label for the first, middle, and last loop residues
42228
+ else if(refnumLabel && lastTwo % 2 == 0 && lastTwo != 52 && !bHidelabel) { // don't show label for the first, middle, and last loop residues
42248
42229
  // e.g., 2152a
42249
42230
  let lastTwoStr = isNaN(refnumStr) ? lastTwo + refnumStr.substr(refnumStr.length - 1, 1) : lastTwo;
42250
42231
  html += '<span ' + colorStr + ' title="' + refnumLabel + '">' + lastTwoStr + '</span>';
@@ -57115,7 +57096,9 @@ class ApplyCommand {
57115
57096
  let msa;
57116
57097
  if(paraArray.length >= 7) msa = paraArray[6].substr(4);
57117
57098
 
57118
- $("#" + ic.pre + "anno_custom")[0].checked = true;
57099
+ if($("#" + ic.pre + "anno_custom")[0]) {
57100
+ $("#" + ic.pre + "anno_custom")[0].checked = true;
57101
+ }
57119
57102
  $("[id^=" + ic.pre + "custom]").show();
57120
57103
 
57121
57104
  if(color == '0') color = undefined;
@@ -60426,16 +60409,18 @@ class Selection {
60426
60409
  if(me.cfg.bSidebyside && structureArray.length == 2) {
60427
60410
  let dividArray = Object.keys(window.icn3duiHash);
60428
60411
  let pos = dividArray.indexOf(ic.divid);
60429
-
60430
60412
  let structure = structureArray[pos];
60431
60413
  let chainArray = ic.structures[structure];
60414
+
60432
60415
  let structAtoms = {};
60433
- for(let i = 0, il = chainArray.length; i < il; ++i) {
60434
- structAtoms = me.hashUtilsCls.unionHash(structAtoms, ic.chains[chainArray[i]]);
60435
- }
60416
+ if(chainArray) {
60417
+ for(let i = 0, il = chainArray.length; i < il; ++i) {
60418
+ structAtoms = me.hashUtilsCls.unionHash(structAtoms, ic.chains[chainArray[i]]);
60419
+ }
60436
60420
 
60437
- ic.dAtoms = me.hashUtilsCls.intHash(structAtoms, ic.dAtoms);
60438
- ic.hAtoms = me.hashUtilsCls.cloneHash(ic.dAtoms);
60421
+ ic.dAtoms = me.hashUtilsCls.intHash(structAtoms, ic.dAtoms);
60422
+ ic.hAtoms = me.hashUtilsCls.cloneHash(ic.dAtoms);
60423
+ }
60439
60424
  }
60440
60425
  }
60441
60426
 
@@ -61962,6 +61947,7 @@ class Dssp {
61962
61947
 
61963
61948
  // open sequence view
61964
61949
  ic.hAtomsRefnum = {};
61950
+ ic.bResetAnno = true;
61965
61951
  await ic.showAnnoCls.showAnnotations();
61966
61952
  ic.annotationCls.setAnnoViewAndDisplay('detailed view');
61967
61953
  }
@@ -62262,6 +62248,7 @@ if(!me.bNode) {
62262
62248
 
62263
62249
  // open sequence view
62264
62250
  ic.hAtomsRefnum = {};
62251
+ ic.bResetAnno = true;
62265
62252
  await ic.showAnnoCls.showAnnotations();
62266
62253
  ic.annotationCls.setAnnoViewAndDisplay('detailed view');
62267
62254
  }
@@ -62540,10 +62527,12 @@ console.log("free energy: " + energy + " kcal/mol");
62540
62527
  if(struct == pdbid + '2') { // mutant
62541
62528
  let residWt = pdbid + resid.substr(resid.indexOf('_'));
62542
62529
  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;
62530
+ if(atomWt) {
62531
+ for(let i in ic.residues[resid]) {
62532
+ ic.atoms[i].ss = atomWt.ss;
62533
+ ic.atoms[i].ssbegin = atomWt.ssbegin;
62534
+ ic.atoms[i].ssend = atomWt.ssend;
62535
+ }
62547
62536
  }
62548
62537
  }
62549
62538
  }