Explorar el Código

Removed unneccessary wholeResidues query from new ligand selection query as the atomGroups residue-test already covers this functionality

Jason Pattle hace 2 años
padre
commit
d341463f67
Se han modificado 1 ficheros con 6 adiciones y 8 borrados
  1. 6 8
      src/mol-plugin-state/helpers/structure-selection-query.ts

+ 6 - 8
src/mol-plugin-state/helpers/structure-selection-query.ts

@@ -360,14 +360,12 @@ const ligand = StructureSelectionQuery('Ligand', MS.struct.modifier.union([
                     ])
                 }),
             ]),
-            MS.struct.modifier.wholeResidues({
-                0: MS.struct.generator.atomGroups({
-                    'chain-test': MS.core.rel.eq([MS.ammp('objectPrimitive'), 'atomistic']),
-                    'residue-test': MS.core.set.has([
-                        MS.set(...SetUtils.toArray(CommonProteinCaps)),
-                        MS.ammp('label_comp_id'),
-                    ]),
-                }),
+            MS.struct.generator.atomGroups({
+                'chain-test': MS.core.rel.eq([MS.ammp('objectPrimitive'), 'atomistic']),
+                'residue-test': MS.core.set.has([
+                    MS.set(...SetUtils.toArray(CommonProteinCaps)),
+                    MS.ammp('label_comp_id'),
+                ]),
             }),
         ])
     })