icn3d 3.34.0 → 3.34.1

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 CHANGED
@@ -14552,7 +14552,7 @@ class SetDialog {
14552
14552
  html += me.htmlCls.divStr + "dl_ligplotcolor' style='inline-block;'>";
14553
14553
 
14554
14554
  // html += "The real interaction distances are not in scale, and are about twice the distances of dashed line segments.<br>Some \"Contact\" lines are only shown partially to simplify the view.<br>";
14555
- html += "<b>Color Legend</b>: <br>";
14555
+ html += "Color legend for interactions (dashed lines): <br>";
14556
14556
 
14557
14557
  html += me.htmlCls.setHtmlCls.setColorHints();
14558
14558
 
@@ -49712,7 +49712,8 @@ class LineGraph {
49712
49712
  if(pos1 === undefined || pos2 === undefined) continue;
49713
49713
  let linestrokewidth;
49714
49714
  if(link.v == me.htmlCls.contactValue) {
49715
- linestrokewidth = (link.n == 1) ? 1 : 3;
49715
+ // linestrokewidth = (link.n == 1) ? 1 : 3;
49716
+ linestrokewidth = 1;
49716
49717
  } else {
49717
49718
  linestrokewidth = (link.n == 1) ? 2 : 4;
49718
49719
  }
@@ -49840,7 +49841,8 @@ class LineGraph {
49840
49841
 
49841
49842
  let linestrokewidth;
49842
49843
  if(link.v == me.htmlCls.contactValue) {
49843
- linestrokewidth = (link.n == 1) ? 1 : 3;
49844
+ // linestrokewidth = (link.n == 1) ? 1 : 3;
49845
+ linestrokewidth = 1;
49844
49846
  } else {
49845
49847
  linestrokewidth = (link.n == 1) ? 2 : 4;
49846
49848
  }
@@ -50310,6 +50312,7 @@ class GetGraph {
50310
50312
  interStr += this.getContactLinks(ssAtomsArray[i], ssAtomsArray[j], labelType, true, bCartoon2d);
50311
50313
  }
50312
50314
  }
50315
+
50313
50316
  return interStr;
50314
50317
  }
50315
50318
  getContactLinks(atomlistTarget, otherAtoms, labelType, bInternal, bCartoon2d) { let ic = this.icn3d, me = ic.icn3dui;
@@ -50352,7 +50355,14 @@ class GetGraph {
50352
50355
  for(let resid1 in hash1) {
50353
50356
  //ASN $1KQ2.A:6@ND2
50354
50357
  //or ASN $1KQ2.A:6
50355
- resid1 = resid1.trim();
50358
+ // or ASN $1KQ2.A:6@ND2 2006
50359
+ let resid1Ori = resid1.trim();
50360
+
50361
+ let idArray1 = resid1Ori.split(' ');
50362
+ if(idArray1.length == 3) {
50363
+ resid1 = idArray1[0] + ' ' + idArray1[1];
50364
+ }
50365
+
50356
50366
  let pos1a = resid1.indexOf(' ');
50357
50367
  let pos1b = resid1.indexOf(':');
50358
50368
  let posTmp1 = resid1.indexOf('@');
@@ -50362,8 +50372,14 @@ class GetGraph {
50362
50372
  let resName1 = me.utilsCls.residueName2Abbr(resid1.substr(0, pos1a)) + resid1.substr(pos1b + 1, pos1c - pos1b - 1);
50363
50373
  if(labelType == 'chain' || labelType == 'structure') resName1 += '.' + resid1.substr(pos1d + 1, pos1b - pos1d - 1);
50364
50374
  if(labelType == 'structure') resName1 += '.' + resid1.substr(pos1e + 1, pos1d - pos1e - 1);
50365
- for(let resid2 in hash2[resid1]) {
50366
- resid2 = resid2.trim();
50375
+ for(let resid2 in hash2[resid1Ori]) {
50376
+ let resid2Ori = resid2.trim();
50377
+
50378
+ let idArray2 = resid2Ori.split(' ');
50379
+ if(idArray2.length == 3) {
50380
+ resid2 = idArray2[0] + ' ' + idArray2[1];
50381
+ }
50382
+
50367
50383
  let pos2a = resid2.indexOf(' ');
50368
50384
  let pos2b = resid2.indexOf(':');
50369
50385
  let posTmp2 = resid2.indexOf('@');
@@ -50379,16 +50395,6 @@ class GetGraph {
50379
50395
  resName1 = ic.resi2resirange[resName1];
50380
50396
  resName2 = ic.resi2resirange[resName2];
50381
50397
  }
50382
- /*
50383
- if(!sourceTargetHash.hasOwnProperty(resName1 + '_' + resName2) && resName1 !== undefined && resName2 !== undefined ) {
50384
- let linkStr = ', {"source": "' + resName1 + '", "target": "' + resName2 + '", "v": ' + value + ', "c": "' + color + '"}';
50385
- if(linkStr != prevLinkStr) hbondStr += linkStr;
50386
- prevLinkStr = linkStr;
50387
-
50388
- sourceTargetHash[resName1 + '_' + resName2] = 1;
50389
- sourceTargetHash[resName2 + '_' + resName1] = 1;
50390
- }
50391
- */
50392
50398
 
50393
50399
  if(resName1 !== undefined && resName2 !== undefined ) {
50394
50400
  let linkStr = '"source": "' + resName1 + '", "target": "' + resName2 + '", "v": ' + value + ', "c": "' + color + '"';