wdecoster / NanoPlot

Plotting scripts for long read sequencing data
http://nanoplot.bioinf.be
MIT License
429 stars 47 forks source link

Missing 1 required positional argument: 'dpi' #91

Closed ookil closed 6 years ago

ookil commented 6 years ago

Couldn't find any similar issue posted but I'm getting something like this and have no idea what to do.

2018-09-15 18:58:55,253 NanoPlot 1.17.3 started with arguments Namespace(N50=False, alength=False, bam=None, barcoded=False, color='#4CB391', cram=None, downsample=None, drop_outliers=False, fasta=None, fastq=['poretest.fastq'], fastq_minimal=None, fastq_rich=None, font_scale=1, format='png', listcolors=False, loglength=False, maxlength=None, minlength=None, minqual=None, no_N50=False, outdir='.', percentqual=False, pickle=None, plots=['kde', 'dot'], prefix='', raw=False, readtype='1D', runtime_until=None, store=False, summary=None, threads=4, title=None, verbose=False) 2018-09-15 18:58:55,253 Python version is: 3.6.5 (default, Apr 1 2018, 05:46:30) [GCC 7.3.0] 2018-09-15 18:58:55,254 Nanoplotter: valid output format png 2018-09-15 18:58:55,258 Nanoget: Starting to collect statistics from plain fastq file. 2018-09-15 18:58:55,503 Reduced DataFrame memory usage from 0.00675201416015625Mb to 0.0039386749267578125Mb 2018-09-15 18:58:55,507 Nanoget: Gathered all metrics of 295 reads 2018-09-15 18:58:55,517 Calculated statistics 2018-09-15 18:58:55,517 Using sequenced read lengths for plotting. 2018-09-15 18:58:55,517 Processed the reads, optionally filtered. 295 reads left 2018-09-15 18:58:55,517 plot_settings() missing 1 required positional argument: 'dpi' Traceback (most recent call last): File "/home/umian/.local/lib/python3.6/site-packages/nanoplot/NanoPlot.py", line 92, in main plots = make_plots(datadf, settings) File "/home/umian/.local/lib/python3.6/site-packages/nanoplot/NanoPlot.py", line 293, in make_plots nanoplotter.plot_settings(plot_settings) TypeError: plot_settings() missing 1 required positional argument: 'dpi'

Hope it can be solved easily ;)

wdecoster commented 6 years ago

Woops, that's due to a change I introduced a couple of hours ago. My bad, apologies!

It should be fixed if you update to NanoPlot v1.17.4, which will be on PyPI in a couple of minutes :)