icn3d 3.51.3 → 3.51.4
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 +16 -16
- package/icn3d.min.js +2 -2
- package/icn3d.module.js +16 -16
- package/package.json +1 -1
package/icn3d.js
CHANGED
|
@@ -101152,20 +101152,12 @@ class GetGraph {
|
|
|
101152
101152
|
let thickness = me.htmlCls.coilValue;
|
|
101153
101153
|
let prevChain = '', prevResName = '', prevResi = 0;
|
|
101154
101154
|
// add chemicals as well
|
|
101155
|
-
let residHash =
|
|
101156
|
-
for(let
|
|
101157
|
-
let atom = ic.
|
|
101155
|
+
let residHash = ic.firstAtomObjCls.getResiduesFromAtoms(atomSet);
|
|
101156
|
+
for(let resid in residHash) {
|
|
101157
|
+
let atom = ic.firstAtomObjCls.getFirstAtomObj(ic.residues[resid]);
|
|
101158
101158
|
|
|
101159
|
-
if(atom.chain != 'DUM' && (bAnyAtom || atom.het || (atom.name == "CA" && atom.elem == "C") || atom.name == "O3'" || atom.name == "O3*" || atom.name == "P")) {
|
|
101160
|
-
|
|
101161
|
-
//if(atom.chain != 'DUM' &&(atom.name == "CA" || atom.name == "P")) {
|
|
101162
|
-
let resid = atom.structure + '_' + atom.chain + '_' + atom.resi;
|
|
101163
|
-
if(residHash.hasOwnProperty(resid)) {
|
|
101164
|
-
continue;
|
|
101165
|
-
}
|
|
101166
|
-
else {
|
|
101167
|
-
residHash[resid] = 1;
|
|
101168
|
-
}
|
|
101159
|
+
//if(atom.chain != 'DUM' && (bAnyAtom || atom.het || (atom.name == "CA" && atom.elem == "C") || atom.name == "O3'" || atom.name == "O3*" || atom.name == "P")) {
|
|
101160
|
+
if(atom.chain != 'DUM') {
|
|
101169
101161
|
let resName = me.utilsCls.residueName2Abbr(atom.resn) + atom.resi;
|
|
101170
101162
|
if(labelType == 'chain' || labelType == 'structure') resName += '.' + atom.chain;
|
|
101171
101163
|
if(labelType == 'structure') resName += '.' + atom.structure;
|
|
@@ -120659,6 +120651,7 @@ class DefinedSets {
|
|
|
120659
120651
|
}
|
|
120660
120652
|
}
|
|
120661
120653
|
//}
|
|
120654
|
+
|
|
120662
120655
|
return residuesHash;
|
|
120663
120656
|
}
|
|
120664
120657
|
|
|
@@ -122589,6 +122582,8 @@ class Selection {
|
|
|
122589
122582
|
selectMainChains() { let ic = this.icn3d, me = ic.icn3dui;
|
|
122590
122583
|
let currHAtoms = me.hashUtilsCls.cloneHash(ic.hAtoms);
|
|
122591
122584
|
|
|
122585
|
+
ic.opts.pk = 'atom';
|
|
122586
|
+
|
|
122592
122587
|
ic.hAtoms = ic.applyDisplayCls.selectMainChainSubset(currHAtoms);
|
|
122593
122588
|
|
|
122594
122589
|
ic.hlUpdateCls.showHighlight();
|
|
@@ -122598,6 +122593,8 @@ class Selection {
|
|
|
122598
122593
|
selectSideChains() { let ic = this.icn3d, me = ic.icn3dui;
|
|
122599
122594
|
let currHAtoms = me.hashUtilsCls.cloneHash(ic.hAtoms);
|
|
122600
122595
|
|
|
122596
|
+
ic.opts.pk = 'atom';
|
|
122597
|
+
|
|
122601
122598
|
ic.hAtoms = this.getSideAtoms(currHAtoms);
|
|
122602
122599
|
ic.hlUpdateCls.showHighlight();
|
|
122603
122600
|
}
|
|
@@ -122619,6 +122616,8 @@ class Selection {
|
|
|
122619
122616
|
selectMainSideChains() { let ic = this.icn3d, me = ic.icn3dui;
|
|
122620
122617
|
let residHash = ic.firstAtomObjCls.getResiduesFromAtoms(ic.hAtoms);
|
|
122621
122618
|
|
|
122619
|
+
ic.opts.pk = 'residue';
|
|
122620
|
+
|
|
122622
122621
|
ic.hAtoms = {};
|
|
122623
122622
|
for(let resid in residHash) {
|
|
122624
122623
|
ic.hAtoms = me.hashUtilsCls.unionHash(ic.hAtoms, ic.residues[resid]);
|
|
@@ -122795,8 +122794,9 @@ class Selection {
|
|
|
122795
122794
|
description = name;
|
|
122796
122795
|
}
|
|
122797
122796
|
|
|
122798
|
-
if(Object.keys(ic.selectedResidues).length > 0) {
|
|
122799
|
-
if(ic.pk == 1) {
|
|
122797
|
+
//if(Object.keys(ic.selectedResidues).length > 0) {
|
|
122798
|
+
// if(ic.pk == 1) {
|
|
122799
|
+
if(ic.opts.pk == 'atom') {
|
|
122800
122800
|
let bAtom = true;
|
|
122801
122801
|
this.selectResidueList(ic.hAtoms, name, description, undefined, undefined, bAtom);
|
|
122802
122802
|
//ic.hlUpdateCls.updateHlAll();
|
|
@@ -122823,7 +122823,7 @@ class Selection {
|
|
|
122823
122823
|
me.htmlCls.clickMenuCls.setLogCmd('select ' + ic.resid2specCls.residueids2spec(Object.keys(ic.selectedResidues)), true);
|
|
122824
122824
|
}
|
|
122825
122825
|
}
|
|
122826
|
-
}
|
|
122826
|
+
//}
|
|
122827
122827
|
}
|
|
122828
122828
|
|
|
122829
122829
|
saveSelInCommand() { let ic = this.icn3d, me = ic.icn3dui;
|