icn3d 3.34.3 → 3.34.4

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
@@ -41172,6 +41172,20 @@ class AnnoCddSite {
41172
41172
  ic.bAjaxCddSite = true;
41173
41173
  }
41174
41174
 
41175
+ getResiArrayStr(resiNCBIArray, chainid) { let ic = this.icn3d; ic.icn3dui;
41176
+ let resiArrayStr = '';
41177
+ for(let i = 0, il = resiNCBIArray.length; i < il; ++i) {
41178
+ let resiNCBI = resiNCBIArray[i];
41179
+ let residNCBI = chainid + '_' + resiNCBI;
41180
+ let resid = ic.ncbi2resid[residNCBI];
41181
+ let resi = resid.split('_')[2];
41182
+ if(i > 0) resiArrayStr += ',';
41183
+ resiArrayStr += resi;
41184
+ }
41185
+
41186
+ return resiArrayStr;
41187
+ }
41188
+
41175
41189
  setDomainFeature(domainArray, chnid, type, html, html2, html3, acc2domain, titleArray, fullTitleArray) { let ic = this.icn3d, me = ic.icn3dui;
41176
41190
 
41177
41191
  let bNonDomainFeat = (type != 'domain' && type != 'feat') ? true : false;
@@ -41308,7 +41322,9 @@ class AnnoCddSite {
41308
41322
  if(ic.seqStartLen && ic.seqStartLen[chnid]) html += ic.showSeqCls.insertMulGap(ic.seqStartLen[chnid], '-');
41309
41323
 
41310
41324
  if(me.bNode && type == 'domain') {
41311
- ic.chainid2cdd[chnid].push(fulltitle + "_from_" + fromArray + "_to_" + toArray);
41325
+ let fromStr = this.getResiArrayStr(fromArray, chnid);
41326
+ let toStr = this.getResiArrayStr(toArray, chnid);
41327
+ ic.chainid2cdd[chnid].push(fulltitle + "_from_" + fromStr + "_to_" + toStr);
41312
41328
  }
41313
41329
 
41314
41330
  for(let i = 0, il = ic.giSeq[chnid].length; i < il; ++i) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icn3d",
3
- "version": "3.34.3",
3
+ "version": "3.34.4",
4
4
  "main": "./icn3d.js",
5
5
  "exports": {
6
6
  ".": {