Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CoRAL plot error #16

Open
ucsfpan opened this issue Oct 16, 2024 · 0 comments
Open

CoRAL plot error #16

ucsfpan opened this issue Oct 16, 2024 · 0 comments

Comments

@ucsfpan
Copy link

ucsfpan commented Oct 16, 2024

Hi author,
Thanks for this great tool. I have run the command:
/c4/home/ucsf-pan/software/CoRAL/src/CoRAL.py seed --cn_seg /bastianlab/data1/hpan/pacbio_ccs/CNVkit_m84127/m84127.mini.pacbioccs.cns
/c4/home/ucsf-pan/software/CoRAL/src/CoRAL.py reconstruct --lr_bam /bastianlab/data1/hpan/pacbio_ccs/alignment_mini/m84127.mini.pacbioccs.bam --cnv_seed /bastianlab/data1/hpan/pacbio_ccs/CNVkit_m84127/m84127.mini.pacbioccs_CNV_SEEDS.bed --output_prefix samp1 --cn_seg /bastianlab/data1/hpan/pacbio_ccs/CNVkit_m84127/m84127.mini.pacbioccs.cns
/c4/home/ucsf-pan/software/CoRAL/src/CoRAL.py plot --ref GRCh38 --bam /bastianlab/data1/hpan/pacbio_ccs/alignment_mini/m84127.mini.pacbioccs.bam --graph amplicon1_graph.txt --cycles amplicon1_cycles.txt --output_prefix aa --plot_graph --plot_cycles

The first two steps are successful, and I got the output GRCh38_CNV_SEEDS.bed Graph file Cycles file, but when I try to plot , it come out of such issue. Would you please help me to solve this? Thanks!

Traceback (most recent call last):
File "/c4/home/ucsf-pan/software/CoRAL/src/CoRAL.py", line 166, in
plot_mode(args)
File "/c4/home/ucsf-pan/software/CoRAL/src/CoRAL.py", line 45, in plot_mode
plot_amplicons.plot_amplicons(args)
File "/c4/home/ucsf-pan/software/CoRAL/src/plot_amplicons.py", line 935, in plot_amplicons
g.plot_graph(gtitle, args.output_prefix + "_graph", max_cov_cutoff=args.max_coverage, quality_threshold=args.min_mapq,
File "/c4/home/ucsf-pan/software/CoRAL/src/plot_amplicons.py", line 573, in plot_graph
plt.savefig(output_fn + ".png", dpi = dpi)
File "/c4/home/ucsf-pan/miniconda3/envs/CoRAL/lib/python3.9/site-packages/matplotlib/pyplot.py", line 1228, in savefig
res = fig.savefig(*args, **kwargs) # type: ignore[func-returns-value]
File "/c4/home/ucsf-pan/miniconda3/envs/CoRAL/lib/python3.9/site-packages/matplotlib/figure.py", line 3395, in savefig
self.canvas.print_figure(fname, **kwargs)
File "/c4/home/ucsf-pan/miniconda3/envs/CoRAL/lib/python3.9/site-packages/matplotlib/backend_bases.py", line 2204, in print_figure
result = print_method(
File "/c4/home/ucsf-pan/miniconda3/envs/CoRAL/lib/python3.9/site-packages/matplotlib/backend_bases.py", line 2054, in
print_method = functools.wraps(meth)(lambda *args, **kwargs: meth(
File "/c4/home/ucsf-pan/miniconda3/envs/CoRAL/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py", line 496, in print_png
self._print_pil(filename_or_obj, "png", pil_kwargs, metadata)
File "/c4/home/ucsf-pan/miniconda3/envs/CoRAL/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py", line 444, in _print_pil
FigureCanvasAgg.draw(self)
File "/c4/home/ucsf-pan/miniconda3/envs/CoRAL/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py", line 387, in draw
self.figure.draw(self.renderer)
File "/c4/home/ucsf-pan/miniconda3/envs/CoRAL/lib/python3.9/site-packages/matplotlib/artist.py", line 95, in draw_wrapper
result = draw(artist, renderer, *args, **kwargs)
File "/c4/home/ucsf-pan/miniconda3/envs/CoRAL/lib/python3.9/site-packages/matplotlib/artist.py", line 72, in draw_wrapper
return draw(artist, renderer)
File "/c4/home/ucsf-pan/miniconda3/envs/CoRAL/lib/python3.9/site-packages/matplotlib/figure.py", line 3161, in draw
self.patch.draw(renderer)
File "/c4/home/ucsf-pan/miniconda3/envs/CoRAL/lib/python3.9/site-packages/matplotlib/artist.py", line 72, in draw_wrapper
return draw(artist, renderer)
File "/c4/home/ucsf-pan/miniconda3/envs/CoRAL/lib/python3.9/site-packages/matplotlib/patches.py", line 632, in draw
self._draw_paths_with_artist_properties(
File "/c4/home/ucsf-pan/miniconda3/envs/CoRAL/lib/python3.9/site-packages/matplotlib/patches.py", line 617, in _draw_paths_with_artist_properties
renderer.draw_path(gc, *draw_path_args)
File "/c4/home/ucsf-pan/miniconda3/envs/CoRAL/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py", line 131, in draw_path
self._renderer.draw_path(gc, path, transform, rgbFace)
ValueError: object array method not producing an array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant