|
@@ -1,5 +1,5 @@
|
|
|
/**
|
|
|
- * Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
|
+ * Copyright (c) 2021-23 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
|
*
|
|
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
|
*/
|
|
@@ -52,8 +52,7 @@ namespace SIFTSMapping {
|
|
|
const model = loc.unit.model;
|
|
|
const data = Provider.get(model).value;
|
|
|
if (!data) return '';
|
|
|
- const eI = loc.unit.elements[loc.element];
|
|
|
- const rI = model.atomicHierarchy.residueAtomSegments.index[eI];
|
|
|
+ const rI = model.atomicHierarchy.residueAtomSegments.index[loc.element];
|
|
|
return data.accession[rI];
|
|
|
}
|
|
|
|
|
@@ -61,9 +60,9 @@ namespace SIFTSMapping {
|
|
|
const model = loc.unit.model;
|
|
|
const data = Provider.get(model).value;
|
|
|
if (!data) return;
|
|
|
- const eI = loc.unit.elements[loc.element];
|
|
|
- const rI = model.atomicHierarchy.residueAtomSegments.index[eI];
|
|
|
+ const rI = model.atomicHierarchy.residueAtomSegments.index[loc.element];
|
|
|
const dbName = data.dbName[rI];
|
|
|
+
|
|
|
if (!dbName) return;
|
|
|
return `${dbName} ${data.accession[rI]} ${data.num[rI]} ${data.residue[rI]}`;
|
|
|
}
|