Skip to content

Commit

Permalink
fixed colors for hbind
Browse files Browse the repository at this point in the history
  • Loading branch information
Valerij Talagayev committed Mar 17, 2024
1 parent 961795f commit 9044002
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
2 changes: 1 addition & 1 deletion openmmdl/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.0+714.g9be5cdb.dirty"
__version__ = "1.0.0+723.g961795f.dirty"
8 changes: 4 additions & 4 deletions openmmdl/openmmdl_analysis/openmmdlanalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,13 +603,13 @@ def main():
update_dict(
hbond_donor_dict,
hbond_acceptor_dict,
ni_dict,
pi_dict,
hydrophobic_dict,
hbond_both_dict,
waterbridge_dict,
pistacking_dict,
halogen_dict,
ni_dict,
pi_dict,
pication_dict,
metal_dict,
)
Expand All @@ -620,12 +620,12 @@ def main():
for x in highlighted_hbond_donor
+ highlighted_hbond_acceptor
+ highlighted_hbond_both
+ highlighted_ni
+ highlighted_pi
+ highlighted_hydrophobic
+ highlighted_waterbridge
+ highlighted_pistacking
+ highlighted_halogen
+ highlighted_ni
+ highlighted_pi
+ highlighted_pication
+ highlighted_metal
]
Expand Down
20 changes: 17 additions & 3 deletions openmmdl/openmmdl_analysis/rdkit_figure_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,12 +377,26 @@ def create_and_merge_images(
for i, data in enumerate(filtered_split_data):
y = data_points[i]
label = data.split()[-1]
if label == "saltbridge":
type = data.split()[-2]
type = data.split()[-2]
if label == "hydrophobic":
(line,) = ax.plot(x, y, label=data, color=(0.8, 1, 0), linewidth=5.0)
elif label == "hbond":
(line,) = ax.plot(x, y, label=data, color=(1.0, 0.6, 0.6), linewidth=5.0)
if type == "Acceptor":
(line,) = ax.plot(
x, y, label=data, color=(1.0, 0.6, 0.6), linewidth=5.0
)
elif type == "Donor":
(line,) = ax.plot(
x, y, label=data, color=(0.3, 0.5, 1.0), linewidth=5.0
)
elif label == "halogen":
(line,) = ax.plot(x, y, label=data, color=(1.0, 0.0, 0.9), linewidth=5.0)
elif label == "pistacking":
(line,) = ax.plot(x, y, label=data, color=(0.0, 0.0, 1.0), linewidth=5.0)
elif label == "pication":
(line,) = ax.plot(x, y, label=data, color=(0.0, 0.0, 1.0), linewidth=5.0)
elif label == "waterbridge":
(line,) = ax.plot(x, y, label=data, color=(0.0, 1.0, 0.9), linewidth=5.0)
elif label == "metal":
(line,) = ax.plot(x, y, label=data, color=(1.0, 0.6, 0.0), linewidth=5.0)
elif label == "saltbridge":
Expand Down

0 comments on commit 9044002

Please sign in to comment.