Skip to content

make_lineage_figures.py shows error while calculating the lineage for one of the compuound in 10th generation #3

@sathishdasari

Description

@sathishdasari

I ran the augrow4 tutorial for PARP protein that was given in the software with default parameters (10 generations). It ran well , but when I was doing a lineage for one of the compound in 10th generation it gave me the following error. I used the following command

python3 -o Run_0/ -i Run_0/ --source_compound_file autogrow4/source_compounds/naphthalene_smiles.smi --mol_name Gen_10_Mutant_61_696989

The full-length name of the ligand is: (Gen_9_Cross_925756+ZINC000039320176)Gen_10_Mutant_61_696989

Traceback (most recent call last):
File "/home/s3dasari@NEXUS.UWATERLOO.CA/autogrow4/accessory_scripts/make_lineage_figures.py", line 1109, in
run_everything(VARS)
File "/home/s3dasari@NEXUS.UWATERLOO.CA/autogrow4/accessory_scripts/make_lineage_figures.py", line 1007, in run_everything
make_image_files(vars, lineage_dict, mol_dict)
File "/home/s3dasari@NEXUS.UWATERLOO.CA/autogrow4/accessory_scripts/make_lineage_figures.py", line 272, in make_image_files
get_grid_img(img_files_list, list_printout_info, result_grid_filename)
File "/home/s3dasari@NEXUS.UWATERLOO.CA/autogrow4/accessory_scripts/make_lineage_figures.py", line 172, in get_grid_img
plt.savefig(result_grid_filename)
File "/usr/local/lib/python3.10/dist-packages/matplotlib/pyplot.py", line 1119, in savefig
res = fig.savefig(*args, **kwargs) # type: ignore[func-returns-value]
File "/usr/local/lib/python3.10/dist-packages/matplotlib/figure.py", line 3390, in savefig
self.canvas.print_figure(fname, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/matplotlib/backend_bases.py", line 2193, in print_figure
result = print_method(
File "/usr/local/lib/python3.10/dist-packages/matplotlib/backend_bases.py", line 2043, in
print_method = functools.wraps(meth)(lambda *args, **kwargs: meth(
File "/usr/local/lib/python3.10/dist-packages/matplotlib/backends/backend_agg.py", line 497, in print_png
self._print_pil(filename_or_obj, "png", pil_kwargs, metadata)
File "/usr/local/lib/python3.10/dist-packages/matplotlib/backends/backend_agg.py", line 445, in _print_pil
FigureCanvasAgg.draw(self)
File "/usr/local/lib/python3.10/dist-packages/matplotlib/backends/backend_agg.py", line 383, in draw
self.renderer = self.get_renderer()
File "/usr/local/lib/python3.10/dist-packages/matplotlib/backends/backend_agg.py", line 398, in get_renderer
self.renderer = RendererAgg(w, h, self.figure.dpi)
File "/usr/local/lib/python3.10/dist-packages/matplotlib/backends/backend_agg.py", line 70, in init
self._renderer = _RendererAgg(int(width), int(height), dpi)
ValueError: Image size of 106666x833 pixels is too large. It must be less than 2^16 in each direction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions