소스 검색

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
     })
 ])