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.js
CHANGED
|
@@ -42010,7 +42010,11 @@ class ShowSeq {
|
|
|
42010
42010
|
|
|
42011
42011
|
// 2. remove strands with less than 3 residues
|
|
42012
42012
|
for(let il = strandArray.length, i = il - 1; i >= 0; --i) {
|
|
42013
|
-
if(strandArray[i].endRefnum - strandArray[i].startRefnum < 3
|
|
42013
|
+
if(strandArray[i].endRefnum - strandArray[i].startRefnum + 1 < 3) { // remove the strand
|
|
42014
|
+
if(i != il - 1) { // modify
|
|
42015
|
+
strandArray[i + 1].loopResCnt += strandArray[i].endRefnum - strandArray[i].startRefnum + 1;
|
|
42016
|
+
}
|
|
42017
|
+
|
|
42014
42018
|
strandArray.splice(i, 1);
|
|
42015
42019
|
}
|
|
42016
42020
|
}
|
|
@@ -55404,11 +55408,13 @@ class LoadPDB {
|
|
|
55404
55408
|
}
|
|
55405
55409
|
}
|
|
55406
55410
|
|
|
55407
|
-
setSsbond() { let ic = this.icn3d; ic.icn3dui;
|
|
55411
|
+
setSsbond(chainidHash) { let ic = this.icn3d; ic.icn3dui;
|
|
55408
55412
|
// get all Cys residues
|
|
55409
55413
|
let structure2cys_resid = {};
|
|
55410
55414
|
|
|
55411
55415
|
for(let chainid in ic.chainsSeq) {
|
|
55416
|
+
if(chainidHash && !chainidHash.hasOwnProperty(chainid)) continue;
|
|
55417
|
+
|
|
55412
55418
|
let seq = ic.chainsSeq[chainid];
|
|
55413
55419
|
let structure = chainid.substr(0, chainid.indexOf('_'));
|
|
55414
55420
|
|
|
@@ -62314,7 +62320,7 @@ if(!me.bNode) {
|
|
|
62314
62320
|
prevStrand = (refnumLabel) ? refnumLabel.replace(new RegExp(refnum,'g'), '') : undefined;
|
|
62315
62321
|
|
|
62316
62322
|
ic.resid2refnum[resid] = refnumLabel;
|
|
62317
|
-
|
|
62323
|
+
console.log(resid + " " + refnumLabel);
|
|
62318
62324
|
// final reference numbers will be assign in ic.showSeqCls.showRefNum()
|
|
62319
62325
|
|
|
62320
62326
|
// if(!ic.refnum2residArray.hasOwnProperty(refnum)) {
|