Browse Source

Issue #805: RcsbPreset as representation provider

cycle20 1 year ago
parent
commit
4c130acadb
2 changed files with 22 additions and 6 deletions
  1. 14 0
      build.sh
  2. 8 6
      src/examples/assembly-tm/index.ts

+ 14 - 0
build.sh

@@ -0,0 +1,14 @@
+cd ../molstar3
+npm run build
+npm pack
+
+cd ../rcsb-molstar
+npm i /lhome/csongor/molstar3/molstar-3.40.1.tgz
+npm run build
+npm pack
+
+cd ../rcsb-saguaro-3d
+npm i /lhome/csongor/rcsb-molstar/rcsb-rcsb-molstar-2.8.0.tgz
+npm i /lhome/csongor/molstar3/molstar-3.40.1.tgz
+npm run devServer
+

+ 8 - 6
src/examples/assembly-tm/index.ts

@@ -18,11 +18,11 @@ import {
 } from "./UniTmpHelper";
 import { updateSiteColors } from "./UniTmpColor";
 import { fvConfig, rowConfig } from "./FeatureViewConfig";
-
+import { RcsbPreset } from "@rcsb/rcsb-molstar/build/src/viewer/helpers/preset";
 
 const side1 = "Inside";
-const htpEntry = "SC5AA_HUMAN";
-const pdbEntry = "7ynk";
+const htpEntry = "GLPA_HUMAN";
+const pdbEntry = "1afo";
 const pdbtmEntry = `${pdbEntry}_A`;
 
 
@@ -47,10 +47,12 @@ const molstarConfig: RcsbFvStructureConfigInterface<LoadMolstarInterface<unknown
     loadConfig: {
         loadMethod: LoadMethod.loadStructureFromUrl,
         loadParams: {
-            url: `https://pdbtm.unitmp.org/api/v1/entry/${pdbEntry}.trpdb`,
-            format: 'pdb',
+            //url: `https://pdbtm.unitmp.org/api/v1/entry/${pdbEntry}.trpdb`,
+            url: `https://www.ebi.ac.uk/pdbe/entry-files/download/${pdbEntry}_updated.cif`,
+            format: 'mmcif',
             isBinary: false,
-            id:"7ynk_model"
+            id: `${pdbEntry}_model`,
+            reprProvider: RcsbPreset
         }
     },
     structureViewerConfig: {