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.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 - 1) { // remove the strand
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
  }
@@ -42999,6 +43003,10 @@ class ShowSeq {
42999
43003
  if(strandArray[strandCnt].anchorRefnum) { // use anchor to name refnum
43000
43004
  if(currResi == strandArray[strandCnt].startResi) {
43001
43005
  refnumInStrand = strandArray[strandCnt].anchorRefnum - strandArray[strandCnt].resCntBfAnchor;
43006
+ strandArray[strandCnt].startRefnum = refnumInStrand;
43007
+ }
43008
+ else if(currResi == strandArray[strandCnt].endResi) {
43009
+ strandArray[strandCnt].endRefnum = refnumInStrand;
43002
43010
  }
43003
43011
 
43004
43012
  refnumLabelNoPostfix = strandArray[strandCnt].strand + refnumInStrand;
@@ -56301,11 +56309,13 @@ class LoadPDB {
56301
56309
  }
56302
56310
  }
56303
56311
 
56304
- setSsbond() { let ic = this.icn3d; ic.icn3dui;
56312
+ setSsbond(chainidHash) { let ic = this.icn3d; ic.icn3dui;
56305
56313
  // get all Cys residues
56306
56314
  let structure2cys_resid = {};
56307
56315
 
56308
56316
  for(let chainid in ic.chainsSeq) {
56317
+ if(chainidHash && !chainidHash.hasOwnProperty(chainid)) continue;
56318
+
56309
56319
  let seq = ic.chainsSeq[chainid];
56310
56320
  let structure = chainid.substr(0, chainid.indexOf('_'));
56311
56321
 
@@ -63211,7 +63221,7 @@ if(!me.bNode) {
63211
63221
  prevStrand = (refnumLabel) ? refnumLabel.replace(new RegExp(refnum,'g'), '') : undefined;
63212
63222
 
63213
63223
  ic.resid2refnum[resid] = refnumLabel;
63214
-
63224
+ console.log(resid + " " + refnumLabel);
63215
63225
  // final reference numbers will be assign in ic.showSeqCls.showRefNum()
63216
63226
 
63217
63227
  // if(!ic.refnum2residArray.hasOwnProperty(refnum)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icn3d",
3
- "version": "3.25.4",
3
+ "version": "3.25.6",
4
4
  "main": "./icn3d.js",
5
5
  "exports": {
6
6
  ".": {