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 +10 -10
- package/icn3d.min.js +2 -2
- package/icn3d.module.js +10 -10
- package/package.json +1 -1
package/icn3d.module.js
CHANGED
|
@@ -38729,7 +38729,13 @@ class AnnoIg {
|
|
|
38729
38729
|
|
|
38730
38730
|
// 2. remove strands with less than 3 residues except G strand
|
|
38731
38731
|
for(let il = strandArray.length, i = il - 1; i >= 0; --i) {
|
|
38732
|
-
|
|
38732
|
+
let strandTmp = strandArray[i].strand.substr(0, 1);
|
|
38733
|
+
if(strandTmp != 'G' && strandArray[i].endRefnum - strandArray[i].startRefnum + 1 < 3) { // remove the strand
|
|
38734
|
+
if(strandTmp == 'B' || strandTmp == 'C' || strandTmp == 'E' || strandTmp == 'F') {
|
|
38735
|
+
if(!me.bNode) console.log("Some of the Ig strands B, C, E, F are missing...");
|
|
38736
|
+
return {html: '', html2: '', html3: ''};
|
|
38737
|
+
}
|
|
38738
|
+
|
|
38733
38739
|
if(i != il - 1) { // modify
|
|
38734
38740
|
strandArray[i + 1].loopResCnt += strandArray[i].loopResCnt + parseInt(strandArray[i].endResi) - parseInt(strandArray[i].startResi) + 1;
|
|
38735
38741
|
}
|
|
@@ -67440,7 +67446,6 @@ class Dssp {
|
|
|
67440
67446
|
if(!bRound1 && queryData[0].segs) {
|
|
67441
67447
|
let bBstrand = false, bCstrand = false, bEstrand = false, bFstrand = false;
|
|
67442
67448
|
let bBSheet = true, bCSheet = true, bESheet = true, bFSheet = true;
|
|
67443
|
-
let BCnt = 0, CCnt = 0, ECnt = 0, FCnt = 0;
|
|
67444
67449
|
let chainid = domainid.split(',')[0];
|
|
67445
67450
|
|
|
67446
67451
|
for(let j = 0, jl = queryData[0].segs.length; j < jl; ++j) {
|
|
@@ -67453,37 +67458,32 @@ class Dssp {
|
|
|
67453
67458
|
bBstrand = true;
|
|
67454
67459
|
let atom = ic.firstAtomObjCls.getFirstAtomObj(ic.residues[resid]);
|
|
67455
67460
|
if(atom.ss == 'helix') bBSheet = false;
|
|
67456
|
-
++BCnt;
|
|
67457
67461
|
}
|
|
67458
67462
|
else if(q_start > 3540 && q_start < 3560) {
|
|
67459
67463
|
bCstrand = true;
|
|
67460
67464
|
let atom = ic.firstAtomObjCls.getFirstAtomObj(ic.residues[resid]);
|
|
67461
67465
|
if(atom.ss == 'helix') bCSheet = false;
|
|
67462
|
-
++CCnt;
|
|
67463
67466
|
}
|
|
67464
67467
|
else if(q_start > 7540 && q_start < 7560) {
|
|
67465
67468
|
bEstrand = true;
|
|
67466
67469
|
let atom = ic.firstAtomObjCls.getFirstAtomObj(ic.residues[resid]);
|
|
67467
67470
|
if(atom.ss == 'helix') bESheet = false;
|
|
67468
|
-
++ECnt;
|
|
67469
67471
|
}
|
|
67470
67472
|
else if(q_start > 8540 && q_start < 8560) {
|
|
67471
67473
|
bFstrand = true;
|
|
67472
67474
|
let atom = ic.firstAtomObjCls.getFirstAtomObj(ic.residues[resid]);
|
|
67473
67475
|
if(atom.ss == 'helix') bFSheet = false;
|
|
67474
|
-
++FCnt;
|
|
67475
67476
|
}
|
|
67476
67477
|
|
|
67477
67478
|
//if(bBstrand && bCstrand && bEstrand && bFstrand && bGstrand) break;
|
|
67478
67479
|
if(bBstrand && bCstrand && bEstrand && bFstrand) break;
|
|
67479
67480
|
}
|
|
67480
|
-
|
|
67481
|
-
if(!(bBstrand && bCstrand && bEstrand && bFstrand) || !(bBSheet && bCSheet && bESheet && bFSheet)
|
|
67482
|
-
|| BCnt < 3 || CCnt < 3 || ECnt < 3 || FCnt < 3) {
|
|
67481
|
+
|
|
67482
|
+
if(!(bBstrand && bCstrand && bEstrand && bFstrand) || !(bBSheet && bCSheet && bESheet && bFSheet)) {
|
|
67483
67483
|
// if(!(bBstrand && bCstrand && bEstrand && bFstrand)) {
|
|
67484
67484
|
if(!me.bNode && !(bBstrand && bCstrand && bEstrand && bFstrand)) console.log("Some of the Ig strands B, C, E, F are missing in the domain " + domainid + "...");
|
|
67485
67485
|
if(!me.bNode && !(bBSheet && bCSheet && bESheet && bFSheet)) console.log("Some of the Ig strands B, C, E, F are not beta sheets...");
|
|
67486
|
-
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 + "...");
|
|
67486
|
+
// 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 + "...");
|
|
67487
67487
|
if(ic.domainid2refpdbname[domainid] == refpdbname) {
|
|
67488
67488
|
delete ic.domainid2refpdbname[domainid];
|
|
67489
67489
|
delete ic.domainid2score[domainid];
|