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.module.js CHANGED
@@ -8210,14 +8210,14 @@ class ClickMenu {
8210
8210
  thisClass.setLogCmd('ig refnum on', true);
8211
8211
  await ic.refnumCls.showIgRefNum();
8212
8212
 
8213
- if(ic.bShowRefnum) {
8214
- ic.opts.color = 'ig strand';
8215
- ic.setColorCls.setColorByOptions(ic.opts, ic.atoms);
8213
+ // if(ic.bShowRefnum) {
8214
+ // ic.opts.color = 'ig strand';
8215
+ // ic.setColorCls.setColorByOptions(ic.opts, ic.atoms);
8216
8216
 
8217
- ic.selectionCls.selectAll_base();
8218
- ic.hlUpdateCls.updateHlAll();
8219
- ic.drawCls.draw();
8220
- }
8217
+ // ic.selectionCls.selectAll_base();
8218
+ // ic.hlUpdateCls.updateHlAll();
8219
+ // ic.drawCls.draw();
8220
+ // }
8221
8221
  });
8222
8222
 
8223
8223
  me.myEventCls.onIds("#" + me.pre + "mn6_igrefNo", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
@@ -10297,8 +10297,8 @@ class SetMenu {
10297
10297
  //}
10298
10298
 
10299
10299
  //!!!
10300
- // html += this.getRadio('mn4_clr', 'mn4_clrIgstrand', 'Ig Strand', undefined, undefined, 2);
10301
- // html += this.getRadio('mn4_clr', 'mn4_clrIgproto', 'Ig Protodomain', undefined, undefined, 2);
10300
+ //html += this.getRadio('mn4_clr', 'mn4_clrIgstrand', 'Ig Strand', undefined, undefined, 2);
10301
+ //html += this.getRadio('mn4_clr', 'mn4_clrIgproto', 'Ig Protodomain', undefined, undefined, 2);
10302
10302
  }
10303
10303
  else {
10304
10304
  //if(!me.cfg.hidelicense) html += this.getRadio('mn4_clr', 'mn1_delphi2', 'DelPhi<br><span style="padding-left:1.5em;">Potential ' + me.htmlCls.licenseStr + '</span>');
@@ -33190,7 +33190,7 @@ class Alternate {
33190
33190
  ic.impostorCls.clearImpostors();
33191
33191
 
33192
33192
  // show membranes
33193
- if(ic.bOpm) {
33193
+ if(ic.bOpm && !me.cfg.chainalign) {
33194
33194
  //if(window.dialog && window.dialog.hasClass('ui-dialog-content')) window.dialog.dialog( "close" );
33195
33195
 
33196
33196
  let html = me.utilsCls.getMemDesc();
@@ -35575,25 +35575,27 @@ class SetColor {
35575
35575
  case 'ig strand':
35576
35576
  if(ic.bShowRefnum) {
35577
35577
  let color;
35578
- for(let resid in ic.residues) {
35579
- if(!ic.resid2refnum[resid]) {
35578
+ let residueHash = ic.firstAtomObjCls.getResiduesFromAtoms(atoms);
35579
+
35580
+ for(let resid in residueHash) {
35581
+ if(!ic.resid2refnum[resid]) {
35580
35582
  color = me.parasCls.thr('#FFFFFF');
35581
35583
  }
35582
35584
  else {
35583
35585
  let refnumLabel = ic.resid2refnum[resid];
35584
35586
 
35585
- if(!refnumLabel) {
35586
- color = me.parasCls.thr(me.htmlCls.GREYB);
35587
- }
35588
- else {
35589
- let refnumStr = refnumLabel.replace(/'/g, '').replace(/\*/g, '').replace(/\^/g, '').substr(1); // C', C''
35587
+ // if(!refnumLabel) {
35588
+ // color = me.parasCls.thr(me.htmlCls.GREYB);
35589
+ // }
35590
+ // else {
35591
+ let refnumStr = refnumLabel.replace(/'/g, '').replace(/\*/g, '').replace(/\^/g, '').replace(/\+/g, '').replace(/\-/g, '').substr(1); // C', C''
35590
35592
  let currStrand = refnumLabel.replace(new RegExp(refnumStr,'g'), '');
35591
35593
  color = ic.showSeqCls.getRefnumColor(currStrand);
35592
35594
 
35593
- if(ic.residIgLoop.hasOwnProperty(resid)) {
35595
+ if(ic.residIgLoop.hasOwnProperty(resid)) {
35594
35596
  color = me.parasCls.thr(me.htmlCls.GREYB);
35595
35597
  }
35596
- }
35598
+ // }
35597
35599
  }
35598
35600
 
35599
35601
  for (let i in ic.residues[resid]) {
@@ -35610,7 +35612,8 @@ class SetColor {
35610
35612
  case 'ig protodomain':
35611
35613
  if(ic.bShowRefnum) {
35612
35614
  let color;
35613
- for(let resid in ic.residues) {
35615
+ let residueHash = ic.firstAtomObjCls.getResiduesFromAtoms(atoms);
35616
+ for(let resid in residueHash) {
35614
35617
  if(!ic.resid2refnum[resid]) {
35615
35618
  color = me.parasCls.thr('#FFFFFF');
35616
35619
  }
@@ -35621,7 +35624,7 @@ class SetColor {
35621
35624
  color = me.parasCls.thr(me.htmlCls.GREYB);
35622
35625
  }
35623
35626
  else {
35624
- let refnumStr = refnumLabel.replace(/'/g, '').replace(/\*/g, '').replace(/\^/g, '').substr(1); // C', C''
35627
+ let refnumStr = refnumLabel.replace(/'/g, '').replace(/\*/g, '').replace(/\^/g, '').replace(/\+/g, '').replace(/\-/g, '').substr(1); // C', C''
35625
35628
  let currStrand = refnumLabel.replace(new RegExp(refnumStr,'g'), '');
35626
35629
  color = ic.showSeqCls.getProtodomainColor(currStrand);
35627
35630
 
@@ -36563,9 +36566,9 @@ class SetOption {
36563
36566
  let html = '';
36564
36567
 
36565
36568
  const name2color = {
36566
- //"A^ Strand": "FF00FF",
36569
+ //"A- Strand": "FF00FF",
36567
36570
  "A Strand": "663399",
36568
- //"A* Strand": "663399", //"FFC0CB",
36571
+ //"A+ Strand": "663399", //"FFC0CB",
36569
36572
  "A' Strand": "663399", //"9370db",
36570
36573
  "B Strand": "ba55d3",
36571
36574
  "C Strand": "0000FF",
@@ -36575,7 +36578,7 @@ class SetOption {
36575
36578
  "E Strand": "FFFF00", //"F0E68C",
36576
36579
  "F Strand": "FFA500",
36577
36580
  "G Strand": "FF0000",
36578
- //"G* Strand": "8B0000",
36581
+ //"G+ Strand": "8B0000",
36579
36582
  "Loop": "CCCCCC"
36580
36583
  };
36581
36584
 
@@ -41753,10 +41756,12 @@ class ShowAnno {
41753
41756
 
41754
41757
  if(ic.bShowRefnum) {
41755
41758
  ic.opts.color = 'ig strand';
41756
- ic.setColorCls.setColorByOptions(ic.opts, ic.atoms);
41759
+ //ic.setColorCls.setColorByOptions(ic.opts, ic.atoms);
41760
+ ic.setColorCls.setColorByOptions(ic.opts, ic.dAtoms);
41757
41761
 
41758
41762
  ic.selectionCls.selectAll_base();
41759
41763
  ic.hlUpdateCls.updateHlAll();
41764
+ //ic.drawCls.draw();
41760
41765
  }
41761
41766
  }
41762
41767
 
@@ -42258,6 +42263,10 @@ class ShowAnno {
42258
42263
  }
42259
42264
  }
42260
42265
  getColorhexFromBlosum62(resA, resB) { let ic = this.icn3d, me = ic.icn3dui;
42266
+ let color = '333333';
42267
+
42268
+ if(!resA || !resB) return color;
42269
+
42261
42270
  resA = resA.toUpperCase();
42262
42271
  resB = resB.toUpperCase();
42263
42272
 
@@ -42267,7 +42276,7 @@ class ShowAnno {
42267
42276
  if(matrixValue === undefined) return '333333';
42268
42277
  // range and color: blue for -4 ~ 0, red for 0 ~ 11
42269
42278
  // max value 221 to avoid white
42270
- let color = '333333';
42279
+
42271
42280
  if(matrixValue > 0) {
42272
42281
  let c = 221 - parseInt(matrixValue / 11.0 * 221);
42273
42282
  let cStr =(c < 10) ? '0' + c.toString(16) : c.toString(16);
@@ -42842,7 +42851,7 @@ class ShowSeq {
42842
42851
  }
42843
42852
 
42844
42853
  if(refnumLabel) {
42845
- refnumStr_ori = refnumLabel.replace(/'/g, '').replace(/\*/g, '').replace(/\^/g, '').substr(1); // C', C''
42854
+ refnumStr_ori = refnumLabel.replace(/'/g, '').replace(/\*/g, '').replace(/\^/g, '').replace(/\+/g, '').replace(/\-/g, '').substr(1); // C', C''
42846
42855
  currStrand = refnumLabel.replace(new RegExp(refnumStr_ori,'g'), '');
42847
42856
  refnumStr_ori.substr(0, 1);
42848
42857
 
@@ -42925,7 +42934,9 @@ class ShowSeq {
42925
42934
  for(let il = strandArray.length, i = il - 1; i >= 0; --i) {
42926
42935
  if(strandArray[i].endRefnum - strandArray[i].startRefnum + 1 < 3) { // remove the strand
42927
42936
  if(i != il - 1) { // modify
42928
- strandArray[i + 1].loopResCnt += strandArray[i].loopResCnt + strandArray[i].endRefnum - strandArray[i].startRefnum + 1;
42937
+ // strandArray[i + 1].loopResCnt += strandArray[i].loopResCnt + strandArray[i].endRefnum - strandArray[i].startRefnum + 1;
42938
+
42939
+ strandArray[i + 1].loopResCnt += strandArray[i].loopResCnt + parseInt(strandArray[i].endResi) - parseInt(strandArray[i].startResi) + 1;
42929
42940
  }
42930
42941
 
42931
42942
  strandArray.splice(i, 1);
@@ -42948,7 +42959,7 @@ class ShowSeq {
42948
42959
  currStrand = strandArray[strandCnt].strand;
42949
42960
 
42950
42961
  if(refnumLabel) {
42951
- refnumStr = refnumLabel.replace(/'/g, '').replace(/\*/g, '').replace(/\^/g, '').substr(1); // C', C''
42962
+ refnumStr = refnumLabel.replace(/'/g, '').replace(/\*/g, '').replace(/\^/g, '').replace(/\+/g, '').replace(/\-/g, '').substr(1); // C', C''
42952
42963
  currRefnum = parseInt(refnumStr);
42953
42964
  refnumLabelNoPostfix = currStrand + currRefnum;
42954
42965
 
@@ -43029,6 +43040,9 @@ class ShowSeq {
43029
43040
  }
43030
43041
  }
43031
43042
  else if(parseInt(currResi) >= parseInt(strandArray[strandCnt].startResi) && parseInt(currResi) <= parseInt(strandArray[strandCnt].endResi)) {
43043
+ // not in loop any more if you assign ref numbers multiple times
43044
+ delete ic.residIgLoop[residueid];
43045
+
43032
43046
  bBeforeAstrand = false;
43033
43047
 
43034
43048
  if(strandArray[strandCnt].anchorRefnum) { // use anchor to name refnum
@@ -43117,7 +43131,7 @@ class ShowSeq {
43117
43131
  let bHidelabel = false;
43118
43132
 
43119
43133
  if(refnumLabel) {
43120
- refnumStr_ori = refnumLabel.replace(/'/g, '').replace(/\*/g, '').replace(/\^/g, '').substr(1); // C', C''
43134
+ refnumStr_ori = refnumLabel.replace(/'/g, '').replace(/\*/g, '').replace(/\^/g, '').replace(/\+/g, '').replace(/\-/g, '').substr(1); // C', C''
43121
43135
  currStrand = refnumLabel.replace(new RegExp(refnumStr_ori,'g'), '');
43122
43136
  currStrand_ori = currStrand;
43123
43137
 
@@ -43230,15 +43244,14 @@ class ShowSeq {
43230
43244
  }
43231
43245
 
43232
43246
  getRefnumColor(currStrand, bText) { let ic = this.icn3d, me = ic.icn3dui;
43233
- // if(currStrand == "A^") {
43234
- // return '#FF00FF';
43235
- // }
43236
- // else
43237
-
43238
- if(currStrand == "A") {
43247
+ if(currStrand == "A-") {
43248
+ return '#663399';
43249
+ }
43250
+ else if(currStrand == "A") {
43239
43251
  return '#663399';
43240
43252
  }
43241
- else if(currStrand == "A*") {
43253
+ //else if(currStrand == "A*") {
43254
+ else if(currStrand == "A+") {
43242
43255
  return '#663399'; //'#FFC0CB';
43243
43256
  }
43244
43257
  else if(currStrand == "A'") {
@@ -43268,7 +43281,7 @@ class ShowSeq {
43268
43281
  else if(currStrand == "G") {
43269
43282
  return '#FF0000';
43270
43283
  }
43271
- else if(currStrand == "G*") {
43284
+ else if(currStrand == "G+") {
43272
43285
  return '#8B0000';
43273
43286
  }
43274
43287
  else {
@@ -48691,7 +48704,7 @@ class ChainalignParser {
48691
48704
  // reset annotations
48692
48705
  $("#" + ic.pre + "dl_annotations").html("");
48693
48706
  ic.bAnnoShown = false;
48694
- if($('#' + ic.pre + 'dl_selectannotations').dialog( 'isOpen' )) {
48707
+ if($('#' + me.pre + 'dl_selectannotations').hasClass('ui-dialog-content') && $('#' + ic.pre + 'dl_selectannotations').dialog( 'isOpen' )) {
48695
48708
  $('#' + ic.pre + 'dl_selectannotations').dialog( 'close' );
48696
48709
  }
48697
48710
  //});
@@ -52752,7 +52765,7 @@ class ParserUtils {
52752
52765
  if(rmsd) {
52753
52766
  me.htmlCls.clickMenuCls.setLogCmd("realignment RMSD: " + rmsd.toPrecision(4), false);
52754
52767
  let html = "<br><b>Realignment RMSD</b>: " + rmsd.toPrecision(4) + " &#8491;<br><br>";
52755
- if(ic.bAfMem) {
52768
+ if(ic.bAfMem && !me.cfg.chainalign) {
52756
52769
  //if(window.dialog && window.dialog.hasClass('ui-dialog-content')) window.dialog.dialog( "close" );
52757
52770
  html += me.utilsCls.getMemDesc();
52758
52771
  }
@@ -62970,10 +62983,15 @@ class Dssp {
62970
62983
  await thisClass.parseRefPdbData(ic.pdbDataArray);
62971
62984
  }
62972
62985
  else {
62973
- //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'];
62974
62986
  //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'];
62975
62987
 
62976
- 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'];
62988
+ //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'];
62989
+
62990
+ //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'];
62991
+
62992
+ //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'];
62993
+
62994
+ 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'];
62977
62995
 
62978
62996
  if(ic.pdbDataArray) {
62979
62997
  await thisClass.parseRefPdbData(ic.pdbDataArray);
@@ -63148,15 +63166,15 @@ class Dssp {
63148
63166
  // find the best alignment for each chain
63149
63167
  let domainid2score = {}, domainid2segs = {}, chainid2segs = {};
63150
63168
 
63151
- // if(!ic.chainid2index) ic.chainid2index = {};
63152
- // if(!ic.domainid2index) ic.domainid2index = {};
63153
- // if(!ic.domainid2ig2kabat) ic.domainid2ig2kabat = {};
63154
- // if(!ic.domainid2ig2imgt) ic.domainid2ig2imgt = {};
63169
+ if(!ic.chainid2index) ic.chainid2index = {};
63170
+ if(!ic.domainid2index) ic.domainid2index = {};
63171
+ if(!ic.domainid2ig2kabat) ic.domainid2ig2kabat = {};
63172
+ if(!ic.domainid2ig2imgt) ic.domainid2ig2imgt = {};
63155
63173
 
63156
- ic.chainid2index = {};
63157
- ic.domainid2index = {};
63158
- ic.domainid2ig2kabat = {};
63159
- ic.domainid2ig2imgt = {};
63174
+ // ic.chainid2index = {};
63175
+ // ic.domainid2index = {};
63176
+ // ic.domainid2ig2kabat = {};
63177
+ // ic.domainid2ig2imgt = {};
63160
63178
 
63161
63179
  for(let i = 0, il = domainidpairArray.length; i < il; ++i) {
63162
63180
  let queryData = dataArray[i].value; //[0];
@@ -63299,10 +63317,10 @@ if(!me.bNode) {
63299
63317
  getLabelFromRefnum(oriRefnum, prevStrand, bCd19) { let ic = this.icn3d; ic.icn3dui;
63300
63318
  let refnum = parseInt(oriRefnum);
63301
63319
 
63302
- // A^: 1xx or 2xx
63320
+ // A-: 10xx
63303
63321
  // A: 11xx
63304
63322
  // A': 12xx
63305
- // A*: 13xx
63323
+ // A+: 13xx
63306
63324
  // B: 21xx
63307
63325
  // C: 32xx
63308
63326
  // C': 42xx
@@ -63311,7 +63329,7 @@ if(!me.bNode) {
63311
63329
  // E: 71xx
63312
63330
  // F: 82xx
63313
63331
  // G: 91xx, 92xx
63314
- // G*: 94xx
63332
+ // G+: 94xx
63315
63333
 
63316
63334
  // if(refnum < 100) return " " + oriRefnum;
63317
63335
  // else if(refnum >= 100 && refnum < 1000) {
@@ -63320,10 +63338,11 @@ if(!me.bNode) {
63320
63338
  // }
63321
63339
  if(refnum < 900) return undefined;
63322
63340
  else if(refnum >= 900 && refnum < 1000) return " " + oriRefnum;
63323
-
63324
- else if(refnum >= 1000 && refnum < 1200) return "A" + oriRefnum;
63341
+ else if(refnum >= 1000 && refnum < 1100) return "A-" + oriRefnum;
63342
+ else if(refnum >= 1100 && refnum < 1200) return "A" + oriRefnum;
63325
63343
  else if(refnum >= 1200 && refnum < 1300) return "A'" + oriRefnum;
63326
- else if(refnum >= 1300 && refnum < 1400) return "A*" + oriRefnum;
63344
+ //else if(refnum >= 1300 && refnum < 1400) return "A*" + oriRefnum;
63345
+ else if(refnum >= 1300 && refnum < 1400) return "A+" + oriRefnum;
63327
63346
  else if(refnum >= 1400 && refnum < 2000) {
63328
63347
  if(prevStrand && prevStrand.substr(0, 1) == 'A') {
63329
63348
  return prevStrand + oriRefnum;
@@ -63340,7 +63359,8 @@ if(!me.bNode) {
63340
63359
  else if(refnum >= 7000 && refnum < 8000) return "E" + oriRefnum;
63341
63360
  else if(refnum >= 8000 && refnum < 9000) return "F" + oriRefnum;
63342
63361
  else if(refnum >= 9000 && refnum < 9400) return "G" + oriRefnum;
63343
- else if(refnum >= 9400 && refnum < 9500) return "G*" + oriRefnum;
63362
+ //else if(refnum >= 9400 && refnum < 9500) return "G*" + oriRefnum;
63363
+ else if(refnum >= 9400 && refnum < 9500) return "G+" + oriRefnum;
63344
63364
  else if(refnum >= 9500) return "G" + oriRefnum;
63345
63365
  }
63346
63366
 
@@ -63434,18 +63454,35 @@ class Scap {
63434
63454
  }
63435
63455
  }
63436
63456
 
63437
- adjust2DWidth(id) { let ic = this.icn3d, me = ic.icn3dui;
63438
- let halfWidth = 125;
63457
+ adjust2DWidth(id) { let ic = this.icn3d; ic.icn3dui;
63439
63458
  id = ic.pre + id;
63440
-
63459
+ /*
63441
63460
  let height =($("#" + ic.pre + 'dl_selectannotations').hasClass("ui-dialog-content")) ? $("#" + ic.pre + 'dl_selectannotations').dialog( "option", "height") : me.htmlCls.HEIGHT;
63442
63461
  let width =($("#" + ic.pre + 'dl_selectannotations').hasClass("ui-dialog-content")) ? halfWidth * 2 : me.htmlCls.WIDTH * 0.5;
63443
63462
 
63444
63463
  $("#" + id).dialog( "option", "width", width );
63445
63464
  $("#" + id).dialog( "option", "height", height);
63446
- let position = { my: "left-" + halfWidth + " top+" + me.htmlCls.MENU_HEIGHT, at: "right top", of: "#" + ic.pre + "viewer", collision: "none" };
63465
+ let position = { my: "left-" + halfWidth + " top+" + me.htmlCls.MENU_HEIGHT, at: "right top", of: "#" + ic.pre + "viewer", collision: "none" }
63466
+
63467
+ $("#" + id).dialog( "option", "position", position );
63468
+ */
63469
+
63470
+ let width, height, top;
63471
+
63472
+ if($("#" + ic.pre + 'dl_selectannotations').hasClass("ui-dialog-content")) {
63473
+ width = $("#" + ic.pre + 'dl_selectannotations').dialog( "option", "width");
63474
+ height = $("#" + ic.pre + 'dl_selectannotations').dialog( "option", "height") * 0.5;
63475
+ top = height;
63476
+
63477
+ $("#" + ic.pre + "dl_selectannotations").dialog( "option", "height", height);
63447
63478
 
63448
- $("#" + id).dialog( "option", "position", position );
63479
+ $("#" + id).dialog( "option", "width", width );
63480
+ $("#" + id).dialog( "option", "height", height);
63481
+
63482
+ let position = { my: "left top", at: "right top+" + top, of: "#" + ic.pre + "viewer", collision: "none" };
63483
+
63484
+ $("#" + id).dialog( "option", "position", position );
63485
+ }
63449
63486
  }
63450
63487
 
63451
63488
  async retrieveScap(snp, bInteraction, bPdb) { let ic = this.icn3d, me = ic.icn3dui;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icn3d",
3
- "version": "3.25.9",
3
+ "version": "3.25.11",
4
4
  "main": "./icn3d.js",
5
5
  "exports": {
6
6
  ".": {