icn3d 3.31.3 → 3.31.4
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 +40 -4
- package/icn3d.min.js +2 -2
- package/icn3d.module.js +40 -4
- package/package.json +1 -1
package/icn3d.js
CHANGED
|
@@ -41171,7 +41171,7 @@ class AnnoIg {
|
|
|
41171
41171
|
|
|
41172
41172
|
let igType = (parseFloat(tmscore) < ic.refnumCls.TMThreshold ) ? 'Ig' : ic.ref2igtype[info.refpdbname];
|
|
41173
41173
|
titleArray.push(igType + ' (TM:' + parseFloat(tmscore).toFixed(2) + ')');
|
|
41174
|
-
fullTitleArray.push(igType + ' (TM:' + parseFloat(tmscore).toFixed(2) + '), template: ' + info.refpdbname + ', type: ' + ic.ref2igtype[info.refpdbname] + ' Seq. identity: ' + parseFloat(info.seqid).toFixed(2) + ', aligned residues: ' + info.nresAlign);
|
|
41174
|
+
fullTitleArray.push(igType + ' (TM:' + parseFloat(tmscore).toFixed(2) + '), template: ' + info.refpdbname + ', type: ' + ic.ref2igtype[info.refpdbname] + ', Seq. identity: ' + parseFloat(info.seqid).toFixed(2) + ', aligned residues: ' + info.nresAlign);
|
|
41175
41175
|
|
|
41176
41176
|
domainArray.push(igType);
|
|
41177
41177
|
|
|
@@ -70894,7 +70894,7 @@ class Dssp {
|
|
|
70894
70894
|
delete ic.domainid2refpdbname[domainid];
|
|
70895
70895
|
delete ic.domainid2score[domainid];
|
|
70896
70896
|
}
|
|
70897
|
-
|
|
70897
|
+
continue;
|
|
70898
70898
|
}
|
|
70899
70899
|
// }
|
|
70900
70900
|
|
|
@@ -71115,10 +71115,12 @@ class Dssp {
|
|
|
71115
71115
|
|
|
71116
71116
|
if(refpdbname) {
|
|
71117
71117
|
let message = "The reference PDB for domain " + domainid + " is " + refpdbname + ". The TM-score is " + score + ". The sequence identity is " + seqid + ". The number of aligned residues is " + nresAlign + ".";
|
|
71118
|
+
|
|
71118
71119
|
if(!me.bNode) {
|
|
71119
71120
|
console.log(message);
|
|
71120
71121
|
me.htmlCls.clickMenuCls.setLogCmd(message, false, true);
|
|
71121
71122
|
}
|
|
71123
|
+
|
|
71122
71124
|
// ic.refPdbList.push(message);
|
|
71123
71125
|
ic.domainid2info[domainid] = {'refpdbname': refpdbname, 'score': score, 'seqid': seqid, 'nresAlign': nresAlign};
|
|
71124
71126
|
}
|
|
@@ -71322,7 +71324,7 @@ class Dssp {
|
|
|
71322
71324
|
// loops may have numbers such as 1310, 1410
|
|
71323
71325
|
|
|
71324
71326
|
let strand;
|
|
71325
|
-
|
|
71327
|
+
/*
|
|
71326
71328
|
if(refnum < 1000) strand = undefined;
|
|
71327
71329
|
else if(refnum >= 1200 && refnum < 1290) strand = "A---";
|
|
71328
71330
|
else if(refnum >= 1320 && refnum < 1390) strand = "A--";
|
|
@@ -71345,6 +71347,34 @@ class Dssp {
|
|
|
71345
71347
|
else if(refnum >= 9720 && refnum < 9790) strand = "G++";
|
|
71346
71348
|
else if(refnum > 9900) strand = undefined;
|
|
71347
71349
|
else strand = " ";
|
|
71350
|
+
*/
|
|
71351
|
+
|
|
71352
|
+
// cover all ranges
|
|
71353
|
+
if(refnum < 1000) strand = undefined;
|
|
71354
|
+
else if(refnum >= 1200 && refnum < 1320) strand = "A---";
|
|
71355
|
+
else if(refnum >= 1320 && refnum < 1420) strand = "A--";
|
|
71356
|
+
else if(refnum >= 1420 && refnum < 1520) strand = "A-";
|
|
71357
|
+
else if(refnum >= 1520 && refnum < 1620) strand = "A";
|
|
71358
|
+
else if(refnum >= 1620 && refnum < 1720) strand = "A+";
|
|
71359
|
+
else if(refnum >= 1720 && refnum < 1820) strand = "A++";
|
|
71360
|
+
else if(refnum >= 1820 && refnum < 2000) strand = "A'";
|
|
71361
|
+
else if(refnum >= 2000 && refnum < 3000) strand = "B";
|
|
71362
|
+
else if(refnum >= 3000 && refnum < 3420) strand = "C--";
|
|
71363
|
+
else if(refnum >= 3420 && refnum < 3520) strand = "C-";
|
|
71364
|
+
else if(refnum >= 3520 && refnum < 4000) strand = "C";
|
|
71365
|
+
else if(refnum >= 4000 && refnum < 5000) strand = "C'";
|
|
71366
|
+
else if(refnum >= 5000 && refnum < 6000) strand = "C''";
|
|
71367
|
+
else if(refnum >= 6000 && refnum < 7000) strand = "D";
|
|
71368
|
+
else if(refnum >= 7000 && refnum < 7620) strand = "E";
|
|
71369
|
+
else if(refnum >= 7620 && refnum < 8000) strand = "E+";
|
|
71370
|
+
else if(refnum >= 8000 && refnum < 9000) strand = "F";
|
|
71371
|
+
else if(refnum >= 9000 && refnum < 9620) strand = "G";
|
|
71372
|
+
else if(refnum >= 9620 && refnum < 9720) strand = "G+";
|
|
71373
|
+
else if(refnum >= 9720 && refnum < 9820) strand = "G++";
|
|
71374
|
+
else if(refnum >= 9820 && refnum < 9900) strand = "G+++";
|
|
71375
|
+
else if(refnum > 9900) strand = undefined;
|
|
71376
|
+
else strand = " ";
|
|
71377
|
+
|
|
71348
71378
|
if(prevStrand) strand = prevStrand;
|
|
71349
71379
|
|
|
71350
71380
|
return strand
|
|
@@ -71666,7 +71696,7 @@ class Dssp {
|
|
|
71666
71696
|
refnum3c = (refnum - parseInt(refnum/1000) * 1000).toString();
|
|
71667
71697
|
refnum2c = (refnum - parseInt(refnum/100) * 100).toString();
|
|
71668
71698
|
|
|
71669
|
-
// for extended strands, since A is 1550 and A+ is 1650, then the AA+ loop will be 1591, 1592, ...
|
|
71699
|
+
// for extended strands, since A is 1550 and A+ is 1650, then the AA+ loop will be 1591, 1592, ... 1618, 1619, etc
|
|
71670
71700
|
bSecThird9 = refnum3c.substr(0,1) == '9' || refnum2c.substr(0,1) == '9' || refnum2c.substr(0,1) == '0' || refnum2c.substr(0,1) == '1';
|
|
71671
71701
|
if(bSecThird9) ic.residIgLoop[residueid] = 1;
|
|
71672
71702
|
|
|
@@ -71812,6 +71842,7 @@ class Dssp {
|
|
|
71812
71842
|
let domainid = ic.resid2domainid[currResid];
|
|
71813
71843
|
if(currAtom.ssbegin) { // find the start of the sheet
|
|
71814
71844
|
// update the following: startResi,startRefnum,endResi,endRefnum,loopResCnt,resCntBfAnchor,resCntAtAnchor
|
|
71845
|
+
let oriStartRefnum = strandArray[i].startRefnum;
|
|
71815
71846
|
strandArray[i].startResi = currResi;
|
|
71816
71847
|
strandArray[i].startRefnum -= j;
|
|
71817
71848
|
strandArray[i].loopResCnt -= j;
|
|
@@ -71824,6 +71855,8 @@ class Dssp {
|
|
|
71824
71855
|
currResi = ic.ParserUtilsCls.getResi(chnid, currPos);
|
|
71825
71856
|
let currResid = chnid + '_' + currResi;
|
|
71826
71857
|
delete ic.residIgLoop[currResid];
|
|
71858
|
+
ic.resid2refnum[currResid] = strandArray[i].strand + (oriStartRefnum - k).toString();
|
|
71859
|
+
|
|
71827
71860
|
ic.resid2domainid[currResid] = domainid;
|
|
71828
71861
|
ic.resid2refnum_ori[currResid] = 1; // a hash to check which residues were assigned
|
|
71829
71862
|
}
|
|
@@ -71844,6 +71877,7 @@ class Dssp {
|
|
|
71844
71877
|
let domainid = ic.resid2domainid[currResid];
|
|
71845
71878
|
if(currAtom.ssend) { // find the end of the sheet
|
|
71846
71879
|
// update the following: startResi,startRefnum,endResi,endRefnum,loopResCnt,resCntBfAnchor,resCntAtAnchor
|
|
71880
|
+
let oriEndRefnum = strandArray[i].endRefnum;
|
|
71847
71881
|
strandArray[i].endResi = currResi;
|
|
71848
71882
|
strandArray[i].endRefnum += j;
|
|
71849
71883
|
if(i < il - 1) {
|
|
@@ -71858,6 +71892,8 @@ class Dssp {
|
|
|
71858
71892
|
currResi = ic.ParserUtilsCls.getResi(chnid, currPos);
|
|
71859
71893
|
let currResid = chnid + '_' + currResi;
|
|
71860
71894
|
delete ic.residIgLoop[currResid];
|
|
71895
|
+
ic.resid2refnum[currResid] = strandArray[i].strand + (oriEndRefnum + k).toString();
|
|
71896
|
+
|
|
71861
71897
|
ic.resid2domainid[currResid] = domainid;
|
|
71862
71898
|
ic.resid2refnum_ori[currResid] = 1; // a hash to check which residues were assigned
|
|
71863
71899
|
}
|