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.module.js
CHANGED
|
@@ -42072,7 +42072,7 @@ class AnnoIg {
|
|
|
42072
42072
|
|
|
42073
42073
|
let igType = (parseFloat(tmscore) < ic.refnumCls.TMThreshold ) ? 'Ig' : ic.ref2igtype[info.refpdbname];
|
|
42074
42074
|
titleArray.push(igType + ' (TM:' + parseFloat(tmscore).toFixed(2) + ')');
|
|
42075
|
-
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);
|
|
42075
|
+
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);
|
|
42076
42076
|
|
|
42077
42077
|
domainArray.push(igType);
|
|
42078
42078
|
|
|
@@ -71795,7 +71795,7 @@ class Dssp {
|
|
|
71795
71795
|
delete ic.domainid2refpdbname[domainid];
|
|
71796
71796
|
delete ic.domainid2score[domainid];
|
|
71797
71797
|
}
|
|
71798
|
-
|
|
71798
|
+
continue;
|
|
71799
71799
|
}
|
|
71800
71800
|
// }
|
|
71801
71801
|
|
|
@@ -72016,10 +72016,12 @@ class Dssp {
|
|
|
72016
72016
|
|
|
72017
72017
|
if(refpdbname) {
|
|
72018
72018
|
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 + ".";
|
|
72019
|
+
|
|
72019
72020
|
if(!me.bNode) {
|
|
72020
72021
|
console.log(message);
|
|
72021
72022
|
me.htmlCls.clickMenuCls.setLogCmd(message, false, true);
|
|
72022
72023
|
}
|
|
72024
|
+
|
|
72023
72025
|
// ic.refPdbList.push(message);
|
|
72024
72026
|
ic.domainid2info[domainid] = {'refpdbname': refpdbname, 'score': score, 'seqid': seqid, 'nresAlign': nresAlign};
|
|
72025
72027
|
}
|
|
@@ -72223,7 +72225,7 @@ class Dssp {
|
|
|
72223
72225
|
// loops may have numbers such as 1310, 1410
|
|
72224
72226
|
|
|
72225
72227
|
let strand;
|
|
72226
|
-
|
|
72228
|
+
/*
|
|
72227
72229
|
if(refnum < 1000) strand = undefined;
|
|
72228
72230
|
else if(refnum >= 1200 && refnum < 1290) strand = "A---";
|
|
72229
72231
|
else if(refnum >= 1320 && refnum < 1390) strand = "A--";
|
|
@@ -72246,6 +72248,34 @@ class Dssp {
|
|
|
72246
72248
|
else if(refnum >= 9720 && refnum < 9790) strand = "G++";
|
|
72247
72249
|
else if(refnum > 9900) strand = undefined;
|
|
72248
72250
|
else strand = " ";
|
|
72251
|
+
*/
|
|
72252
|
+
|
|
72253
|
+
// cover all ranges
|
|
72254
|
+
if(refnum < 1000) strand = undefined;
|
|
72255
|
+
else if(refnum >= 1200 && refnum < 1320) strand = "A---";
|
|
72256
|
+
else if(refnum >= 1320 && refnum < 1420) strand = "A--";
|
|
72257
|
+
else if(refnum >= 1420 && refnum < 1520) strand = "A-";
|
|
72258
|
+
else if(refnum >= 1520 && refnum < 1620) strand = "A";
|
|
72259
|
+
else if(refnum >= 1620 && refnum < 1720) strand = "A+";
|
|
72260
|
+
else if(refnum >= 1720 && refnum < 1820) strand = "A++";
|
|
72261
|
+
else if(refnum >= 1820 && refnum < 2000) strand = "A'";
|
|
72262
|
+
else if(refnum >= 2000 && refnum < 3000) strand = "B";
|
|
72263
|
+
else if(refnum >= 3000 && refnum < 3420) strand = "C--";
|
|
72264
|
+
else if(refnum >= 3420 && refnum < 3520) strand = "C-";
|
|
72265
|
+
else if(refnum >= 3520 && refnum < 4000) strand = "C";
|
|
72266
|
+
else if(refnum >= 4000 && refnum < 5000) strand = "C'";
|
|
72267
|
+
else if(refnum >= 5000 && refnum < 6000) strand = "C''";
|
|
72268
|
+
else if(refnum >= 6000 && refnum < 7000) strand = "D";
|
|
72269
|
+
else if(refnum >= 7000 && refnum < 7620) strand = "E";
|
|
72270
|
+
else if(refnum >= 7620 && refnum < 8000) strand = "E+";
|
|
72271
|
+
else if(refnum >= 8000 && refnum < 9000) strand = "F";
|
|
72272
|
+
else if(refnum >= 9000 && refnum < 9620) strand = "G";
|
|
72273
|
+
else if(refnum >= 9620 && refnum < 9720) strand = "G+";
|
|
72274
|
+
else if(refnum >= 9720 && refnum < 9820) strand = "G++";
|
|
72275
|
+
else if(refnum >= 9820 && refnum < 9900) strand = "G+++";
|
|
72276
|
+
else if(refnum > 9900) strand = undefined;
|
|
72277
|
+
else strand = " ";
|
|
72278
|
+
|
|
72249
72279
|
if(prevStrand) strand = prevStrand;
|
|
72250
72280
|
|
|
72251
72281
|
return strand
|
|
@@ -72567,7 +72597,7 @@ class Dssp {
|
|
|
72567
72597
|
refnum3c = (refnum - parseInt(refnum/1000) * 1000).toString();
|
|
72568
72598
|
refnum2c = (refnum - parseInt(refnum/100) * 100).toString();
|
|
72569
72599
|
|
|
72570
|
-
// for extended strands, since A is 1550 and A+ is 1650, then the AA+ loop will be 1591, 1592, ...
|
|
72600
|
+
// for extended strands, since A is 1550 and A+ is 1650, then the AA+ loop will be 1591, 1592, ... 1618, 1619, etc
|
|
72571
72601
|
bSecThird9 = refnum3c.substr(0,1) == '9' || refnum2c.substr(0,1) == '9' || refnum2c.substr(0,1) == '0' || refnum2c.substr(0,1) == '1';
|
|
72572
72602
|
if(bSecThird9) ic.residIgLoop[residueid] = 1;
|
|
72573
72603
|
|
|
@@ -72713,6 +72743,7 @@ class Dssp {
|
|
|
72713
72743
|
let domainid = ic.resid2domainid[currResid];
|
|
72714
72744
|
if(currAtom.ssbegin) { // find the start of the sheet
|
|
72715
72745
|
// update the following: startResi,startRefnum,endResi,endRefnum,loopResCnt,resCntBfAnchor,resCntAtAnchor
|
|
72746
|
+
let oriStartRefnum = strandArray[i].startRefnum;
|
|
72716
72747
|
strandArray[i].startResi = currResi;
|
|
72717
72748
|
strandArray[i].startRefnum -= j;
|
|
72718
72749
|
strandArray[i].loopResCnt -= j;
|
|
@@ -72725,6 +72756,8 @@ class Dssp {
|
|
|
72725
72756
|
currResi = ic.ParserUtilsCls.getResi(chnid, currPos);
|
|
72726
72757
|
let currResid = chnid + '_' + currResi;
|
|
72727
72758
|
delete ic.residIgLoop[currResid];
|
|
72759
|
+
ic.resid2refnum[currResid] = strandArray[i].strand + (oriStartRefnum - k).toString();
|
|
72760
|
+
|
|
72728
72761
|
ic.resid2domainid[currResid] = domainid;
|
|
72729
72762
|
ic.resid2refnum_ori[currResid] = 1; // a hash to check which residues were assigned
|
|
72730
72763
|
}
|
|
@@ -72745,6 +72778,7 @@ class Dssp {
|
|
|
72745
72778
|
let domainid = ic.resid2domainid[currResid];
|
|
72746
72779
|
if(currAtom.ssend) { // find the end of the sheet
|
|
72747
72780
|
// update the following: startResi,startRefnum,endResi,endRefnum,loopResCnt,resCntBfAnchor,resCntAtAnchor
|
|
72781
|
+
let oriEndRefnum = strandArray[i].endRefnum;
|
|
72748
72782
|
strandArray[i].endResi = currResi;
|
|
72749
72783
|
strandArray[i].endRefnum += j;
|
|
72750
72784
|
if(i < il - 1) {
|
|
@@ -72759,6 +72793,8 @@ class Dssp {
|
|
|
72759
72793
|
currResi = ic.ParserUtilsCls.getResi(chnid, currPos);
|
|
72760
72794
|
let currResid = chnid + '_' + currResi;
|
|
72761
72795
|
delete ic.residIgLoop[currResid];
|
|
72796
|
+
ic.resid2refnum[currResid] = strandArray[i].strand + (oriEndRefnum + k).toString();
|
|
72797
|
+
|
|
72762
72798
|
ic.resid2domainid[currResid] = domainid;
|
|
72763
72799
|
ic.resid2refnum_ori[currResid] = 1; // a hash to check which residues were assigned
|
|
72764
72800
|
}
|