icn3d 3.29.8 → 3.29.9

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
@@ -39078,6 +39078,8 @@ class AnnoIg {
39078
39078
 
39079
39079
  igElem.endPos = prevPos;
39080
39080
  ic.chain2igArray[chnid].push(igElem);
39081
+
39082
+ if(me.bNode) return {html: '', html2: '', html3: ''};
39081
39083
  let titleSpace = 120;
39082
39084
 
39083
39085
  let linkStr = 'icn3d-link icn3d-blue';
@@ -39134,10 +39136,13 @@ class AnnoIg {
39134
39136
  html += '</div>';
39135
39137
 
39136
39138
  let igArray = ic.chain2igArray[chnid];
39139
+ if(igArray.length == 0) return {html: '', html2: '', html3: ''};
39137
39140
  let rangeArray = [], titleArray = [], fullTitleArray = [], domainArray = [];
39138
39141
  for(let i = 0, il = igArray.length; i < il; ++i) {
39139
39142
  let domainid = igArray[i].domainid;
39140
39143
  let info = ic.domainid2info[domainid];
39144
+ if(!info) continue;
39145
+
39141
39146
  let tmscore = info.score;
39142
39147
  let igType = ic.ref2igtype[info.refpdbname];
39143
39148
  titleArray.push(igType + ' (TM:' + parseFloat(tmscore).toFixed(2) + ')');
@@ -39148,6 +39153,7 @@ class AnnoIg {
39148
39153
  range.locs = [{"from":igArray[i].startPos, "to":igArray[i].endPos}];
39149
39154
  rangeArray.push(range);
39150
39155
  }
39156
+ if(titleArray.length == 0) return {html: '', html2: '', html3: ''};
39151
39157
 
39152
39158
  // add tracks for the summary view
39153
39159
  for(let i = 0, il = fromArray.length; i < il; ++i) {
@@ -67825,7 +67831,7 @@ class Dssp {
67825
67831
  if(type == 'igstrand' || type == 'IgStrand') {
67826
67832
  // iGStrand reference numbers were adjusted when showing in sequences
67827
67833
  if(me.bNode) {
67828
- for(let chnid in ic.chains) {
67834
+ for(let chnid in ic.chains) {
67829
67835
  let atom = ic.firstAtomObjCls.getFirstAtomObj(ic.chains[chnid]);
67830
67836
  if(ic.proteins.hasOwnProperty(atom.serial)) {
67831
67837
  let giSeq = [];
@@ -67889,21 +67895,22 @@ class Dssp {
67889
67895
  refData += '}\n';
67890
67896
  }
67891
67897
  */
67898
+
67892
67899
  if(bIgDomain) {
67893
67900
  refData += '"igs": [\n';
67894
-
67895
67901
  for(let chnid in ic.chains) {
67896
67902
  let igArray = ic.chain2igArray[chnid];
67897
67903
 
67898
- if(igArray.length > 0) {
67904
+ if(igArray && igArray.length > 0) {
67899
67905
  refData += '{"' + chnid + '": {\n';
67900
67906
 
67901
67907
  for(let i = 0, il = igArray.length; i < il; ++i) {
67902
67908
  let startPos = igArray[i].startPos;
67903
67909
  let endPos = igArray[i].endPos;
67904
67910
  let domainid = igArray[i].domainid;
67905
-
67906
67911
  let info = ic.domainid2info[domainid];
67912
+ if(!info) continue;
67913
+
67907
67914
  refData += '"' + domainid + '": {\n';
67908
67915
 
67909
67916
  refData += '"refpdbname":"' + info.refpdbname + '", "score":' + info.score + ', "seqid":' + info.seqid + ', "nresAlign":' + info.nresAlign + ', "data": [';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icn3d",
3
- "version": "3.29.8",
3
+ "version": "3.29.9",
4
4
  "main": "./icn3d.js",
5
5
  "exports": {
6
6
  ".": {