icn3d 3.25.17 → 3.25.18

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 CHANGED
@@ -42181,12 +42181,10 @@ class ShowSeq {
42181
42181
  prevStrand = currStrand;
42182
42182
  }
42183
42183
 
42184
- // 2. remove strands with less than 3 residues
42184
+ // 2. remove strands with less than 3 residues except G strand
42185
42185
  for(let il = strandArray.length, i = il - 1; i >= 0; --i) {
42186
- if(strandArray[i].endRefnum - strandArray[i].startRefnum + 1 < 3) { // remove the strand
42186
+ if(strandArray[i].strand.substr(0, 1) != 'G' && strandArray[i].endRefnum - strandArray[i].startRefnum + 1 < 3) { // remove the strand
42187
42187
  if(i != il - 1) { // modify
42188
- // strandArray[i + 1].loopResCnt += strandArray[i].loopResCnt + strandArray[i].endRefnum - strandArray[i].startRefnum + 1;
42189
-
42190
42188
  strandArray[i + 1].loopResCnt += strandArray[i].loopResCnt + parseInt(strandArray[i].endResi) - parseInt(strandArray[i].startResi) + 1;
42191
42189
  }
42192
42190