icn3d 3.37.1 → 3.37.2
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 +8 -4
- package/icn3d.min.js +1 -1
- package/icn3d.module.js +8 -4
- package/package.json +1 -1
package/icn3d.js
CHANGED
|
@@ -14017,7 +14017,7 @@ class SetDialog {
|
|
|
14017
14017
|
html += '<div style="width:550px;">You can define your own reference numbers in a custom file using Excel, and then export it as a CSV file. An example file is shown below with cells separated by commas.<br>';
|
|
14018
14018
|
html += '<pre>refnum,11,12,,21,22,,10C,11C,20C<br>';
|
|
14019
14019
|
html += '1TUP_A,100,101,,,132,,,,<br>';
|
|
14020
|
-
html += '1TUP_B,110,111,,141,142
|
|
14020
|
+
html += '1TUP_B,110,111,,141,142,,,,<br>';
|
|
14021
14021
|
html += '1TUP_C,,,,,,,200,201,230</pre>';
|
|
14022
14022
|
html += 'The first row defines the reference residue numbers, which could be any strings. The 1st cell could be anything. The rest cells are reference residue numbers (e.g., 11, 21, 10C, etc.) or empty cells. Each chain has a separate row. The first cell of the second row is the chain ID "1TUP_A". The rest cells are the corresponding real residue numbers for reference residue numbers in the first row. For example, the reference numbers for residues 100, 101, and 132 in the chain 1TUP_A are 11, 12, and 22, respectively. The fourth row shows another set of reference numners for the chain "1TUP_C". It could be a chain from a different structure.<br><br>';
|
|
14023
14023
|
html += 'To select all residues corresponding to the reference numbers, you can simplay replace ":" with "%" in the <a href="https://www.ncbi.nlm.nih.gov/Structure/icn3d/icn3d.html#selectb" target="_blank">Specification</a>. For example, "%12" selects the residue 101 in 1TUP_A and the residue 111 in 1TUP_B. ".A%12" has the chain "A" filter and selects the residue 101 in 1TUP_A.<br>';
|
|
@@ -49711,7 +49711,7 @@ class LineGraph {
|
|
|
49711
49711
|
}
|
|
49712
49712
|
else {
|
|
49713
49713
|
++linkedNodeCnt[mappingid];
|
|
49714
|
-
linkedNodeInterDiff[mappingid] += link.n;
|
|
49714
|
+
linkedNodeInterDiff[mappingid] += link.n;
|
|
49715
49715
|
|
|
49716
49716
|
linkedNodeInterDiffBool[mappingid] = (linkedNodeInterDiff[mappingid] / link.n == linkedNodeCnt[mappingid]) ? 0 : 1;
|
|
49717
49717
|
}
|
|
@@ -49765,7 +49765,7 @@ class LineGraph {
|
|
|
49765
49765
|
let linkDiff = me.hashUtilsCls.cloneHash(link);
|
|
49766
49766
|
linkDiff.source += separatorDiff + ic.chainsMapping[chainid1][resid1];
|
|
49767
49767
|
linkDiff.target += separatorDiff + ic.chainsMapping[chainid2][resid2];
|
|
49768
|
-
|
|
49768
|
+
|
|
49769
49769
|
if(linkedNodeCnt[mappingid] == structureArray.length && (bIgRef || linkedNodeInterDiffBool[mappingid] == 0)) {
|
|
49770
49770
|
linkArraySplitCommon[index].push(linkCommon);
|
|
49771
49771
|
}
|
|
@@ -50458,6 +50458,7 @@ class GetGraph {
|
|
|
50458
50458
|
nodeArray2.push(node);
|
|
50459
50459
|
}
|
|
50460
50460
|
}
|
|
50461
|
+
|
|
50461
50462
|
// sort array
|
|
50462
50463
|
nodeArray1.sort(function(a,b) {
|
|
50463
50464
|
return thisClass.compNode(a, b);
|
|
@@ -50465,6 +50466,7 @@ class GetGraph {
|
|
|
50465
50466
|
nodeArray2.sort(function(a,b) {
|
|
50466
50467
|
return thisClass.compNode(a, b, bReverseNode);
|
|
50467
50468
|
});
|
|
50469
|
+
|
|
50468
50470
|
return {"nodeArray1": nodeArray1, "nodeArray2": nodeArray2, "name2node": name2nodeCommon};
|
|
50469
50471
|
}
|
|
50470
50472
|
updateGraphJson(struc, index, nodeArray1, nodeArray2, linkArray) { let ic = this.icn3d, me = ic.icn3dui;
|
|
@@ -50769,7 +50771,9 @@ class GetGraph {
|
|
|
50769
50771
|
}
|
|
50770
50772
|
|
|
50771
50773
|
for(let linkStr in linkstr2cnt) {
|
|
50772
|
-
|
|
50774
|
+
// do not differentiate the number of contacts
|
|
50775
|
+
let n = (value == me.htmlCls.contactInsideValue || value == me.htmlCls.contactValue) ? 1 : linkstr2cnt[linkStr];
|
|
50776
|
+
hbondStr += ', {' + linkStr + ', "n": ' + n + '}';
|
|
50773
50777
|
}
|
|
50774
50778
|
|
|
50775
50779
|
return hbondStr;
|