icn3d 3.25.18 → 3.25.20
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 -21
- package/icn3d.min.js +2 -2
- package/icn3d.module.js +40 -21
- package/package.json +1 -1
package/icn3d.module.js
CHANGED
|
@@ -42867,17 +42867,7 @@ class ShowSeq {
|
|
|
42867
42867
|
html3 += '</div></div>';
|
|
42868
42868
|
}
|
|
42869
42869
|
else if(ic.bShowRefnum && ic.chainid2refpdbname.hasOwnProperty(chnid)) {
|
|
42870
|
-
let result = this.
|
|
42871
|
-
html += result.html;
|
|
42872
|
-
html3 += result.html3;
|
|
42873
|
-
|
|
42874
|
-
let kabat_or_imgt = 1;
|
|
42875
|
-
result = this.showRefNum(giSeq, chnid, kabat_or_imgt);
|
|
42876
|
-
html += result.html;
|
|
42877
|
-
html3 += result.html3;
|
|
42878
|
-
|
|
42879
|
-
kabat_or_imgt = 2;
|
|
42880
|
-
result = this.showRefNum(giSeq, chnid, kabat_or_imgt);
|
|
42870
|
+
let result = this.showAllRefNum(giSeq, chnid);
|
|
42881
42871
|
html += result.html;
|
|
42882
42872
|
html3 += result.html3;
|
|
42883
42873
|
}
|
|
@@ -42905,7 +42895,27 @@ class ShowSeq {
|
|
|
42905
42895
|
$("#" + ic.pre + 'tt_giseq_' + chnid).html(html3); // fixed title for scrolling
|
|
42906
42896
|
}
|
|
42907
42897
|
|
|
42908
|
-
|
|
42898
|
+
showAllRefNum(giSeq, chnid) { let ic = this.icn3d; ic.icn3dui;
|
|
42899
|
+
let html = '', html3 = '';
|
|
42900
|
+
|
|
42901
|
+
let result = this.showRefNum(giSeq, chnid);
|
|
42902
|
+
html += result.html;
|
|
42903
|
+
html3 += result.html3;
|
|
42904
|
+
|
|
42905
|
+
let kabat_or_imgt = 1;
|
|
42906
|
+
result = this.showRefNum(giSeq, chnid, kabat_or_imgt);
|
|
42907
|
+
html += result.html;
|
|
42908
|
+
html3 += result.html3;
|
|
42909
|
+
|
|
42910
|
+
kabat_or_imgt = 2;
|
|
42911
|
+
result = this.showRefNum(giSeq, chnid, kabat_or_imgt);
|
|
42912
|
+
html += result.html;
|
|
42913
|
+
html3 += result.html3;
|
|
42914
|
+
|
|
42915
|
+
return {'html': html, 'html3': html3};
|
|
42916
|
+
}
|
|
42917
|
+
|
|
42918
|
+
showRefNum(giSeq, chnid, kabat_or_imgt, bCustom) { let ic = this.icn3d, me = ic.icn3dui;
|
|
42909
42919
|
let html = '', html3 = '';
|
|
42910
42920
|
|
|
42911
42921
|
let chainList = '';
|
|
@@ -42937,11 +42947,12 @@ class ShowSeq {
|
|
|
42937
42947
|
|
|
42938
42948
|
//check if Kabat refnum available
|
|
42939
42949
|
let bKabatFound = false;
|
|
42950
|
+
|
|
42940
42951
|
for(let i = 0, il = giSeq.length; i < il; ++i) {
|
|
42941
42952
|
let currResi = ic.ParserUtilsCls.getResi(chnid, i);
|
|
42942
42953
|
let residueid = chnid + '_' + currResi;
|
|
42943
42954
|
let domainid = (bCustom) ? 0 : ic.resid2domainid[residueid];
|
|
42944
|
-
|
|
42955
|
+
|
|
42945
42956
|
if(ic.domainid2ig2kabat[domainid] && Object.keys(ic.domainid2ig2kabat[domainid]).length > 0) {
|
|
42946
42957
|
bKabatFound = true;
|
|
42947
42958
|
break;
|
|
@@ -42974,7 +42985,7 @@ class ShowSeq {
|
|
|
42974
42985
|
// sometimes one chain may have several Ig domains,set an index for each IgDomain
|
|
42975
42986
|
let index = 1, bStart = false;
|
|
42976
42987
|
|
|
42977
|
-
if(!bCustom && !kabat_or_imgt) {
|
|
42988
|
+
if(!bCustom && !kabat_or_imgt && !me.bNode) { // domnot overwrite loop in node
|
|
42978
42989
|
// reset ic.residIgLoop for the current selection, which could be the second round of ref num assignment
|
|
42979
42990
|
let residHash = ic.firstAtomObjCls.getResiduesFromAtoms(ic.hAtoms);
|
|
42980
42991
|
for(let resid in residHash) {
|
|
@@ -63437,8 +63448,8 @@ class Dssp {
|
|
|
63437
63448
|
|
|
63438
63449
|
let urltmalign = me.htmlCls.baseUrl + "tmalign/tmalign.cgi";
|
|
63439
63450
|
|
|
63440
|
-
|
|
63441
|
-
ic.resid2domainid = {};
|
|
63451
|
+
if(!ic.resid2domainid) ic.resid2domainid = {};
|
|
63452
|
+
//ic.resid2domainid = {};
|
|
63442
63453
|
ic.domainid2pdb = {};
|
|
63443
63454
|
|
|
63444
63455
|
let minResidues = 20;
|
|
@@ -63472,8 +63483,8 @@ class Dssp {
|
|
|
63472
63483
|
let residueArray = ic.resid2specCls.atoms2residues(Object.keys(currAtoms));
|
|
63473
63484
|
for(let n = 0, nl = residueArray.length; n < nl; ++n) {
|
|
63474
63485
|
let resid = residueArray[n];
|
|
63475
|
-
ic.resid2domainid[resid] = chainid + '-0';
|
|
63476
|
-
}
|
|
63486
|
+
ic.resid2domainid[resid] = chainid + '-0' + '_' + Object.keys(currAtoms).length;
|
|
63487
|
+
}
|
|
63477
63488
|
}
|
|
63478
63489
|
else {
|
|
63479
63490
|
for(let k = 0, kl = subdomains.length; k < kl; ++k) {
|
|
@@ -63484,15 +63495,23 @@ class Dssp {
|
|
|
63484
63495
|
let startResi = segArray[m];
|
|
63485
63496
|
let endResi = segArray[m+1];
|
|
63486
63497
|
for(let n = parseInt(startResi); n <= parseInt(endResi); ++n) {
|
|
63487
|
-
//let residNCBI = chainid + '_' + n;
|
|
63488
|
-
//let resid = ic.ncbi2resid[residNCBI];
|
|
63489
63498
|
let resid = chainid + '_' + pos2resi[n];
|
|
63490
63499
|
domainAtoms = me.hashUtilsCls.unionHash(domainAtoms, ic.residues[resid]);
|
|
63491
|
-
ic.resid2domainid[resid] = chainid + '-' + k;
|
|
63500
|
+
//ic.resid2domainid[resid] = chainid + '-' + k;
|
|
63492
63501
|
}
|
|
63493
63502
|
}
|
|
63494
63503
|
|
|
63495
63504
|
domainAtomsArray.push(domainAtoms);
|
|
63505
|
+
|
|
63506
|
+
for(let m = 0, ml = segArray.length; m < ml; m += 2) {
|
|
63507
|
+
let startResi = segArray[m];
|
|
63508
|
+
let endResi = segArray[m+1];
|
|
63509
|
+
for(let n = parseInt(startResi); n <= parseInt(endResi); ++n) {
|
|
63510
|
+
let resid = chainid + '_' + pos2resi[n];
|
|
63511
|
+
//domainAtoms = me.hashUtilsCls.unionHash(domainAtoms, ic.residues[resid]);
|
|
63512
|
+
ic.resid2domainid[resid] = chainid + '-' + k + '_' + Object.keys(domainAtoms).length;
|
|
63513
|
+
}
|
|
63514
|
+
}
|
|
63496
63515
|
}
|
|
63497
63516
|
}
|
|
63498
63517
|
|