Browse Source

tweaked ligandPlusConnected selection

Alexander Rose 5 years ago
parent
commit
b34c5c743b
1 changed files with 10 additions and 2 deletions
  1. 10 2
      src/mol-plugin/util/structure-selection-helper.ts

+ 10 - 2
src/mol-plugin/util/structure-selection-helper.ts

@@ -127,9 +127,17 @@ const ligand = MS.struct.modifier.union([
     })
 ])
 
+// don't innclude branched entities as they have their own link representation
 const ligandPlusConnected = MS.struct.modifier.union([
-    MS.struct.modifier.includeConnected({
-        0: ligand, 'layer-count': 1, 'as-whole-residues': true
+    MS.struct.modifier.exceptBy({
+        0: MS.struct.modifier.union([
+            MS.struct.modifier.includeConnected({
+                0: ligand,
+                'layer-count': 1,
+                'as-whole-residues': true
+            })
+        ]),
+        by: branched
     })
 ])