Skip to content

agfusion error with rendering image #165

@anoronh4

Description

@anoronh4

Description of the bug

here's the error:

Traceback (most recent call last):
  File "/usr/local/bin/agfusion", line 5, in <module>
    cli.main()
  File "/usr/local/lib/python3.10/dist-packages/agfusion/cli.py", line 622, in main
    batch_mode(args, agfusion_db, pyensembl_data, rename, colors)
  File "/usr/local/lib/python3.10/dist-packages/agfusion/cli.py", line 166, in batch_mode
    annotate(
  File "/usr/local/lib/python3.10/dist-packages/agfusion/cli.py", line 131, in annotate
    fusion.save_images(
  File "/usr/local/lib/python3.10/dist-packages/agfusion/model.py", line 477, in save_images
    pplot.save()
  File "/usr/local/lib/python3.10/dist-packages/agfusion/plot.py", line 38, in save
    self.fig.savefig(self.filename, dpi=self.dpi, bbox_inches="tight")
  File "/usr/local/lib/python3.10/dist-packages/matplotlib/figure.py", line 3395, in savefig
    self.canvas.print_figure(fname, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/matplotlib/backend_bases.py", line 2204, in print_figure
    result = print_method(
  File "/usr/local/lib/python3.10/dist-packages/matplotlib/backend_bases.py", line 2054, in <lambda>
    print_method = functools.wraps(meth)(lambda *args, **kwargs: meth(
  File "/usr/local/lib/python3.10/dist-packages/matplotlib/backends/backend_agg.py", line 496, 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 444, in _print_pil
    FigureCanvasAgg.draw(self)
  File "/usr/local/lib/python3.10/dist-packages/matplotlib/backends/backend_agg.py", line 382, in draw
    self.renderer = self.get_renderer()
  File "/usr/local/lib/python3.10/dist-packages/matplotlib/backends/backend_agg.py", line 397, 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 101044x262 pixels is too large. It must be less than 2^16 in each direction.

Command used and terminal output

Relevant files

No response

System information

No response

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