Spaces:
Sleeping
Sleeping
Show ligands
Browse files
hexviz/🧬Attention_Visualization.py
CHANGED
@@ -91,7 +91,12 @@ def get_3dview(pdb):
|
|
91 |
|
92 |
for att_weight, first, second, _, _, _ in attention_pairs:
|
93 |
stmol.add_cylinder(xyzview, start=first, end=second, cylradius=att_weight, cylColor='red', dashed=False)
|
94 |
-
|
|
|
|
|
|
|
|
|
|
|
95 |
if label_resi:
|
96 |
for hl_resi in hl_resi_list:
|
97 |
xyzview.addResLabels({"chain": hl_chain,"resi": hl_resi},
|
|
|
91 |
|
92 |
for att_weight, first, second, _, _, _ in attention_pairs:
|
93 |
stmol.add_cylinder(xyzview, start=first, end=second, cylradius=att_weight, cylColor='red', dashed=False)
|
94 |
+
|
95 |
+
xyzview.addStyle({"elem": "C", "hetflag": True},
|
96 |
+
{"stick": {"color": "white", "radius": 0.2}})
|
97 |
+
xyzview.addStyle({"hetflag": True},
|
98 |
+
{"stick": {"radius": 0.2}})
|
99 |
+
|
100 |
if label_resi:
|
101 |
for hl_resi in hl_resi_list:
|
102 |
xyzview.addResLabels({"chain": hl_chain,"resi": hl_resi},
|