icn3d 3.25.4 → 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 +13 -3
- package/icn3d.min.js +2 -2
- package/icn3d.module.js +13 -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
|
}
|
|
@@ -42098,6 +42102,10 @@ class ShowSeq {
|
|
|
42098
42102
|
if(strandArray[strandCnt].anchorRefnum) { // use anchor to name refnum
|
|
42099
42103
|
if(currResi == strandArray[strandCnt].startResi) {
|
|
42100
42104
|
refnumInStrand = strandArray[strandCnt].anchorRefnum - strandArray[strandCnt].resCntBfAnchor;
|
|
42105
|
+
strandArray[strandCnt].startRefnum = refnumInStrand;
|
|
42106
|
+
}
|
|
42107
|
+
else if(currResi == strandArray[strandCnt].endResi) {
|
|
42108
|
+
strandArray[strandCnt].endRefnum = refnumInStrand;
|
|
42101
42109
|
}
|
|
42102
42110
|
|
|
42103
42111
|
refnumLabelNoPostfix = strandArray[strandCnt].strand + refnumInStrand;
|
|
@@ -55400,11 +55408,13 @@ class LoadPDB {
|
|
|
55400
55408
|
}
|
|
55401
55409
|
}
|
|
55402
55410
|
|
|
55403
|
-
setSsbond() { let ic = this.icn3d; ic.icn3dui;
|
|
55411
|
+
setSsbond(chainidHash) { let ic = this.icn3d; ic.icn3dui;
|
|
55404
55412
|
// get all Cys residues
|
|
55405
55413
|
let structure2cys_resid = {};
|
|
55406
55414
|
|
|
55407
55415
|
for(let chainid in ic.chainsSeq) {
|
|
55416
|
+
if(chainidHash && !chainidHash.hasOwnProperty(chainid)) continue;
|
|
55417
|
+
|
|
55408
55418
|
let seq = ic.chainsSeq[chainid];
|
|
55409
55419
|
let structure = chainid.substr(0, chainid.indexOf('_'));
|
|
55410
55420
|
|
|
@@ -62310,7 +62320,7 @@ if(!me.bNode) {
|
|
|
62310
62320
|
prevStrand = (refnumLabel) ? refnumLabel.replace(new RegExp(refnum,'g'), '') : undefined;
|
|
62311
62321
|
|
|
62312
62322
|
ic.resid2refnum[resid] = refnumLabel;
|
|
62313
|
-
|
|
62323
|
+
console.log(resid + " " + refnumLabel);
|
|
62314
62324
|
// final reference numbers will be assign in ic.showSeqCls.showRefNum()
|
|
62315
62325
|
|
|
62316
62326
|
// if(!ic.refnum2residArray.hasOwnProperty(refnum)) {
|