icn3d 3.29.12 → 3.29.13

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
@@ -37828,7 +37828,13 @@ class AnnoIg {
37828
37828
 
37829
37829
  // 2. remove strands with less than 3 residues except G strand
37830
37830
  for(let il = strandArray.length, i = il - 1; i >= 0; --i) {
37831
- if(strandArray[i].strand.substr(0, 1) != 'G' && strandArray[i].endRefnum - strandArray[i].startRefnum + 1 < 3) { // remove the strand
37831
+ let strandTmp = strandArray[i].strand.substr(0, 1);
37832
+ if(strandTmp != 'G' && strandArray[i].endRefnum - strandArray[i].startRefnum + 1 < 3) { // remove the strand
37833
+ if(strandTmp == 'B' || strandTmp == 'C' || strandTmp == 'E' || strandTmp == 'F') {
37834
+ if(!me.bNode) console.log("Some of the Ig strands B, C, E, F are missing...");
37835
+ return {html: '', html2: '', html3: ''};
37836
+ }
37837
+
37832
37838
  if(i != il - 1) { // modify
37833
37839
  strandArray[i + 1].loopResCnt += strandArray[i].loopResCnt + parseInt(strandArray[i].endResi) - parseInt(strandArray[i].startResi) + 1;
37834
37840
  }
@@ -66539,7 +66545,6 @@ class Dssp {
66539
66545
  if(!bRound1 && queryData[0].segs) {
66540
66546
  let bBstrand = false, bCstrand = false, bEstrand = false, bFstrand = false;
66541
66547
  let bBSheet = true, bCSheet = true, bESheet = true, bFSheet = true;
66542
- let BCnt = 0, CCnt = 0, ECnt = 0, FCnt = 0;
66543
66548
  let chainid = domainid.split(',')[0];
66544
66549
 
66545
66550
  for(let j = 0, jl = queryData[0].segs.length; j < jl; ++j) {
@@ -66552,37 +66557,32 @@ class Dssp {
66552
66557
  bBstrand = true;
66553
66558
  let atom = ic.firstAtomObjCls.getFirstAtomObj(ic.residues[resid]);
66554
66559
  if(atom.ss == 'helix') bBSheet = false;
66555
- ++BCnt;
66556
66560
  }
66557
66561
  else if(q_start > 3540 && q_start < 3560) {
66558
66562
  bCstrand = true;
66559
66563
  let atom = ic.firstAtomObjCls.getFirstAtomObj(ic.residues[resid]);
66560
66564
  if(atom.ss == 'helix') bCSheet = false;
66561
- ++CCnt;
66562
66565
  }
66563
66566
  else if(q_start > 7540 && q_start < 7560) {
66564
66567
  bEstrand = true;
66565
66568
  let atom = ic.firstAtomObjCls.getFirstAtomObj(ic.residues[resid]);
66566
66569
  if(atom.ss == 'helix') bESheet = false;
66567
- ++ECnt;
66568
66570
  }
66569
66571
  else if(q_start > 8540 && q_start < 8560) {
66570
66572
  bFstrand = true;
66571
66573
  let atom = ic.firstAtomObjCls.getFirstAtomObj(ic.residues[resid]);
66572
66574
  if(atom.ss == 'helix') bFSheet = false;
66573
- ++FCnt;
66574
66575
  }
66575
66576
 
66576
66577
  //if(bBstrand && bCstrand && bEstrand && bFstrand && bGstrand) break;
66577
66578
  if(bBstrand && bCstrand && bEstrand && bFstrand) break;
66578
66579
  }
66579
-
66580
- if(!(bBstrand && bCstrand && bEstrand && bFstrand) || !(bBSheet && bCSheet && bESheet && bFSheet)
66581
- || BCnt < 3 || CCnt < 3 || ECnt < 3 || FCnt < 3) {
66580
+
66581
+ if(!(bBstrand && bCstrand && bEstrand && bFstrand) || !(bBSheet && bCSheet && bESheet && bFSheet)) {
66582
66582
  // if(!(bBstrand && bCstrand && bEstrand && bFstrand)) {
66583
66583
  if(!me.bNode && !(bBstrand && bCstrand && bEstrand && bFstrand)) console.log("Some of the Ig strands B, C, E, F are missing in the domain " + domainid + "...");
66584
66584
  if(!me.bNode && !(bBSheet && bCSheet && bESheet && bFSheet)) console.log("Some of the Ig strands B, C, E, F are not beta sheets...");
66585
- 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 + "...");
66585
+ // 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 + "...");
66586
66586
  if(ic.domainid2refpdbname[domainid] == refpdbname) {
66587
66587
  delete ic.domainid2refpdbname[domainid];
66588
66588
  delete ic.domainid2score[domainid];