icn3d 3.25.9 → 3.25.11
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 +99 -62
- package/icn3d.min.js +3 -3
- package/icn3d.module.js +99 -62
- package/package.json +1 -1
package/icn3d.js
CHANGED
|
@@ -7309,14 +7309,14 @@ class ClickMenu {
|
|
|
7309
7309
|
thisClass.setLogCmd('ig refnum on', true);
|
|
7310
7310
|
await ic.refnumCls.showIgRefNum();
|
|
7311
7311
|
|
|
7312
|
-
if(ic.bShowRefnum) {
|
|
7313
|
-
|
|
7314
|
-
|
|
7312
|
+
// if(ic.bShowRefnum) {
|
|
7313
|
+
// ic.opts.color = 'ig strand';
|
|
7314
|
+
// ic.setColorCls.setColorByOptions(ic.opts, ic.atoms);
|
|
7315
7315
|
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
}
|
|
7316
|
+
// ic.selectionCls.selectAll_base();
|
|
7317
|
+
// ic.hlUpdateCls.updateHlAll();
|
|
7318
|
+
// ic.drawCls.draw();
|
|
7319
|
+
// }
|
|
7320
7320
|
});
|
|
7321
7321
|
|
|
7322
7322
|
me.myEventCls.onIds("#" + me.pre + "mn6_igrefNo", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
@@ -9396,8 +9396,8 @@ class SetMenu {
|
|
|
9396
9396
|
//}
|
|
9397
9397
|
|
|
9398
9398
|
//!!!
|
|
9399
|
-
//
|
|
9400
|
-
//
|
|
9399
|
+
//html += this.getRadio('mn4_clr', 'mn4_clrIgstrand', 'Ig Strand', undefined, undefined, 2);
|
|
9400
|
+
//html += this.getRadio('mn4_clr', 'mn4_clrIgproto', 'Ig Protodomain', undefined, undefined, 2);
|
|
9401
9401
|
}
|
|
9402
9402
|
else {
|
|
9403
9403
|
//if(!me.cfg.hidelicense) html += this.getRadio('mn4_clr', 'mn1_delphi2', 'DelPhi<br><span style="padding-left:1.5em;">Potential ' + me.htmlCls.licenseStr + '</span>');
|
|
@@ -32289,7 +32289,7 @@ class Alternate {
|
|
|
32289
32289
|
ic.impostorCls.clearImpostors();
|
|
32290
32290
|
|
|
32291
32291
|
// show membranes
|
|
32292
|
-
if(ic.bOpm) {
|
|
32292
|
+
if(ic.bOpm && !me.cfg.chainalign) {
|
|
32293
32293
|
//if(window.dialog && window.dialog.hasClass('ui-dialog-content')) window.dialog.dialog( "close" );
|
|
32294
32294
|
|
|
32295
32295
|
let html = me.utilsCls.getMemDesc();
|
|
@@ -34674,25 +34674,27 @@ class SetColor {
|
|
|
34674
34674
|
case 'ig strand':
|
|
34675
34675
|
if(ic.bShowRefnum) {
|
|
34676
34676
|
let color;
|
|
34677
|
-
|
|
34678
|
-
|
|
34677
|
+
let residueHash = ic.firstAtomObjCls.getResiduesFromAtoms(atoms);
|
|
34678
|
+
|
|
34679
|
+
for(let resid in residueHash) {
|
|
34680
|
+
if(!ic.resid2refnum[resid]) {
|
|
34679
34681
|
color = me.parasCls.thr('#FFFFFF');
|
|
34680
34682
|
}
|
|
34681
34683
|
else {
|
|
34682
34684
|
let refnumLabel = ic.resid2refnum[resid];
|
|
34683
34685
|
|
|
34684
|
-
if(!refnumLabel) {
|
|
34685
|
-
|
|
34686
|
-
}
|
|
34687
|
-
else {
|
|
34688
|
-
let refnumStr = refnumLabel.replace(/'/g, '').replace(/\*/g, '').replace(/\^/g, '').substr(1); // C', C''
|
|
34686
|
+
// if(!refnumLabel) {
|
|
34687
|
+
// color = me.parasCls.thr(me.htmlCls.GREYB);
|
|
34688
|
+
// }
|
|
34689
|
+
// else {
|
|
34690
|
+
let refnumStr = refnumLabel.replace(/'/g, '').replace(/\*/g, '').replace(/\^/g, '').replace(/\+/g, '').replace(/\-/g, '').substr(1); // C', C''
|
|
34689
34691
|
let currStrand = refnumLabel.replace(new RegExp(refnumStr,'g'), '');
|
|
34690
34692
|
color = ic.showSeqCls.getRefnumColor(currStrand);
|
|
34691
34693
|
|
|
34692
|
-
if(ic.residIgLoop.hasOwnProperty(resid)) {
|
|
34694
|
+
if(ic.residIgLoop.hasOwnProperty(resid)) {
|
|
34693
34695
|
color = me.parasCls.thr(me.htmlCls.GREYB);
|
|
34694
34696
|
}
|
|
34695
|
-
}
|
|
34697
|
+
// }
|
|
34696
34698
|
}
|
|
34697
34699
|
|
|
34698
34700
|
for (let i in ic.residues[resid]) {
|
|
@@ -34709,7 +34711,8 @@ class SetColor {
|
|
|
34709
34711
|
case 'ig protodomain':
|
|
34710
34712
|
if(ic.bShowRefnum) {
|
|
34711
34713
|
let color;
|
|
34712
|
-
|
|
34714
|
+
let residueHash = ic.firstAtomObjCls.getResiduesFromAtoms(atoms);
|
|
34715
|
+
for(let resid in residueHash) {
|
|
34713
34716
|
if(!ic.resid2refnum[resid]) {
|
|
34714
34717
|
color = me.parasCls.thr('#FFFFFF');
|
|
34715
34718
|
}
|
|
@@ -34720,7 +34723,7 @@ class SetColor {
|
|
|
34720
34723
|
color = me.parasCls.thr(me.htmlCls.GREYB);
|
|
34721
34724
|
}
|
|
34722
34725
|
else {
|
|
34723
|
-
let refnumStr = refnumLabel.replace(/'/g, '').replace(/\*/g, '').replace(/\^/g, '').substr(1); // C', C''
|
|
34726
|
+
let refnumStr = refnumLabel.replace(/'/g, '').replace(/\*/g, '').replace(/\^/g, '').replace(/\+/g, '').replace(/\-/g, '').substr(1); // C', C''
|
|
34724
34727
|
let currStrand = refnumLabel.replace(new RegExp(refnumStr,'g'), '');
|
|
34725
34728
|
color = ic.showSeqCls.getProtodomainColor(currStrand);
|
|
34726
34729
|
|
|
@@ -35662,9 +35665,9 @@ class SetOption {
|
|
|
35662
35665
|
let html = '';
|
|
35663
35666
|
|
|
35664
35667
|
const name2color = {
|
|
35665
|
-
//"A
|
|
35668
|
+
//"A- Strand": "FF00FF",
|
|
35666
35669
|
"A Strand": "663399",
|
|
35667
|
-
//"A
|
|
35670
|
+
//"A+ Strand": "663399", //"FFC0CB",
|
|
35668
35671
|
"A' Strand": "663399", //"9370db",
|
|
35669
35672
|
"B Strand": "ba55d3",
|
|
35670
35673
|
"C Strand": "0000FF",
|
|
@@ -35674,7 +35677,7 @@ class SetOption {
|
|
|
35674
35677
|
"E Strand": "FFFF00", //"F0E68C",
|
|
35675
35678
|
"F Strand": "FFA500",
|
|
35676
35679
|
"G Strand": "FF0000",
|
|
35677
|
-
//"G
|
|
35680
|
+
//"G+ Strand": "8B0000",
|
|
35678
35681
|
"Loop": "CCCCCC"
|
|
35679
35682
|
};
|
|
35680
35683
|
|
|
@@ -40852,10 +40855,12 @@ class ShowAnno {
|
|
|
40852
40855
|
|
|
40853
40856
|
if(ic.bShowRefnum) {
|
|
40854
40857
|
ic.opts.color = 'ig strand';
|
|
40855
|
-
ic.setColorCls.setColorByOptions(ic.opts, ic.atoms);
|
|
40858
|
+
//ic.setColorCls.setColorByOptions(ic.opts, ic.atoms);
|
|
40859
|
+
ic.setColorCls.setColorByOptions(ic.opts, ic.dAtoms);
|
|
40856
40860
|
|
|
40857
40861
|
ic.selectionCls.selectAll_base();
|
|
40858
40862
|
ic.hlUpdateCls.updateHlAll();
|
|
40863
|
+
//ic.drawCls.draw();
|
|
40859
40864
|
}
|
|
40860
40865
|
}
|
|
40861
40866
|
|
|
@@ -41357,6 +41362,10 @@ class ShowAnno {
|
|
|
41357
41362
|
}
|
|
41358
41363
|
}
|
|
41359
41364
|
getColorhexFromBlosum62(resA, resB) { let ic = this.icn3d, me = ic.icn3dui;
|
|
41365
|
+
let color = '333333';
|
|
41366
|
+
|
|
41367
|
+
if(!resA || !resB) return color;
|
|
41368
|
+
|
|
41360
41369
|
resA = resA.toUpperCase();
|
|
41361
41370
|
resB = resB.toUpperCase();
|
|
41362
41371
|
|
|
@@ -41366,7 +41375,7 @@ class ShowAnno {
|
|
|
41366
41375
|
if(matrixValue === undefined) return '333333';
|
|
41367
41376
|
// range and color: blue for -4 ~ 0, red for 0 ~ 11
|
|
41368
41377
|
// max value 221 to avoid white
|
|
41369
|
-
|
|
41378
|
+
|
|
41370
41379
|
if(matrixValue > 0) {
|
|
41371
41380
|
let c = 221 - parseInt(matrixValue / 11.0 * 221);
|
|
41372
41381
|
let cStr =(c < 10) ? '0' + c.toString(16) : c.toString(16);
|
|
@@ -41941,7 +41950,7 @@ class ShowSeq {
|
|
|
41941
41950
|
}
|
|
41942
41951
|
|
|
41943
41952
|
if(refnumLabel) {
|
|
41944
|
-
refnumStr_ori = refnumLabel.replace(/'/g, '').replace(/\*/g, '').replace(/\^/g, '').substr(1); // C', C''
|
|
41953
|
+
refnumStr_ori = refnumLabel.replace(/'/g, '').replace(/\*/g, '').replace(/\^/g, '').replace(/\+/g, '').replace(/\-/g, '').substr(1); // C', C''
|
|
41945
41954
|
currStrand = refnumLabel.replace(new RegExp(refnumStr_ori,'g'), '');
|
|
41946
41955
|
refnumStr_ori.substr(0, 1);
|
|
41947
41956
|
|
|
@@ -42024,7 +42033,9 @@ class ShowSeq {
|
|
|
42024
42033
|
for(let il = strandArray.length, i = il - 1; i >= 0; --i) {
|
|
42025
42034
|
if(strandArray[i].endRefnum - strandArray[i].startRefnum + 1 < 3) { // remove the strand
|
|
42026
42035
|
if(i != il - 1) { // modify
|
|
42027
|
-
strandArray[i + 1].loopResCnt += strandArray[i].loopResCnt + strandArray[i].endRefnum - strandArray[i].startRefnum + 1;
|
|
42036
|
+
// strandArray[i + 1].loopResCnt += strandArray[i].loopResCnt + strandArray[i].endRefnum - strandArray[i].startRefnum + 1;
|
|
42037
|
+
|
|
42038
|
+
strandArray[i + 1].loopResCnt += strandArray[i].loopResCnt + parseInt(strandArray[i].endResi) - parseInt(strandArray[i].startResi) + 1;
|
|
42028
42039
|
}
|
|
42029
42040
|
|
|
42030
42041
|
strandArray.splice(i, 1);
|
|
@@ -42047,7 +42058,7 @@ class ShowSeq {
|
|
|
42047
42058
|
currStrand = strandArray[strandCnt].strand;
|
|
42048
42059
|
|
|
42049
42060
|
if(refnumLabel) {
|
|
42050
|
-
refnumStr = refnumLabel.replace(/'/g, '').replace(/\*/g, '').replace(/\^/g, '').substr(1); // C', C''
|
|
42061
|
+
refnumStr = refnumLabel.replace(/'/g, '').replace(/\*/g, '').replace(/\^/g, '').replace(/\+/g, '').replace(/\-/g, '').substr(1); // C', C''
|
|
42051
42062
|
currRefnum = parseInt(refnumStr);
|
|
42052
42063
|
refnumLabelNoPostfix = currStrand + currRefnum;
|
|
42053
42064
|
|
|
@@ -42128,6 +42139,9 @@ class ShowSeq {
|
|
|
42128
42139
|
}
|
|
42129
42140
|
}
|
|
42130
42141
|
else if(parseInt(currResi) >= parseInt(strandArray[strandCnt].startResi) && parseInt(currResi) <= parseInt(strandArray[strandCnt].endResi)) {
|
|
42142
|
+
// not in loop any more if you assign ref numbers multiple times
|
|
42143
|
+
delete ic.residIgLoop[residueid];
|
|
42144
|
+
|
|
42131
42145
|
bBeforeAstrand = false;
|
|
42132
42146
|
|
|
42133
42147
|
if(strandArray[strandCnt].anchorRefnum) { // use anchor to name refnum
|
|
@@ -42216,7 +42230,7 @@ class ShowSeq {
|
|
|
42216
42230
|
let bHidelabel = false;
|
|
42217
42231
|
|
|
42218
42232
|
if(refnumLabel) {
|
|
42219
|
-
refnumStr_ori = refnumLabel.replace(/'/g, '').replace(/\*/g, '').replace(/\^/g, '').substr(1); // C', C''
|
|
42233
|
+
refnumStr_ori = refnumLabel.replace(/'/g, '').replace(/\*/g, '').replace(/\^/g, '').replace(/\+/g, '').replace(/\-/g, '').substr(1); // C', C''
|
|
42220
42234
|
currStrand = refnumLabel.replace(new RegExp(refnumStr_ori,'g'), '');
|
|
42221
42235
|
currStrand_ori = currStrand;
|
|
42222
42236
|
|
|
@@ -42329,15 +42343,14 @@ class ShowSeq {
|
|
|
42329
42343
|
}
|
|
42330
42344
|
|
|
42331
42345
|
getRefnumColor(currStrand, bText) { let ic = this.icn3d, me = ic.icn3dui;
|
|
42332
|
-
|
|
42333
|
-
|
|
42334
|
-
|
|
42335
|
-
|
|
42336
|
-
|
|
42337
|
-
if(currStrand == "A") {
|
|
42346
|
+
if(currStrand == "A-") {
|
|
42347
|
+
return '#663399';
|
|
42348
|
+
}
|
|
42349
|
+
else if(currStrand == "A") {
|
|
42338
42350
|
return '#663399';
|
|
42339
42351
|
}
|
|
42340
|
-
else if(currStrand == "A*") {
|
|
42352
|
+
//else if(currStrand == "A*") {
|
|
42353
|
+
else if(currStrand == "A+") {
|
|
42341
42354
|
return '#663399'; //'#FFC0CB';
|
|
42342
42355
|
}
|
|
42343
42356
|
else if(currStrand == "A'") {
|
|
@@ -42367,7 +42380,7 @@ class ShowSeq {
|
|
|
42367
42380
|
else if(currStrand == "G") {
|
|
42368
42381
|
return '#FF0000';
|
|
42369
42382
|
}
|
|
42370
|
-
else if(currStrand == "G
|
|
42383
|
+
else if(currStrand == "G+") {
|
|
42371
42384
|
return '#8B0000';
|
|
42372
42385
|
}
|
|
42373
42386
|
else {
|
|
@@ -47790,7 +47803,7 @@ class ChainalignParser {
|
|
|
47790
47803
|
// reset annotations
|
|
47791
47804
|
$("#" + ic.pre + "dl_annotations").html("");
|
|
47792
47805
|
ic.bAnnoShown = false;
|
|
47793
|
-
if($('#' + ic.pre + 'dl_selectannotations').dialog( 'isOpen' )) {
|
|
47806
|
+
if($('#' + me.pre + 'dl_selectannotations').hasClass('ui-dialog-content') && $('#' + ic.pre + 'dl_selectannotations').dialog( 'isOpen' )) {
|
|
47794
47807
|
$('#' + ic.pre + 'dl_selectannotations').dialog( 'close' );
|
|
47795
47808
|
}
|
|
47796
47809
|
//});
|
|
@@ -51851,7 +51864,7 @@ class ParserUtils {
|
|
|
51851
51864
|
if(rmsd) {
|
|
51852
51865
|
me.htmlCls.clickMenuCls.setLogCmd("realignment RMSD: " + rmsd.toPrecision(4), false);
|
|
51853
51866
|
let html = "<br><b>Realignment RMSD</b>: " + rmsd.toPrecision(4) + " Å<br><br>";
|
|
51854
|
-
if(ic.bAfMem) {
|
|
51867
|
+
if(ic.bAfMem && !me.cfg.chainalign) {
|
|
51855
51868
|
//if(window.dialog && window.dialog.hasClass('ui-dialog-content')) window.dialog.dialog( "close" );
|
|
51856
51869
|
html += me.utilsCls.getMemDesc();
|
|
51857
51870
|
}
|
|
@@ -62069,10 +62082,15 @@ class Dssp {
|
|
|
62069
62082
|
await thisClass.parseRefPdbData(ic.pdbDataArray);
|
|
62070
62083
|
}
|
|
62071
62084
|
else {
|
|
62072
|
-
//ic.refpdbArray = ['1bqu_fn3', '1cd8_igv', '1t6v_vnar', '1wio_c2', '1wio_igv', '2atp_a', '2atp_b', '2dm3_iset', '5esv_vh', '5esv_vl', '6al5_cd19', '7bz5_cl1', '7bz5_vh', '7bz5_vl'];
|
|
62073
62085
|
//ic.refpdbArray = ['1bqu_fn3', '1cd8_igv', '1cdh_cd4', '1dr9_cd80', '1hnf_cd2', '1hxm_d', '1hxm_g', '1ifr_lamin', '1ncn_cd86', '1t6v_vnar', '1yjd_cd28', '2atp_a', '2atp_b', '2dm3_iset', '3kys_tead1', '3pv7_ncr', '4f9l_cd277', '4gos_vtc', '4i0k_cd276', '4jqi_b', '4z18_cd274', '4zqk_pd1', '4zt1_e', '5esv_vh', '5esv_vl', '6al5_cd19', '6jxr_a', '6jxr_b', '6jxr_d', '6jxr_e', '6jxr_g', '6oil_vista', '6rp8_at', '6rp8_t', '6umt_cd273', '6x4g_cd275', '6x4g_icos', '7xq8_a', '7xq8_b', 'q71h61_ild', 'q9um44_hhl', 'p42081_cd86', 'q7z7d3_vtc', '1bqu_x', '1cdh_x', '1hnf_x', '1hxm_dx', '1hxm_gx', '4jqi_x', '4zt1_x', '5esv_vhx', '5esv_vlx', '6jxr_ax', '6jxr_bx', '1dr9_x', '3pv7_x', '4f9l_x', '4iok_x', '4z18_x', '6x4g_cd275x', 'q9um44_x'];
|
|
62074
62086
|
|
|
62075
|
-
ic.refpdbArray = ['1bqu_fn3', '1cd8_igv', '1cdh_cd4', '1dr9_cd80', '1hnf_cd2', '1hxm_d', '1hxm_g', '1ifr_lamin', '1ncn_cd86', '1t6v_vnar', '1yjd_cd28', '2atp_a', '2atp_b', '2dm3_iset', '3kys_tead1', '3pv7_ncr', '4f9l_cd277', '4gos_vtc', '4i0k_cd276', '4jqi_b', '4z18_cd274', '4zqk_pd1', '4zt1_e', '5esv_vh', '5esv_vl', '6al5_cd19', '6jxr_a', '6jxr_b', '6jxr_d', '6jxr_e', '6jxr_g', '6oil_vista', '6rp8_at', '6rp8_t', '6umt_cd273', '6x4g_cd275', '6x4g_icos', '7xq8_a', '7xq8_b', 'q71h61_ild', 'q9um44_hhl'];
|
|
62087
|
+
//ic.refpdbArray = ['1bqu_fn3', '1cd8_igv', '1cdh_cd4', '1dr9_cd80', '1hnf_cd2', '1hxm_d', '1hxm_g', '1ifr_lamin', '1ncn_cd86', '1t6v_vnar', '1yjd_cd28', '2atp_a', '2atp_b', '2dm3_iset', '3kys_tead1', '3pv7_ncr', '4f9l_cd277', '4gos_vtc', '4i0k_cd276', '4jqi_b', '4z18_cd274', '4zqk_pd1', '4zt1_e', '5esv_vh', '5esv_vl', '6al5_cd19', '6jxr_a', '6jxr_b', '6jxr_d', '6jxr_e', '6jxr_g', '6oil_vista', '6rp8_at', '6rp8_t', '6umt_cd273', '6x4g_cd275', '6x4g_icos', '7xq8_a', '7xq8_b', 'q71h61_ild', 'q9um44_hhl'];
|
|
62088
|
+
|
|
62089
|
+
//ic.refpdbArray = ['ASF1A_2iijA_human', 'BArrestin1_4jqiA_rat_n1', 'BTLA_2aw2A_human_Iset', 'C3_2qkiD_human_n1', 'CD19_6al5A_human_C2orV-n1', 'CD2_1hnfA_human_C2-n2', 'CD2_1hnfA_human_V-n1', 'CD8a_1cd8A_human_V', 'CoAtomerGamma1_1r4xA_human', 'Contactin1_3s97C_human_C2-n2', 'CuZnSuperoxideDismutase_1hl5C_human', 'ECadherin_4zt1A_human_n2', 'Endo-1,4-BetaXylanase10A_1i8aA_bacteria_n4', 'FAB-HEAVY_5esv_C1-n2', 'FAB-HEAVY_5esv_V-n1', 'FAB-LIGHT_5esv_C1-n2', 'FAB-LIGHT_5esv_V-n1', 'GHR_1axiB_human_FN3-n1', 'ICOS_6x4gA_human_V', 'IL6Rb_1bquB_human_FN3-n2', 'InsulinR_8guyE_human_FN3-n2', 'IsdA_2iteA_bacteria', 'LAG3_7tzgD_human_C2-n2', 'LAG3_7tzgD_human_V-n1', 'LaminAC_1ifrA_human', 'MHCIa_7phrH_human_C1', 'MPT63_1lmiA_bacteria', 'NaKATPaseTransporterBeta_2zxeB_spurdogshark', 'PD1_4zqkB_human_V', 'PDL1_4z18B_human_V-n1', 'Palladin_2dm3A_human_Iset-n1', 'RBPJ_6py8C_human_Unk-n1', 'RBPJ_6py8C_human_Unk-n2', 'TCRa_6jxrm_human_C1-n2', 'TCRa_6jxrm_human_V-n1', 'TEAD1_3kysC_human', 'TP34_2o6cA_bacteria', 'Titin_4uowM_human_Unk-n152', 'VISTA_6oilA_human_V', 'VNAR_1t6vN_shark_V', 'VTCN1_Q7Z7D3_human_V-n2'];
|
|
62090
|
+
|
|
62091
|
+
//ic.refpdbArray2 = ['B2Microglobulin_7phrL_human_C1.pdb', 'Contactin1_2ee2A_human_FN3-n9.pdb', 'IL6Rb_1bquB_human_FN3-n3.pdb', 'InsulinR_8guyE_human_FN3-n1.pdb', 'JAM1_1nbqA_human_VorIset-n2.pdb', 'NaCaExchanger_2fwuA_dog_n2.pdb', 'ORF7a_1xakA_virus.pdb', 'Sidekick2_1wf5A_human_FN3-n7.pdb', 'Siglec3_5j0bB_human_C2-n2.pdb', 'TP47_1o75A_bacteria.pdb'];
|
|
62092
|
+
|
|
62093
|
+
ic.refpdbArray = ['ASF1A_2iijA_human', 'BArrestin1_4jqiA_rat_n1', 'BTLA_2aw2A_human_Iset', 'C3_2qkiD_human_n1', 'CD19_6al5A_human_C2orV-n1', 'CD2_1hnfA_human_C2-n2', 'CD2_1hnfA_human_V-n1', 'CD8a_1cd8A_human_V', 'CoAtomerGamma1_1r4xA_human', 'Contactin1_3s97C_human_C2-n2', 'CuZnSuperoxideDismutase_1hl5C_human', 'ECadherin_4zt1A_human_n2', 'Endo-1,4-BetaXylanase10A_1i8aA_bacteria_n4', 'FAB-HEAVY_5esv_C1-n2', 'FAB-HEAVY_5esv_V-n1', 'FAB-LIGHT_5esv_C1-n2', 'FAB-LIGHT_5esv_V-n1', 'GHR_1axiB_human_FN3-n1', 'ICOS_6x4gA_human_V', 'IL6Rb_1bquB_human_FN3-n2', 'InsulinR_8guyE_human_FN3-n2', 'IsdA_2iteA_bacteria', 'LAG3_7tzgD_human_C2-n2', 'LAG3_7tzgD_human_V-n1', 'LaminAC_1ifrA_human', 'MHCIa_7phrH_human_C1', 'MPT63_1lmiA_bacteria', 'NaKATPaseTransporterBeta_2zxeB_spurdogshark', 'PD1_4zqkB_human_V', 'PDL1_4z18B_human_V-n1', 'Palladin_2dm3A_human_Iset-n1', 'RBPJ_6py8C_human_Unk-n1', 'RBPJ_6py8C_human_Unk-n2', 'TCRa_6jxrm_human_C1-n2', 'TCRa_6jxrm_human_V-n1', 'TEAD1_3kysC_human', 'TP34_2o6cA_bacteria', 'Titin_4uowM_human_Unk-n152', 'VISTA_6oilA_human_V', 'VNAR_1t6vN_shark_V', 'VTCN1_Q7Z7D3_human_V-n2', 'B2Microglobulin_7phrL_human_C1.pdb', 'Contactin1_2ee2A_human_FN3-n9.pdb', 'IL6Rb_1bquB_human_FN3-n3.pdb', 'InsulinR_8guyE_human_FN3-n1.pdb', 'JAM1_1nbqA_human_VorIset-n2.pdb', 'NaCaExchanger_2fwuA_dog_n2.pdb', 'ORF7a_1xakA_virus.pdb', 'Sidekick2_1wf5A_human_FN3-n7.pdb', 'Siglec3_5j0bB_human_C2-n2.pdb', 'TP47_1o75A_bacteria.pdb'];
|
|
62076
62094
|
|
|
62077
62095
|
if(ic.pdbDataArray) {
|
|
62078
62096
|
await thisClass.parseRefPdbData(ic.pdbDataArray);
|
|
@@ -62247,15 +62265,15 @@ class Dssp {
|
|
|
62247
62265
|
// find the best alignment for each chain
|
|
62248
62266
|
let domainid2score = {}, domainid2segs = {}, chainid2segs = {};
|
|
62249
62267
|
|
|
62250
|
-
|
|
62251
|
-
|
|
62252
|
-
|
|
62253
|
-
|
|
62268
|
+
if(!ic.chainid2index) ic.chainid2index = {};
|
|
62269
|
+
if(!ic.domainid2index) ic.domainid2index = {};
|
|
62270
|
+
if(!ic.domainid2ig2kabat) ic.domainid2ig2kabat = {};
|
|
62271
|
+
if(!ic.domainid2ig2imgt) ic.domainid2ig2imgt = {};
|
|
62254
62272
|
|
|
62255
|
-
ic.chainid2index = {};
|
|
62256
|
-
ic.domainid2index = {};
|
|
62257
|
-
ic.domainid2ig2kabat = {};
|
|
62258
|
-
ic.domainid2ig2imgt = {};
|
|
62273
|
+
// ic.chainid2index = {};
|
|
62274
|
+
// ic.domainid2index = {};
|
|
62275
|
+
// ic.domainid2ig2kabat = {};
|
|
62276
|
+
// ic.domainid2ig2imgt = {};
|
|
62259
62277
|
|
|
62260
62278
|
for(let i = 0, il = domainidpairArray.length; i < il; ++i) {
|
|
62261
62279
|
let queryData = dataArray[i].value; //[0];
|
|
@@ -62398,10 +62416,10 @@ if(!me.bNode) {
|
|
|
62398
62416
|
getLabelFromRefnum(oriRefnum, prevStrand, bCd19) { let ic = this.icn3d; ic.icn3dui;
|
|
62399
62417
|
let refnum = parseInt(oriRefnum);
|
|
62400
62418
|
|
|
62401
|
-
// A
|
|
62419
|
+
// A-: 10xx
|
|
62402
62420
|
// A: 11xx
|
|
62403
62421
|
// A': 12xx
|
|
62404
|
-
// A
|
|
62422
|
+
// A+: 13xx
|
|
62405
62423
|
// B: 21xx
|
|
62406
62424
|
// C: 32xx
|
|
62407
62425
|
// C': 42xx
|
|
@@ -62410,7 +62428,7 @@ if(!me.bNode) {
|
|
|
62410
62428
|
// E: 71xx
|
|
62411
62429
|
// F: 82xx
|
|
62412
62430
|
// G: 91xx, 92xx
|
|
62413
|
-
// G
|
|
62431
|
+
// G+: 94xx
|
|
62414
62432
|
|
|
62415
62433
|
// if(refnum < 100) return " " + oriRefnum;
|
|
62416
62434
|
// else if(refnum >= 100 && refnum < 1000) {
|
|
@@ -62419,10 +62437,11 @@ if(!me.bNode) {
|
|
|
62419
62437
|
// }
|
|
62420
62438
|
if(refnum < 900) return undefined;
|
|
62421
62439
|
else if(refnum >= 900 && refnum < 1000) return " " + oriRefnum;
|
|
62422
|
-
|
|
62423
|
-
else if(refnum >=
|
|
62440
|
+
else if(refnum >= 1000 && refnum < 1100) return "A-" + oriRefnum;
|
|
62441
|
+
else if(refnum >= 1100 && refnum < 1200) return "A" + oriRefnum;
|
|
62424
62442
|
else if(refnum >= 1200 && refnum < 1300) return "A'" + oriRefnum;
|
|
62425
|
-
else if(refnum >= 1300 && refnum < 1400) return "A*" + oriRefnum;
|
|
62443
|
+
//else if(refnum >= 1300 && refnum < 1400) return "A*" + oriRefnum;
|
|
62444
|
+
else if(refnum >= 1300 && refnum < 1400) return "A+" + oriRefnum;
|
|
62426
62445
|
else if(refnum >= 1400 && refnum < 2000) {
|
|
62427
62446
|
if(prevStrand && prevStrand.substr(0, 1) == 'A') {
|
|
62428
62447
|
return prevStrand + oriRefnum;
|
|
@@ -62439,7 +62458,8 @@ if(!me.bNode) {
|
|
|
62439
62458
|
else if(refnum >= 7000 && refnum < 8000) return "E" + oriRefnum;
|
|
62440
62459
|
else if(refnum >= 8000 && refnum < 9000) return "F" + oriRefnum;
|
|
62441
62460
|
else if(refnum >= 9000 && refnum < 9400) return "G" + oriRefnum;
|
|
62442
|
-
else if(refnum >= 9400 && refnum < 9500) return "G*" + oriRefnum;
|
|
62461
|
+
//else if(refnum >= 9400 && refnum < 9500) return "G*" + oriRefnum;
|
|
62462
|
+
else if(refnum >= 9400 && refnum < 9500) return "G+" + oriRefnum;
|
|
62443
62463
|
else if(refnum >= 9500) return "G" + oriRefnum;
|
|
62444
62464
|
}
|
|
62445
62465
|
|
|
@@ -62533,18 +62553,35 @@ class Scap {
|
|
|
62533
62553
|
}
|
|
62534
62554
|
}
|
|
62535
62555
|
|
|
62536
|
-
adjust2DWidth(id) { let ic = this.icn3d
|
|
62537
|
-
let halfWidth = 125;
|
|
62556
|
+
adjust2DWidth(id) { let ic = this.icn3d; ic.icn3dui;
|
|
62538
62557
|
id = ic.pre + id;
|
|
62539
|
-
|
|
62558
|
+
/*
|
|
62540
62559
|
let height =($("#" + ic.pre + 'dl_selectannotations').hasClass("ui-dialog-content")) ? $("#" + ic.pre + 'dl_selectannotations').dialog( "option", "height") : me.htmlCls.HEIGHT;
|
|
62541
62560
|
let width =($("#" + ic.pre + 'dl_selectannotations').hasClass("ui-dialog-content")) ? halfWidth * 2 : me.htmlCls.WIDTH * 0.5;
|
|
62542
62561
|
|
|
62543
62562
|
$("#" + id).dialog( "option", "width", width );
|
|
62544
62563
|
$("#" + id).dialog( "option", "height", height);
|
|
62545
|
-
let position = { my: "left-" + halfWidth + " top+" + me.htmlCls.MENU_HEIGHT, at: "right top", of: "#" + ic.pre + "viewer", collision: "none" }
|
|
62564
|
+
let position = { my: "left-" + halfWidth + " top+" + me.htmlCls.MENU_HEIGHT, at: "right top", of: "#" + ic.pre + "viewer", collision: "none" }
|
|
62565
|
+
|
|
62566
|
+
$("#" + id).dialog( "option", "position", position );
|
|
62567
|
+
*/
|
|
62568
|
+
|
|
62569
|
+
let width, height, top;
|
|
62570
|
+
|
|
62571
|
+
if($("#" + ic.pre + 'dl_selectannotations').hasClass("ui-dialog-content")) {
|
|
62572
|
+
width = $("#" + ic.pre + 'dl_selectannotations').dialog( "option", "width");
|
|
62573
|
+
height = $("#" + ic.pre + 'dl_selectannotations').dialog( "option", "height") * 0.5;
|
|
62574
|
+
top = height;
|
|
62575
|
+
|
|
62576
|
+
$("#" + ic.pre + "dl_selectannotations").dialog( "option", "height", height);
|
|
62546
62577
|
|
|
62547
|
-
|
|
62578
|
+
$("#" + id).dialog( "option", "width", width );
|
|
62579
|
+
$("#" + id).dialog( "option", "height", height);
|
|
62580
|
+
|
|
62581
|
+
let position = { my: "left top", at: "right top+" + top, of: "#" + ic.pre + "viewer", collision: "none" };
|
|
62582
|
+
|
|
62583
|
+
$("#" + id).dialog( "option", "position", position );
|
|
62584
|
+
}
|
|
62548
62585
|
}
|
|
62549
62586
|
|
|
62550
62587
|
async retrieveScap(snp, bInteraction, bPdb) { let ic = this.icn3d, me = ic.icn3dui;
|