icn3d 3.25.5 → 3.25.6
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 +9 -3
- package/icn3d.min.js +2 -2
- package/icn3d.module.js +9 -3
- package/package.json +1 -1
package/icn3d.module.js
CHANGED
|
@@ -42911,7 +42911,11 @@ class ShowSeq {
|
|
|
42911
42911
|
|
|
42912
42912
|
// 2. remove strands with less than 3 residues
|
|
42913
42913
|
for(let il = strandArray.length, i = il - 1; i >= 0; --i) {
|
|
42914
|
-
if(strandArray[i].endRefnum - strandArray[i].startRefnum < 3
|
|
42914
|
+
if(strandArray[i].endRefnum - strandArray[i].startRefnum + 1 < 3) { // remove the strand
|
|
42915
|
+
if(i != il - 1) { // modify
|
|
42916
|
+
strandArray[i + 1].loopResCnt += strandArray[i].endRefnum - strandArray[i].startRefnum + 1;
|
|
42917
|
+
}
|
|
42918
|
+
|
|
42915
42919
|
strandArray.splice(i, 1);
|
|
42916
42920
|
}
|
|
42917
42921
|
}
|
|
@@ -56305,11 +56309,13 @@ class LoadPDB {
|
|
|
56305
56309
|
}
|
|
56306
56310
|
}
|
|
56307
56311
|
|
|
56308
|
-
setSsbond() { let ic = this.icn3d; ic.icn3dui;
|
|
56312
|
+
setSsbond(chainidHash) { let ic = this.icn3d; ic.icn3dui;
|
|
56309
56313
|
// get all Cys residues
|
|
56310
56314
|
let structure2cys_resid = {};
|
|
56311
56315
|
|
|
56312
56316
|
for(let chainid in ic.chainsSeq) {
|
|
56317
|
+
if(chainidHash && !chainidHash.hasOwnProperty(chainid)) continue;
|
|
56318
|
+
|
|
56313
56319
|
let seq = ic.chainsSeq[chainid];
|
|
56314
56320
|
let structure = chainid.substr(0, chainid.indexOf('_'));
|
|
56315
56321
|
|
|
@@ -63215,7 +63221,7 @@ if(!me.bNode) {
|
|
|
63215
63221
|
prevStrand = (refnumLabel) ? refnumLabel.replace(new RegExp(refnum,'g'), '') : undefined;
|
|
63216
63222
|
|
|
63217
63223
|
ic.resid2refnum[resid] = refnumLabel;
|
|
63218
|
-
|
|
63224
|
+
console.log(resid + " " + refnumLabel);
|
|
63219
63225
|
// final reference numbers will be assign in ic.showSeqCls.showRefNum()
|
|
63220
63226
|
|
|
63221
63227
|
// if(!ic.refnum2residArray.hasOwnProperty(refnum)) {
|