icn3d 3.25.17 → 3.25.19
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 -23
- package/icn3d.min.js +2 -2
- package/icn3d.module.js +40 -23
- package/package.json +1 -1
package/icn3d.js
CHANGED
|
@@ -41966,17 +41966,7 @@ class ShowSeq {
|
|
|
41966
41966
|
html3 += '</div></div>';
|
|
41967
41967
|
}
|
|
41968
41968
|
else if(ic.bShowRefnum && ic.chainid2refpdbname.hasOwnProperty(chnid)) {
|
|
41969
|
-
let result = this.
|
|
41970
|
-
html += result.html;
|
|
41971
|
-
html3 += result.html3;
|
|
41972
|
-
|
|
41973
|
-
let kabat_or_imgt = 1;
|
|
41974
|
-
result = this.showRefNum(giSeq, chnid, kabat_or_imgt);
|
|
41975
|
-
html += result.html;
|
|
41976
|
-
html3 += result.html3;
|
|
41977
|
-
|
|
41978
|
-
kabat_or_imgt = 2;
|
|
41979
|
-
result = this.showRefNum(giSeq, chnid, kabat_or_imgt);
|
|
41969
|
+
let result = this.showAllRefNum(giSeq, chnid);
|
|
41980
41970
|
html += result.html;
|
|
41981
41971
|
html3 += result.html3;
|
|
41982
41972
|
}
|
|
@@ -42004,6 +41994,26 @@ class ShowSeq {
|
|
|
42004
41994
|
$("#" + ic.pre + 'tt_giseq_' + chnid).html(html3); // fixed title for scrolling
|
|
42005
41995
|
}
|
|
42006
41996
|
|
|
41997
|
+
showAllRefNum(giSeq, chnid) { let ic = this.icn3d; ic.icn3dui;
|
|
41998
|
+
let html = '', html3 = '';
|
|
41999
|
+
|
|
42000
|
+
let result = this.showRefNum(giSeq, chnid);
|
|
42001
|
+
html += result.html;
|
|
42002
|
+
html3 += result.html3;
|
|
42003
|
+
|
|
42004
|
+
let kabat_or_imgt = 1;
|
|
42005
|
+
result = this.showRefNum(giSeq, chnid, kabat_or_imgt);
|
|
42006
|
+
html += result.html;
|
|
42007
|
+
html3 += result.html3;
|
|
42008
|
+
|
|
42009
|
+
kabat_or_imgt = 2;
|
|
42010
|
+
result = this.showRefNum(giSeq, chnid, kabat_or_imgt);
|
|
42011
|
+
html += result.html;
|
|
42012
|
+
html3 += result.html3;
|
|
42013
|
+
|
|
42014
|
+
return {'html': html, 'html3': html3};
|
|
42015
|
+
}
|
|
42016
|
+
|
|
42007
42017
|
showRefNum(giSeq, chnid, kabat_or_imgt, bCustom) { let ic = this.icn3d; ic.icn3dui;
|
|
42008
42018
|
let html = '', html3 = '';
|
|
42009
42019
|
|
|
@@ -42036,11 +42046,12 @@ class ShowSeq {
|
|
|
42036
42046
|
|
|
42037
42047
|
//check if Kabat refnum available
|
|
42038
42048
|
let bKabatFound = false;
|
|
42049
|
+
|
|
42039
42050
|
for(let i = 0, il = giSeq.length; i < il; ++i) {
|
|
42040
42051
|
let currResi = ic.ParserUtilsCls.getResi(chnid, i);
|
|
42041
42052
|
let residueid = chnid + '_' + currResi;
|
|
42042
42053
|
let domainid = (bCustom) ? 0 : ic.resid2domainid[residueid];
|
|
42043
|
-
|
|
42054
|
+
|
|
42044
42055
|
if(ic.domainid2ig2kabat[domainid] && Object.keys(ic.domainid2ig2kabat[domainid]).length > 0) {
|
|
42045
42056
|
bKabatFound = true;
|
|
42046
42057
|
break;
|
|
@@ -42181,12 +42192,10 @@ class ShowSeq {
|
|
|
42181
42192
|
prevStrand = currStrand;
|
|
42182
42193
|
}
|
|
42183
42194
|
|
|
42184
|
-
// 2. remove strands with less than 3 residues
|
|
42195
|
+
// 2. remove strands with less than 3 residues except G strand
|
|
42185
42196
|
for(let il = strandArray.length, i = il - 1; i >= 0; --i) {
|
|
42186
|
-
if(strandArray[i].endRefnum - strandArray[i].startRefnum + 1 < 3) { // remove the strand
|
|
42197
|
+
if(strandArray[i].strand.substr(0, 1) != 'G' && strandArray[i].endRefnum - strandArray[i].startRefnum + 1 < 3) { // remove the strand
|
|
42187
42198
|
if(i != il - 1) { // modify
|
|
42188
|
-
// strandArray[i + 1].loopResCnt += strandArray[i].loopResCnt + strandArray[i].endRefnum - strandArray[i].startRefnum + 1;
|
|
42189
|
-
|
|
42190
42199
|
strandArray[i + 1].loopResCnt += strandArray[i].loopResCnt + parseInt(strandArray[i].endResi) - parseInt(strandArray[i].startResi) + 1;
|
|
42191
42200
|
}
|
|
42192
42201
|
|
|
@@ -62538,8 +62547,8 @@ class Dssp {
|
|
|
62538
62547
|
|
|
62539
62548
|
let urltmalign = me.htmlCls.baseUrl + "tmalign/tmalign.cgi";
|
|
62540
62549
|
|
|
62541
|
-
|
|
62542
|
-
ic.resid2domainid = {};
|
|
62550
|
+
if(!ic.resid2domainid) ic.resid2domainid = {};
|
|
62551
|
+
//ic.resid2domainid = {};
|
|
62543
62552
|
ic.domainid2pdb = {};
|
|
62544
62553
|
|
|
62545
62554
|
let minResidues = 20;
|
|
@@ -62573,8 +62582,8 @@ class Dssp {
|
|
|
62573
62582
|
let residueArray = ic.resid2specCls.atoms2residues(Object.keys(currAtoms));
|
|
62574
62583
|
for(let n = 0, nl = residueArray.length; n < nl; ++n) {
|
|
62575
62584
|
let resid = residueArray[n];
|
|
62576
|
-
ic.resid2domainid[resid] = chainid + '-0';
|
|
62577
|
-
}
|
|
62585
|
+
ic.resid2domainid[resid] = chainid + '-0' + '_' + Object.keys(currAtoms).length;
|
|
62586
|
+
}
|
|
62578
62587
|
}
|
|
62579
62588
|
else {
|
|
62580
62589
|
for(let k = 0, kl = subdomains.length; k < kl; ++k) {
|
|
@@ -62585,15 +62594,23 @@ class Dssp {
|
|
|
62585
62594
|
let startResi = segArray[m];
|
|
62586
62595
|
let endResi = segArray[m+1];
|
|
62587
62596
|
for(let n = parseInt(startResi); n <= parseInt(endResi); ++n) {
|
|
62588
|
-
//let residNCBI = chainid + '_' + n;
|
|
62589
|
-
//let resid = ic.ncbi2resid[residNCBI];
|
|
62590
62597
|
let resid = chainid + '_' + pos2resi[n];
|
|
62591
62598
|
domainAtoms = me.hashUtilsCls.unionHash(domainAtoms, ic.residues[resid]);
|
|
62592
|
-
ic.resid2domainid[resid] = chainid + '-' + k;
|
|
62599
|
+
//ic.resid2domainid[resid] = chainid + '-' + k;
|
|
62593
62600
|
}
|
|
62594
62601
|
}
|
|
62595
62602
|
|
|
62596
62603
|
domainAtomsArray.push(domainAtoms);
|
|
62604
|
+
|
|
62605
|
+
for(let m = 0, ml = segArray.length; m < ml; m += 2) {
|
|
62606
|
+
let startResi = segArray[m];
|
|
62607
|
+
let endResi = segArray[m+1];
|
|
62608
|
+
for(let n = parseInt(startResi); n <= parseInt(endResi); ++n) {
|
|
62609
|
+
let resid = chainid + '_' + pos2resi[n];
|
|
62610
|
+
//domainAtoms = me.hashUtilsCls.unionHash(domainAtoms, ic.residues[resid]);
|
|
62611
|
+
ic.resid2domainid[resid] = chainid + '-' + k + '_' + Object.keys(domainAtoms).length;
|
|
62612
|
+
}
|
|
62613
|
+
}
|
|
62597
62614
|
}
|
|
62598
62615
|
}
|
|
62599
62616
|
|