JonStargaryen 3 years ago
parent
commit
7060a1918f
2 changed files with 4 additions and 8 deletions
  1. 1 4
      src/viewer/helpers/preset.ts
  2. 3 4
      src/viewer/helpers/selection.ts

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

@@ -108,9 +108,7 @@ const CommonParams = StructureRepresentationPresetProvider.CommonParams;
 export const RcsbPreset = TrajectoryHierarchyPresetProvider({
     id: 'preset-trajectory-rcsb',
     display: { name: 'RCSB' },
-    isApplicable: () => {
-        return true;
-    },
+    isApplicable: () => true,
     params: RcsbParams,
     async apply(trajectory, params, plugin) {
         const builder = plugin.builders.structure;
@@ -208,7 +206,6 @@ export const RcsbPreset = TrajectoryHierarchyPresetProvider({
             representation = await plugin.builders.structure.representation.applyPreset(structureProperties!, RcsbSuperpositionRepresentationPreset, params);
         } else if (p.kind === 'validation') {
             representation = await plugin.builders.structure.representation.applyPreset(structureProperties!, ValidationReportGeometryQualityPreset);
-
         } else if (p.kind === 'symmetry') {
             representation = await plugin.builders.structure.representation.applyPreset<any>(structureProperties!, AssemblySymmetryPreset, { symmetryIndex: p.symmetryIndex });
 

+ 3 - 4
src/viewer/helpers/selection.ts

@@ -10,7 +10,7 @@ export type Target = {
     readonly label_seq_id?: number
     readonly label_comp_id?: string
     readonly label_asym_id?: string
-    readonly operatorName?: string
+    // TODO add support for 'operators'
 }
 
 export type Range = {
@@ -156,9 +156,8 @@ function targetToExpression(target: Target): Expression {
     if (target.label_asym_id) {
         chainTests.push(MS.core.rel.eq([target.label_asym_id, MS.ammp('label_asym_id')]));
     }
-    if (target.operatorName) {
-        chainTests.push(MS.core.rel.eq([target.operatorName, MS.acp('operatorName')]));
-    }
+    // TODO add support for 'operators'
+
     if (chainTests.length === 1) {
         tests['chain-test'] = chainTests[0];
     } else if (chainTests.length > 1) {