ソースを参照

don't be rigid

JonStargaryen 3 年 前
コミット
747b040e8a
2 ファイル変更6 行追加2 行削除
  1. 4 0
      CHANGELOG.md
  2. 2 2
      src/viewer/helpers/superpose/pecos-integration.ts

+ 4 - 0
CHANGELOG.md

@@ -2,6 +2,10 @@
 
 [Semantic Versioning](https://semver.org/)
 
+## [1.8.2] - 2021-07-20
+### Bug fixes
+- Post-pare for pecos API changes
+
 ## [1.8.1] - 2021-07-16
 ### Added
 - Prepare for pecos API changes

+ 2 - 2
src/viewer/helpers/superpose/pecos-integration.ts

@@ -56,8 +56,8 @@ export async function alignMotifs(query: MotifSelection, hit: MotifSelection): P
     // polls every 25ms for up to 10 seconds
     const result = await pollUntilDone(url, 25, 10 * 1000);
 
-    const { alignment_summary, rigid_blocks } = result.results[0];
-    return { rmsd: alignment_summary.scores[0].value, matrix: rigid_blocks[0].transformations[0] };
+    const { alignment_summary, blocks } = result.results[0];
+    return { rmsd: alignment_summary.scores[0].value, matrix: blocks[0].transformations[0] };
 }
 
 // convert strucmotif/arches residue identifiers to the pecos/sierra flavor