icn3d 3.54.4 → 3.54.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
@@ -82719,7 +82719,7 @@ class Axes {
82719
82719
 
82720
82720
  buildUnitcell() { let ic = this.icn3d, me = ic.icn3dui;
82721
82721
  if(!ic.cell) {
82722
- var aaa = 1; //alert("Unit cell information is available for structures from mmCIF files. Please load a structure from mmCIF file.");
82722
+ var aaa = 1; //alert("Unit cell information is available for structures from mmCIF files. Please load a structure with 'mmcifid=', 'bcifid=', or from a mmCIF file.");
82723
82723
  return;
82724
82724
  }
82725
82725
 
@@ -116669,7 +116669,8 @@ class ShowAnno {
116669
116669
  }
116670
116670
 
116671
116671
  let nucleotide_chainid = {}, chemical_chainid = {}, chemical_set = {};
116672
- //ic.protein_chainid = {};
116672
+ // ic.protein_chainid = {};
116673
+
116673
116674
 
116674
116675
  if(ic.bAnnoShown === undefined || !ic.bAnnoShown || ic.bResetAnno) { // ic.bResetAnno when loading another structure
116675
116676
  ic.protein_chainid = {};
@@ -116696,7 +116697,7 @@ class ShowAnno {
116696
116697
  dialogWidth =(me.cfg.notebook) ? me.htmlCls.WIDTH / 2 : $("#" + ic.pre + "dl_selectannotations").dialog( "option", "width" );
116697
116698
  }
116698
116699
  ic.seqAnnWidth = dialogWidth - 120 - 30*2 - 50; // title: 120px, start and end resi: 30px, extra space on the left and right: 50px
116699
-
116700
+
116700
116701
  for(let i = 0, il = chainArray.length; i < il; ++i) {
116701
116702
  if(!ic.chainsSeq[chainArray[i]]) continue; // skip empty chain
116702
116703
 
@@ -116806,8 +116807,8 @@ class ShowAnno {
116806
116807
 
116807
116808
  await ic.mmcifParserCls.downloadMmcifSymmetry(id, 'mmtfid');
116808
116809
  }
116809
-
116810
- await this.showAnnoSeqData(nucleotide_chainid, chemical_chainid, chemical_set);
116810
+
116811
+ await this.showAnnoSeqData(nucleotide_chainid, chemical_chainid, chemical_set);
116811
116812
  }
116812
116813
  }
116813
116814
  else if(me.cfg.blast_rep_id !== undefined && !ic.bSmithwm && !ic.bLocalSmithwm) { // align sequence to structure
@@ -135648,6 +135649,7 @@ class LoadCIF {
135648
135649
  let sChain = {};
135649
135650
  let prevModelNum = '';
135650
135651
  if(!ic.molid2chain) ic.molid2chain = {};
135652
+
135651
135653
  for (let i = 0; i < atomSize; ++i) {
135652
135654
  let modelNum = modelNumArray.getString(i);
135653
135655
  if(i > 0 && modelNum != prevModelNum) {
@@ -135878,7 +135880,7 @@ class LoadCIF {
135878
135880
  // if(oriResidueNum !== prevOriResidueNum) {
135879
135881
  if(oriResidueNum !== prevOriResidueNum || chain + "_" + resn != prevResn || prevAutochain != autochain) {
135880
135882
  let residue = me.utilsCls.residueName2Abbr(resn);
135881
-
135883
+
135882
135884
  ic.residueId2Name[residueNum] = residue;
135883
135885
 
135884
135886
  if(serial !== 1 && prevResidueNum !== '') {
@@ -136003,7 +136005,7 @@ class LoadCIF {
136003
136005
 
136004
136006
  resiArray = oriResiArray = resnArray = chainArray = [];
136005
136007
  }
136006
-
136008
+
136007
136009
  this.setSeq(structure, sChain, mChainSeq, ligSeqHash);
136008
136010
  }
136009
136011
 
@@ -136205,17 +136207,22 @@ class LoadCIF {
136205
136207
  }
136206
136208
 
136207
136209
  setSeq(structure, sChain, mChainSeq, ligSeqHash) { let ic = this.icn3d; ic.icn3dui;
136210
+ // sometimes a chain appears in both ligSeqHash and mChainSeq, e.g., mmcif data for 1TOP
136211
+ /*
136208
136212
  for(let chain in sChain) {
136209
136213
  let chainNum = structure + '_' + chain;
136210
136214
 
136211
- if(ligSeqHash.hasOwnProperty(chain)) {
136215
+ if(mChainSeq.hasOwnProperty(chain)) {
136216
+ ic.chainsSeq[chainNum] = mChainSeq[chain];
136217
+ }
136218
+ else if(ligSeqHash.hasOwnProperty(chain)) {
136212
136219
  ic.chainsSeq[chainNum] = ligSeqHash[chain];
136213
136220
  }
136214
136221
  else {
136215
136222
  ic.chainsSeq[chainNum] = mChainSeq[chain];
136216
136223
  }
136217
136224
  }
136218
-
136225
+ */
136219
136226
  ic.loadPDBCls.setResidMapping();
136220
136227
  }
136221
136228
  }
@@ -137156,9 +137163,11 @@ class ApplyCommand {
137156
137163
  }
137157
137164
  else if(command == 'set unitcell on') {
137158
137165
  ic.opts['unitcell'] = 'yes';
137166
+ ic.drawCls.draw();
137159
137167
  }
137160
137168
  else if(command == 'set unitcell off') {
137161
137169
  ic.opts['unitcell'] = 'no';
137170
+ ic.drawCls.draw();
137162
137171
  }
137163
137172
  else if(command == 'set fog on') {
137164
137173
  ic.opts['fog'] = 'yes';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icn3d",
3
- "version": "3.54.4",
3
+ "version": "3.54.5",
4
4
  "main": "./icn3d.js",
5
5
  "exports": {
6
6
  ".": {