icn3d 3.34.4 → 3.34.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 +3 -1
- package/icn3d.min.js +1 -1
- package/icn3d.module.js +3 -1
- package/package.json +1 -1
package/icn3d.module.js
CHANGED
|
@@ -41175,9 +41175,11 @@ class AnnoCddSite {
|
|
|
41175
41175
|
getResiArrayStr(resiNCBIArray, chainid) { let ic = this.icn3d; ic.icn3dui;
|
|
41176
41176
|
let resiArrayStr = '';
|
|
41177
41177
|
for(let i = 0, il = resiNCBIArray.length; i < il; ++i) {
|
|
41178
|
-
let resiNCBI = resiNCBIArray[i];
|
|
41178
|
+
let resiNCBI = resiNCBIArray[i] + 1; // zero-based
|
|
41179
41179
|
let residNCBI = chainid + '_' + resiNCBI;
|
|
41180
41180
|
let resid = ic.ncbi2resid[residNCBI];
|
|
41181
|
+
if(!resid) resid = residNCBI; // this happens sometimes, e.g., Q9Y4K1
|
|
41182
|
+
|
|
41181
41183
|
let resi = resid.split('_')[2];
|
|
41182
41184
|
if(i > 0) resiArrayStr += ',';
|
|
41183
41185
|
resiArrayStr += resi;
|