瀏覽代碼

tweaked ligandPlusConnected selection

Alexander Rose 5 年之前
父節點
當前提交
b34c5c743b
共有 1 個文件被更改,包括 10 次插入2 次删除
  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
     })
 ])