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

Error running the sample a second time #35

Open
namdeka opened this issue Dec 7, 2021 · 1 comment
Open

Error running the sample a second time #35

namdeka opened this issue Dec 7, 2021 · 1 comment

Comments

@namdeka
Copy link

namdeka commented Dec 7, 2021

I get this error after the step 3 (strain presence/absence) during profiling when I try a different threshold. It was working the first time I tried it. What can be the issue? I used:

python panphlan/panphlan_profiling.py --min_coverage 1 --left_max 0.70 --right_min 0.30 -i map_results_P_gingivalis -p Porphyromonas_gingivalis/Porphyromonas_gingivalis/Porphyromonas_gingivalis_pangenome.tsv --o_matrix result_profile_gingivalis0.1.tsv --add_ref --o_covplot gingivalis_covplotnew0.1 --verbose

Traceback (most recent call last):
File "panphlan/panphlan_profiling.py", line 948, in
main()
File "panphlan/panphlan_profiling.py", line 901, in main
plot_dna_coverage(norm_samples_coverages, sample_stats, avg_genome_length, args, normalized = True)
File "panphlan/panphlan_profiling.py", line 532, in plot_dna_coverage
savefig(plot_name, dpi = 300)
File "/user/ndeka/anaconda3/lib/python3.8/site-packages/matplotlib/pyplot.py", line 859, in savefig
res = fig.savefig(*args, **kwargs)
File "/user/ndeka/anaconda3/lib/python3.8/site-packages/matplotlib/figure.py", line 2311, in savefig
self.canvas.print_figure(fname, **kwargs)
File "/user/ndeka/anaconda3/lib/python3.8/site-packages/matplotlib/backend_bases.py", line 2150, in print_figure
canvas = self._get_output_canvas(backend, format)
File "/user/ndeka/anaconda3/lib/python3.8/site-packages/matplotlib/backend_bases.py", line 2079, in _get_output_canvas
raise ValueError(
ValueError: Format '1' is not supported (supported formats: eps, jpeg, jpg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff)

@namdeka namdeka closed this as completed Dec 7, 2021
@namdeka namdeka reopened this Dec 8, 2021
@namdeka namdeka changed the title sample below MIN COVERAGE Error running the sample a second time Dec 8, 2021
@leonarDubois
Copy link
Member

Hello,

it seems that the value passed to the --o_covplot argument makes the matplotlib function crashing as it contains a point and no extension.

Try the same line but with --o_covplot gingivalis_covplotnew0_1.jpg instead of --o_covplot gingivalis_covplotnew0.1

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

2 participants