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.module.js
CHANGED
|
@@ -14918,7 +14918,7 @@ class SetDialog {
|
|
|
14918
14918
|
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>';
|
|
14919
14919
|
html += '<pre>refnum,11,12,,21,22,,10C,11C,20C<br>';
|
|
14920
14920
|
html += '1TUP_A,100,101,,,132,,,,<br>';
|
|
14921
|
-
html += '1TUP_B,110,111,,141,142
|
|
14921
|
+
html += '1TUP_B,110,111,,141,142,,,,<br>';
|
|
14922
14922
|
html += '1TUP_C,,,,,,,200,201,230</pre>';
|
|
14923
14923
|
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>';
|
|
14924
14924
|
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>';
|
|
@@ -50612,7 +50612,7 @@ class LineGraph {
|
|
|
50612
50612
|
}
|
|
50613
50613
|
else {
|
|
50614
50614
|
++linkedNodeCnt[mappingid];
|
|
50615
|
-
linkedNodeInterDiff[mappingid] += link.n;
|
|
50615
|
+
linkedNodeInterDiff[mappingid] += link.n;
|
|
50616
50616
|
|
|
50617
50617
|
linkedNodeInterDiffBool[mappingid] = (linkedNodeInterDiff[mappingid] / link.n == linkedNodeCnt[mappingid]) ? 0 : 1;
|
|
50618
50618
|
}
|
|
@@ -50666,7 +50666,7 @@ class LineGraph {
|
|
|
50666
50666
|
let linkDiff = me.hashUtilsCls.cloneHash(link);
|
|
50667
50667
|
linkDiff.source += separatorDiff + ic.chainsMapping[chainid1][resid1];
|
|
50668
50668
|
linkDiff.target += separatorDiff + ic.chainsMapping[chainid2][resid2];
|
|
50669
|
-
|
|
50669
|
+
|
|
50670
50670
|
if(linkedNodeCnt[mappingid] == structureArray.length && (bIgRef || linkedNodeInterDiffBool[mappingid] == 0)) {
|
|
50671
50671
|
linkArraySplitCommon[index].push(linkCommon);
|
|
50672
50672
|
}
|
|
@@ -51359,6 +51359,7 @@ class GetGraph {
|
|
|
51359
51359
|
nodeArray2.push(node);
|
|
51360
51360
|
}
|
|
51361
51361
|
}
|
|
51362
|
+
|
|
51362
51363
|
// sort array
|
|
51363
51364
|
nodeArray1.sort(function(a,b) {
|
|
51364
51365
|
return thisClass.compNode(a, b);
|
|
@@ -51366,6 +51367,7 @@ class GetGraph {
|
|
|
51366
51367
|
nodeArray2.sort(function(a,b) {
|
|
51367
51368
|
return thisClass.compNode(a, b, bReverseNode);
|
|
51368
51369
|
});
|
|
51370
|
+
|
|
51369
51371
|
return {"nodeArray1": nodeArray1, "nodeArray2": nodeArray2, "name2node": name2nodeCommon};
|
|
51370
51372
|
}
|
|
51371
51373
|
updateGraphJson(struc, index, nodeArray1, nodeArray2, linkArray) { let ic = this.icn3d, me = ic.icn3dui;
|
|
@@ -51670,7 +51672,9 @@ class GetGraph {
|
|
|
51670
51672
|
}
|
|
51671
51673
|
|
|
51672
51674
|
for(let linkStr in linkstr2cnt) {
|
|
51673
|
-
|
|
51675
|
+
// do not differentiate the number of contacts
|
|
51676
|
+
let n = (value == me.htmlCls.contactInsideValue || value == me.htmlCls.contactValue) ? 1 : linkstr2cnt[linkStr];
|
|
51677
|
+
hbondStr += ', {' + linkStr + ', "n": ' + n + '}';
|
|
51674
51678
|
}
|
|
51675
51679
|
|
|
51676
51680
|
return hbondStr;
|