Skip to content

Data has no positive values, and therefore cannot be log-scaled. #35

@lculibrk

Description

@lculibrk

Dear SigProfiler developers,

I'm encountering an error in SigProfilerClusters, the message is below. I noted that there was a similar issue posted previously, however there was no information on resolving it: #30

Could you please let me know how to troubleshoot this issue?

Many thanks

  File "/gpfs/data/petljaklab/lculibrk_prj/misc/hmf_x_tx/scripts/clusters_chunked.py", line 13, in <module>
    hp.analysis(f"{args.chunk}", "GRCh37", "96", ["96"], args.dir, analysis="all", interdistance="96", sortSims=True, subClassify=True, correction=True, calculateIMD=True, max_cpu=24, variant_caller="mutect2")
  File "/gpfs/data/petljaklab/lculibrk_prj/misc/hmf_x_tx/conda_spc/lib/python3.11/site-packages/SigProfilerClusters/SigProfilerClusters.py", line 1306, in analysis
    regions, imds = hotspot.hotSpotAnalysis(
                    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/gpfs/data/petljaklab/lculibrk_prj/misc/hmf_x_tx/conda_spc/lib/python3.11/site-packages/SigProfilerClusters/hotspot.py", line 2328, in hotSpotAnalysis
    pp.savefig()
  File "/gpfs/data/petljaklab/lculibrk_prj/misc/hmf_x_tx/conda_spc/lib/python3.11/site-packages/matplotlib/backends/backend_pdf.py", line 2745, in savefig
    figure.savefig(self, format="pdf", backend="pdf", **kwargs)
  File "/gpfs/data/petljaklab/lculibrk_prj/misc/hmf_x_tx/conda_spc/lib/python3.11/site-packages/matplotlib/figure.py", line 3490, in savefig
    self.canvas.print_figure(fname, **kwargs)
  File "/gpfs/data/petljaklab/lculibrk_prj/misc/hmf_x_tx/conda_spc/lib/python3.11/site-packages/matplotlib/backend_bases.py", line 2184, in print_figure
    result = print_method(
             ^^^^^^^^^^^^^
  File "/gpfs/data/petljaklab/lculibrk_prj/misc/hmf_x_tx/conda_spc/lib/python3.11/site-packages/matplotlib/backend_bases.py", line 2040, in <lambda>
    print_method = functools.wraps(meth)(lambda *args, **kwargs: meth(
                                                                 ^^^^^
  File "/gpfs/data/petljaklab/lculibrk_prj/misc/hmf_x_tx/conda_spc/lib/python3.11/site-packages/matplotlib/backends/backend_pdf.py", line 2786, in print_pdf
    self.figure.draw(renderer)
  File "/gpfs/data/petljaklab/lculibrk_prj/misc/hmf_x_tx/conda_spc/lib/python3.11/site-packages/matplotlib/artist.py", line 94, in draw_wrapper
    result = draw(artist, renderer, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/gpfs/data/petljaklab/lculibrk_prj/misc/hmf_x_tx/conda_spc/lib/python3.11/site-packages/matplotlib/artist.py", line 71, in draw_wrapper
    return draw(artist, renderer)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/gpfs/data/petljaklab/lculibrk_prj/misc/hmf_x_tx/conda_spc/lib/python3.11/site-packages/matplotlib/figure.py", line 3257, in draw
    mimage._draw_list_compositing_images(
  File "/gpfs/data/petljaklab/lculibrk_prj/misc/hmf_x_tx/conda_spc/lib/python3.11/site-packages/matplotlib/image.py", line 134, in _draw_list_compositing_images
    a.draw(renderer)
  File "/gpfs/data/petljaklab/lculibrk_prj/misc/hmf_x_tx/conda_spc/lib/python3.11/site-packages/matplotlib/artist.py", line 71, in draw_wrapper
    return draw(artist, renderer)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/gpfs/data/petljaklab/lculibrk_prj/misc/hmf_x_tx/conda_spc/lib/python3.11/site-packages/matplotlib/axes/_base.py", line 3210, in draw
    mimage._draw_list_compositing_images(
  File "/gpfs/data/petljaklab/lculibrk_prj/misc/hmf_x_tx/conda_spc/lib/python3.11/site-packages/matplotlib/image.py", line 134, in _draw_list_compositing_images
    a.draw(renderer)
  File "/gpfs/data/petljaklab/lculibrk_prj/misc/hmf_x_tx/conda_spc/lib/python3.11/site-packages/matplotlib/artist.py", line 71, in draw_wrapper
    return draw(artist, renderer)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/gpfs/data/petljaklab/lculibrk_prj/misc/hmf_x_tx/conda_spc/lib/python3.11/site-packages/matplotlib/axis.py", line 1404, in draw
    ticks_to_draw = self._update_ticks()
                    ^^^^^^^^^^^^^^^^^^^^
  File "/gpfs/data/petljaklab/lculibrk_prj/misc/hmf_x_tx/conda_spc/lib/python3.11/site-packages/matplotlib/axis.py", line 1281, in _update_ticks
    major_locs = self.get_majorticklocs()
                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/gpfs/data/petljaklab/lculibrk_prj/misc/hmf_x_tx/conda_spc/lib/python3.11/site-packages/matplotlib/axis.py", line 1525, in get_majorticklocs
    return self.major.locator()
           ^^^^^^^^^^^^^^^^^^^^
  File "/gpfs/data/petljaklab/lculibrk_prj/misc/hmf_x_tx/conda_spc/lib/python3.11/site-packages/matplotlib/ticker.py", line 2401, in __call__
    return self.tick_values(vmin, vmax)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/gpfs/data/petljaklab/lculibrk_prj/misc/hmf_x_tx/conda_spc/lib/python3.11/site-packages/matplotlib/ticker.py", line 2418, in tick_values
    raise ValueError(
ValueError: Data has no positive values, and therefore cannot be log-scaled.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions