JonStargaryen 3 роки тому
батько
коміт
6dbaccfa4d
2 змінених файлів з 4 додано та 2 видалено
  1. 2 1
      src/viewer/helpers/preset.ts
  2. 2 1
      src/viewer/index.html

+ 2 - 1
src/viewer/helpers/preset.ts

@@ -149,7 +149,6 @@ type FeatureDensityProps = {
 type MotifProps = {
     kind: 'motif',
     targets: Target[],
-    matrix?: Mat4,
     color?: number
 } & BaseProps
 
@@ -321,6 +320,8 @@ export const RcsbPreset = TrajectoryHierarchyPresetProvider({
             console.warn('Using empty representation');
         } else if (p.kind === 'membrane') {
             representation = await plugin.builders.structure.representation.applyPreset(structureProperties!, MembraneOrientationPreset);
+        } else if (p.kind === 'motif') {
+            // TODO impl
         } else {
             representation = await plugin.builders.structure.representation.applyPreset(structureProperties!, 'auto');
         }

+ 2 - 1
src/viewer/index.html

@@ -85,6 +85,7 @@
             Superposed
             <button style="padding: 3px;" onclick="superposed()">3PQR | 1U19</button>
 
+            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
             Motifs
             <button style="padding: 3px;" onclick="motifs()">4CHA | 6YIW</button>
@@ -360,7 +361,7 @@
                             ] })
                     })
                     .then(function() {
-                        return viewer.loadPdbId('1u19', { kind: 'motif', assemblyId: '1', targets: [
+                        return viewer.loadPdbId('6yiw', { kind: 'motif', assemblyId: '1', targets: [
                                 { label_asym_id: 'A', label_seq_id: 40 }, { label_asym_id: 'A', label_seq_id: 84 }, { label_asym_id: 'A', label_seq_id: 177 }
                             ] }, [
                                 0.1651637134205112, 0.7020365618749254, 0.6927233311791812, 0,