Browse Source

add rings selection to UI

Alexander Rose 5 years ago
parent
commit
9b24e6fb1f

+ 1 - 1
src/mol-plugin-ui/structure/selection.tsx

@@ -19,7 +19,7 @@ const SSQ = StructureSelectionQueries
 const DefaultQueries: (keyof typeof SSQ)[] = [
     'all', 'polymer', 'trace', 'backbone', 'protein', 'nucleic',
     'helix', 'beta',
-    'water', 'branched', 'ligand', 'nonStandardPolymer',
+    'water', 'branched', 'ligand', 'nonStandardPolymer', 'ring',
     'surroundings', 'complement', 'bonded'
 ]
 

+ 5 - 0
src/mol-plugin/util/structure-selection-helper.ts

@@ -294,6 +294,10 @@ const coarse = StructureSelectionQuery('Coarse Elements', MS.struct.modifier.uni
     })
 ]))
 
+const ring = StructureSelectionQuery('Rings in Residues', MS.struct.modifier.union([
+    MS.struct.generator.rings()
+]))
+
 const surroundings = StructureSelectionQuery('Surrounding Residues (5 \u212B) of Selection', MS.struct.modifier.union([
     MS.struct.modifier.exceptBy({
         0: MS.struct.modifier.includeSurroundings({
@@ -340,6 +344,7 @@ export const StructureSelectionQueries = {
     modified,
     nonStandardPolymer,
     coarse,
+    ring,
     surroundings,
     complement,
     bonded,