icn3d 3.31.7 → 3.31.8

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
@@ -41834,6 +41834,7 @@ class AnnoIg {
41834
41834
  ic.chain2igArray[chnid] = [];
41835
41835
  this.setChain2igArray(chnid, giSeq, bCustom);
41836
41836
 
41837
+
41837
41838
  // remove Igs without BCEF strands one more time
41838
41839
  let igArray = ic.chain2igArray[chnid];
41839
41840
 
@@ -41906,6 +41907,7 @@ class AnnoIg {
41906
41907
  }
41907
41908
  }
41908
41909
 
41910
+
41909
41911
  // reset ic.chain2igArray
41910
41912
  ic.chain2igArray[chnid] = [];
41911
41913
  this.setChain2igArray(chnid, giSeq, bCustom);
@@ -45323,7 +45325,8 @@ class AddTrack {
45323
45325
  }
45324
45326
 
45325
45327
  getExonHtml(exonIndex, colorGradient, from, to, genomeRange, chainid, simpTitle) { let ic = this.icn3d; ic.icn3dui;
45326
- return '<div style="display:inline-block; color:white!important; width:' + Math.round(ic.seqAnnWidth *(to - from + 1) /(ic.maxAnnoLength + ic.nTotalGap)) + 'px;" class="icn3d-seqTitle icn3d-link icn3d-blue" domain="' + (exonIndex + 1) + '" from="' + from + '" to="' + to + '" setname="' + simpTitle + ', Exon ' + (exonIndex + 1) + '" title="Exon ' + (exonIndex + 1) + ': ' + genomeRange + ' genomic interval" anno="sequence" chain="' + chainid + '"><div style="height: 12px; border: 1px solid #000; background: linear-gradient(to right, ' + colorGradient + ');"></div></div>';
45328
+ // return '<div style="display:inline-block; color:white!important; width:' + Math.round(ic.seqAnnWidth *(to - from + 1) /(ic.maxAnnoLength + ic.nTotalGap)) + 'px;" class="icn3d-seqTitle icn3d-link icn3d-blue" domain="' + (exonIndex + 1) + '" from="' + from + '" to="' + to + '" setname="' + simpTitle + ', Exon ' + (exonIndex + 1) + '" title="Exon ' + (exonIndex + 1) + ': ' + genomeRange + ' genomic interval" anno="sequence" chain="' + chainid + '"><div style="height: 12px; border: 1px solid #000; background: linear-gradient(to right, ' + colorGradient + ');"></div></div>';
45329
+ return '<div style="display:inline-block; color:white!important; width:' + Math.round(ic.seqAnnWidth *(to - from + 1) /(ic.maxAnnoLength + ic.nTotalGap)) + 'px;" class="icn3d-seqTitle icn3d-link icn3d-blue" domain="' + (exonIndex + 1) + '" from="' + from + '" to="' + to + '" setname="' + simpTitle + ', #' + (exonIndex + 1) + '" title="Exon: ' + genomeRange + ' genomic interval" anno="sequence" chain="' + chainid + '"><div style="height: 12px; border: 1px solid #000; background: linear-gradient(to right, ' + colorGradient + ');"></div></div>';
45327
45330
  }
45328
45331
 
45329
45332
  getExonColor(start, end, pos) { let ic = this.icn3d; ic.icn3dui;
@@ -52530,7 +52533,7 @@ class ContactMap {
52530
52533
  let color2 = rHex + gHex + bHex;
52531
52534
 
52532
52535
  if(bLink) linkStr += ', ';
52533
- linkStr += '{"source": "' + idStr + postA + '", "target": "' + idStr2 + postB + '", "v": 11, "c": "' + color2 + '"}\n';
52536
+ linkStr += '{"source": "' + idStr + postA + '", "target": "' + idStr2 + postB + '", "v": 11, "c": "' + color2 + '", "pae": ' + parseInt(distMatrix[i][j]) + '}\n';
52534
52537
  bLink = true;
52535
52538
  }
52536
52539
  }
@@ -56149,10 +56152,12 @@ class BcifParser {
56149
56152
  let conf_type_idArray = struct_conf.getColumn("conf_type_id");
56150
56153
 
56151
56154
  let chain1Array = struct_conf.getColumn("beg_auth_asym_id");
56152
- let resi1Array = struct_conf.getColumn("beg_label_seq_id");
56155
+ // let resi1Array = struct_conf.getColumn("beg_label_seq_id");
56156
+ let resi1Array = struct_conf.getColumn("beg_auth_seq_id");
56153
56157
 
56154
56158
  let chain2Array = struct_conf.getColumn("end_auth_asym_id");
56155
- let resi2Array = struct_conf.getColumn("end_label_seq_id");
56159
+ // let resi2Array = struct_conf.getColumn("end_label_seq_id");
56160
+ let resi2Array = struct_conf.getColumn("end_auth_seq_id");
56156
56161
 
56157
56162
  // Iterate through every row in the struct_conf category table, where each row delineates an interatomic connection
56158
56163
  let confSize = struct_conf.rowCount;
@@ -56197,10 +56202,12 @@ class BcifParser {
56197
56202
  let struct_sheet_range = block.getCategory("_struct_sheet_range");
56198
56203
 
56199
56204
  let chain1Array = struct_sheet_range.getColumn("beg_auth_asym_id");
56200
- let resi1Array = struct_sheet_range.getColumn("beg_label_seq_id");
56205
+ // let resi1Array = struct_sheet_range.getColumn("beg_label_seq_id");
56206
+ let resi1Array = struct_sheet_range.getColumn("beg_auth_seq_id");
56201
56207
 
56202
56208
  let chain2Array = struct_sheet_range.getColumn("end_auth_asym_id");
56203
- let resi2Array = struct_sheet_range.getColumn("end_label_seq_id");
56209
+ // let resi2Array = struct_sheet_range.getColumn("end_label_seq_id");
56210
+ let resi2Array = struct_sheet_range.getColumn("end_auth_seq_id");
56204
56211
 
56205
56212
  // Iterate through every row in the struct_sheet_range category table, where each row delineates an interatomic connection
56206
56213
  let sheetSize = struct_sheet_range.rowCount;
@@ -59705,9 +59712,13 @@ class ParserUtils {
59705
59712
 
59706
59713
  for(let i = 0, il = ic.realignResid[chainid_t].length; i < il && i < ic.realignResid[chainid_q].length; ++i) {
59707
59714
  let resid_t = ic.realignResid[chainid_t][i].resid;
59715
+ if(!resid_t) continue;
59716
+
59708
59717
  let pos_t = resid_t.lastIndexOf('_');
59709
59718
  let resi_t = parseInt(resid_t.substr(pos_t + 1));
59710
59719
  let resid_q = ic.realignResid[chainid_q][i].resid;
59720
+ if(!resid_q) continue;
59721
+
59711
59722
  let pos_q = resid_q.lastIndexOf('_');
59712
59723
  let resi_q = parseInt(resid_q.substr(pos_q + 1));
59713
59724
 
@@ -63720,10 +63731,12 @@ class LoadCIF {
63720
63731
  let conf_type_idArray = struct_conf.getColumn("conf_type_id");
63721
63732
 
63722
63733
  let chain1Array = struct_conf.getColumn("beg_auth_asym_id");
63723
- let resi1Array = struct_conf.getColumn("beg_label_seq_id");
63734
+ // let resi1Array = struct_conf.getColumn("beg_label_seq_id");
63735
+ let resi1Array = struct_conf.getColumn("beg_auth_seq_id");
63724
63736
 
63725
63737
  struct_conf.getColumn("end_auth_asym_id");
63726
- let resi2Array = struct_conf.getColumn("end_label_seq_id");
63738
+ // let resi2Array = struct_conf.getColumn("end_label_seq_id");
63739
+ let resi2Array = struct_conf.getColumn("end_auth_seq_id");
63727
63740
 
63728
63741
  // Iterate through every row in the struct_conf category table, where each row delineates an interatomic connection
63729
63742
  let confSize = struct_conf.rowCount;
@@ -63762,10 +63775,12 @@ class LoadCIF {
63762
63775
  let struct_sheet_range = block.getCategory("_struct_sheet_range");
63763
63776
 
63764
63777
  let chain1Array = struct_sheet_range.getColumn("beg_auth_asym_id");
63765
- let resi1Array = struct_sheet_range.getColumn("beg_label_seq_id");
63778
+ // let resi1Array = struct_sheet_range.getColumn("beg_label_seq_id");
63779
+ let resi1Array = struct_sheet_range.getColumn("beg_auth_seq_id");
63766
63780
 
63767
63781
  struct_sheet_range.getColumn("end_auth_asym_id");
63768
- let resi2Array = struct_sheet_range.getColumn("end_label_seq_id");
63782
+ // let resi2Array = struct_sheet_range.getColumn("end_label_seq_id");
63783
+ let resi2Array = struct_sheet_range.getColumn("end_auth_seq_id");
63769
63784
 
63770
63785
  // Iterate through every row in the struct_sheet_range category table, where each row delineates an interatomic connection
63771
63786
  let sheetSize = struct_sheet_range.rowCount;
@@ -63773,7 +63788,7 @@ class LoadCIF {
63773
63788
  let startChain = chain1Array.getString(i);
63774
63789
  let startResi = parseInt(resi1Array.getString(i));
63775
63790
  let endResi = parseInt(resi2Array.getString(i));
63776
-
63791
+
63777
63792
  for(let j = startResi; j <= endResi; ++j) {
63778
63793
  let resid = structure + "_" + startChain + "_" + j;
63779
63794
  sheetArray.push(resid);
@@ -71804,12 +71819,13 @@ class Dssp {
71804
71819
  // if(!(bBstrand && bCstrand && bEstrand && bFstrand)) {
71805
71820
  if(!me.bNode && !(bBstrand && bCstrand && bEstrand && bFstrand)) console.log("Some of the Ig strands B, C, E, F are missing in the domain " + domainid + "...");
71806
71821
  if(!me.bNode && !(bBSheet && bCSheet && bESheet && bFSheet)) console.log("Some of the Ig strands B, C, E, F are not beta sheets...");
71807
- // if(!me.bNode && (BCnt < 3 || CCnt < 3 || ECnt < 3 || FCnt < 3)) console.log("Some of the Ig strands B, C, E, F are missing in the domain " + domainid + "...");
71822
+
71808
71823
  if(ic.domainid2refpdbname[domainid][0] == refpdbname) {
71809
71824
  delete ic.domainid2refpdbname[domainid];
71810
71825
  delete ic.domainid2score[domainid];
71811
71826
  }
71812
- continue; }
71827
+ continue;
71828
+ }
71813
71829
  // }
71814
71830
 
71815
71831
  }
@@ -81210,7 +81226,7 @@ class iCn3DUI {
81210
81226
  //even when multiple iCn3D viewers are shown together.
81211
81227
  this.pre = this.cfg.divid + "_";
81212
81228
 
81213
- this.REVISION = '3.31.1';
81229
+ this.REVISION = '3.31.2';
81214
81230
 
81215
81231
  // In nodejs, iCn3D defines "window = {navigator: {}}"
81216
81232
  this.bNode = (Object.keys(window).length < 2) ? true : false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icn3d",
3
- "version": "3.31.7",
3
+ "version": "3.31.8",
4
4
  "main": "./icn3d.js",
5
5
  "exports": {
6
6
  ".": {