Skip to content

Commit

Permalink
Merge branch 'wolberlab:main' into forcecfield_implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
talagayev authored Jun 8, 2024
2 parents 6ceb8d5 + df1e1a8 commit e90bdf7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions openmmdl/openmmdl_analysis/openmmdlanalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ def main():

# Convert the svg to an png
cairosvg.svg2png(
url=f"{binding_mode}.{fig_type}", write_to=f"{binding_mode}.png"
url=f"{binding_mode}.svg", write_to=f"{binding_mode}.png"
)

# Generate the interactions legend and combine it with the ligand png
Expand All @@ -716,8 +716,12 @@ def main():
merged_image_paths, "all_binding_modes_arranged.png"
)
generate_ligand_image(
ligand, "complex.pdb", "lig_no_h.pdb", "lig.smi", f"ligand_numbering.{fig_type}"
ligand, "complex.pdb", "lig_no_h.pdb", "lig.smi", f"ligand_numbering.svg"
)
if fig_type == "png":
cairosvg.svg2png(
url=f"ligand_numbering.svg", write_to=f"ligand_numbering.png"
)
print("\033[1mBinding mode figure generated\033[0m")
except Exception as e:
print(f"Ligand could not be recognized, use the -l option")
Expand Down

0 comments on commit e90bdf7

Please sign in to comment.