소스 검색

ASA coloring wrong after removing part of a chain #132

JonStargaryen 3 년 전
부모
커밋
c6073b894a
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/mol-model-props/computed/accessible-surface-area/shrake-rupley.ts

+ 1 - 2
src/mol-model-props/computed/accessible-surface-area/shrake-rupley.ts

@@ -101,9 +101,8 @@ namespace AccessibleSurfaceArea {
     }
 
     export function getValue(location: StructureElement.Location, accessibleSurfaceArea: AccessibleSurfaceArea) {
-        const { getSerialIndex } = location.structure.root.serialMapping;
         const { area, serialResidueIndex } = accessibleSurfaceArea;
-        const rSI = serialResidueIndex[getSerialIndex(location.unit, location.element)];
+        const rSI = serialResidueIndex[location.element];
         if (rSI === -1) return -1;
         return area[rSI];
     }