icn3d 3.31.6 → 3.31.7

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
@@ -10055,7 +10055,7 @@ class ClickMenu {
10055
10055
  });
10056
10056
 
10057
10057
  me.myEventCls.onIds("#" + me.pre + "mn1_exportKabat", "click", async function(e) { let ic = me.icn3d; //e.preventDefault();
10058
- ic.refnumCls.exportRefnum('kabat');
10058
+ ic.refnumCls.exportRefnum('kabat');
10059
10059
  thisClass.setLogCmd("export refnum kabat", true);
10060
10060
  });
10061
10061
 
@@ -53978,20 +53978,14 @@ class ChainalignParser {
53978
53978
 
53979
53979
  // add color only for the newly loaded structures
53980
53980
  ic.setColorCls.setColorByOptions(opts, hAtoms);
53981
-
53981
+
53982
+ await ic.ParserUtilsCls.renderStructure();
53983
+
53982
53984
  if(ic.bAnnoShown) {
53983
53985
  await ic.showAnnoCls.showAnnotations();
53984
53986
  ic.annotationCls.resetAnnoTabAll();
53985
53987
  }
53986
53988
 
53987
- // await ic.ParserUtilsCls.renderStructure();
53988
- // ic.drawCls.draw();
53989
-
53990
- // if(ic.bAnnoShown) {
53991
- // await ic.showAnnoCls.showAnnotations();
53992
- // ic.annotationCls.resetAnnoTabAll();
53993
- // }
53994
-
53995
53989
  if(me.cfg.rotate !== undefined) ic.resizeCanvasCls.rotStruc(me.cfg.rotate, true);
53996
53990
 
53997
53991
  if(bQuery && me.cfg.matchedchains) {
@@ -60337,7 +60331,9 @@ class ParserUtils {
60337
60331
 
60338
60332
  if(data && data.pdbid) {
60339
60333
  let question = "This is a single-spanning (bitopic) transmembrane protein according to the Membranome database. Do you want to align the protein with the model from Membranome? If you click \"OK\", you can press the letter \"a\" to alternate the structures.";
60340
-
60334
+
60335
+ if (me.bNode) return;
60336
+
60341
60337
  if (me.cfg.afmem == 'off') {
60342
60338
  // do nothing
60343
60339
  /// if(ic.deferredOpm !== undefined) ic.deferredOpm.resolve();
@@ -71354,13 +71350,13 @@ class Dssp {
71354
71350
  ic.ref2igtype['CD28_1yjdC_human_V'] = 'IgV';
71355
71351
  ic.ref2igtype['CD2_1hnfA_human_C2-n2'] = 'IgC2';
71356
71352
  ic.ref2igtype['CD2_1hnfA_human_V-n1'] = 'IgV';
71357
- ic.ref2igtype['CD3d_6jxrd_human_C1'] = 'IgI';
71358
- ic.ref2igtype['CD3e_6jxrf_human_C1'] = 'IgI';
71359
- ic.ref2igtype['CD3g_6jxrg_human_C2'] = 'IgI';
71353
+ ic.ref2igtype['CD3d_6jxrd_human_C1'] = 'IgC1';
71354
+ ic.ref2igtype['CD3e_6jxrf_human_C1'] = 'IgC1';
71355
+ ic.ref2igtype['CD3g_6jxrg_human_C2'] = 'IgC2';
71360
71356
  ic.ref2igtype['CD8a_1cd8A_human_V'] = 'IgV';
71361
71357
  ic.ref2igtype['CoAtomerGamma1_1r4xA_human'] = 'IgE';
71362
71358
  ic.ref2igtype['Contactin1_2ee2A_human_FN3-n9'] = 'IgFN3';
71363
- ic.ref2igtype['Contactin1_3s97C_human_Iset-n2'] = 'IgC2';
71359
+ ic.ref2igtype['Contactin1_3s97C_human_Iset-n2'] = 'IgI';
71364
71360
  ic.ref2igtype['CuZnSuperoxideDismutase_1hl5C_human'] = 'SOD';
71365
71361
  ic.ref2igtype['ECadherin_4zt1A_human_n2'] = 'Cadherin';
71366
71362
  ic.ref2igtype['Endo-1,4-BetaXylanase10A_1i8aA_bacteria_n4'] = 'IgE';
@@ -71368,7 +71364,7 @@ class Dssp {
71368
71364
  ic.ref2igtype['FAB-HEAVY_5esv_V-n1'] = 'IgV';
71369
71365
  ic.ref2igtype['FAB-LIGHT_5esv_C1-n2'] = 'IgC1';
71370
71366
  ic.ref2igtype['FAB-LIGHT_5esv_V-n1'] = 'IgV';
71371
- ic.ref2igtype['GHR_1axiB_human_C1-n1'] = 'IgFN3';
71367
+ ic.ref2igtype['GHR_1axiB_human_C1-n1'] = 'IgC1';
71372
71368
  ic.ref2igtype['ICOS_6x4gA_human_V'] = 'IgV';
71373
71369
  ic.ref2igtype['IL6Rb_1bquB_human_FN3-n2'] = 'IgFN3';
71374
71370
  ic.ref2igtype['IL6Rb_1bquB_human_FN3-n3'] = 'IgFN3';
@@ -71376,7 +71372,7 @@ class Dssp {
71376
71372
  ic.ref2igtype['InsulinR_8guyE_human_FN3-n2'] = 'IgFN3';
71377
71373
  ic.ref2igtype['IsdA_2iteA_bacteria'] = 'IgE';
71378
71374
  ic.ref2igtype['JAM1_1nbqA_human_Iset-n2'] = 'IgI';
71379
- ic.ref2igtype['LAG3_7tzgD_human_C1-n2'] = 'IgC2';
71375
+ ic.ref2igtype['LAG3_7tzgD_human_C1-n2'] = 'IgC1';
71380
71376
  ic.ref2igtype['LAG3_7tzgD_human_V-n1'] = 'IgV';
71381
71377
  ic.ref2igtype['LaminAC_1ifrA_human'] = 'Lamin';
71382
71378
  ic.ref2igtype['MHCIa_7phrH_human_C1'] = 'IgC1';
@@ -71390,7 +71386,7 @@ class Dssp {
71390
71386
  ic.ref2igtype['RBPJ_6py8C_human_Unk-n1'] = 'IgFN3-like';
71391
71387
  ic.ref2igtype['RBPJ_6py8C_human_Unk-n2'] = 'IgFN3-like';
71392
71388
  ic.ref2igtype['Sidekick2_1wf5A_human_FN3-n7'] = 'IgFN3';
71393
- ic.ref2igtype['Siglec3_5j0bB_human_C1-n2'] = 'IgC2';
71389
+ ic.ref2igtype['Siglec3_5j0bB_human_C1-n2'] = 'IgC1';
71394
71390
  ic.ref2igtype['TCRa_6jxrm_human_C1-n2'] = 'IgC1';
71395
71391
  ic.ref2igtype['TCRa_6jxrm_human_V-n1'] = 'IgV';
71396
71392
  ic.ref2igtype['TEAD1_3kysC_human'] = 'IgE';
@@ -71399,7 +71395,7 @@ class Dssp {
71399
71395
  ic.ref2igtype['Titin_4uowM_human_Iset-n152'] = 'IgI';
71400
71396
  ic.ref2igtype['VISTA_6oilA_human_V'] = 'IgV';
71401
71397
  ic.ref2igtype['VNAR_1t6vN_shark_V'] = 'IgV';
71402
- ic.ref2igtype['VTCN1_Q7Z7D3_human_C1-n2'] = 'IgV';
71398
+ ic.ref2igtype['VTCN1_Q7Z7D3_human_C1-n2'] = 'IgC1';
71403
71399
  }
71404
71400
 
71405
71401
  getPdbAjaxArray() { let ic = this.icn3d, me = ic.icn3dui;
@@ -72090,7 +72086,7 @@ class Dssp {
72090
72086
 
72091
72087
  if(seg.q_start.indexOf('8550') != -1) {
72092
72088
  // check C' and D strands
72093
- if(cntBtwCE == 1) {
72089
+ if(cntBtwCE == 1 && CAtom && EAtom && (CpAtom || DAtom)) {
72094
72090
  let distToC = 999, distToE = 999;
72095
72091
  for(let j = 0, jl = CAtomArray.length; j < jl; ++j) {
72096
72092
  let dist = (bCpstrand) ? CpAtom.coord.distanceTo(CAtomArray[j].coord) : DAtom.coord.distanceTo(CAtomArray[j].coord);
@@ -72378,7 +72374,7 @@ class Dssp {
72378
72374
  // 1. show IgStrand ref numbers
72379
72375
  if(type == 'igstrand' || type == 'IgStrand') {
72380
72376
  // iGStrand reference numbers were adjusted when showing in sequences
72381
- // if(me.bNode) {
72377
+ // if(me.bNode) {
72382
72378
  if(ic.bShowRefnum) {
72383
72379
  for(let chnid in ic.chains) {
72384
72380
  let atom = ic.firstAtomObjCls.getFirstAtomObj(ic.chains[chnid]);
@@ -72429,7 +72425,8 @@ class Dssp {
72429
72425
  let bIgDomain = stru2bIgDomain.hasOwnProperty(structure) ? 1 : 0;
72430
72426
 
72431
72427
  refData += '{"' + structure + '": {"Ig domain" : ' + bIgDomain + ', "igs": [\n';
72432
- for(let m = 0, ml = ic.structures[structure].length; m < ml; ++m) {
72428
+
72429
+ for(let m = 0, ml = ic.structures[structure].length; ic.bShowRefnum && m < ml; ++m) {
72433
72430
  let chnid = ic.structures[structure][m];
72434
72431
  let igArray = ic.chain2igArray[chnid];
72435
72432
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icn3d",
3
- "version": "3.31.6",
3
+ "version": "3.31.7",
4
4
  "main": "./icn3d.js",
5
5
  "exports": {
6
6
  ".": {