YouPlot icon indicating copy to clipboard operation
YouPlot copied to clipboard

Count does not support height parameter

Open insectatorious opened this issue 3 years ago • 1 comments

Following the README example for the count plot, when setting the height there is an unknown keyword: height error thrown by the initialize function.

$ cat gencode.v43.annotation.gff3 | grep -v '#' | grep 'gene' | cut -f1 | uplot count -t "The number of human gene annotations per chromosome" -c blue -h 80 
/opt/homebrew/Cellar/youplot/0.4.5/libexec/gems/unicode_plot-0.0.5/lib/unicode_plot/plot.rb:10:in `initialize' 
unknown keyword: height 

Installed via homebrew. YouPlot: 0.4.5 MacOS: 13.2.1 (Apple Silicon)

insectatorious avatar Mar 06 '23 13:03 insectatorious

Hi @insectatorious.

Thanks for your report. You are right. bar and count do not support the height parameter. So, if there is height in the configuration file or if a height as the command line option, an error will occur.

The help messages for uplot bar --help and youplot count --help are incorrect. This needs to be corrected. I still need to improve the configuration file until it is practical. Sorry about that.

I will consider adding a new height parameter to bar and count. But when you simply want to show the top of the count, I think

uplot -Co | head -n 10

would give useful results.

kojix2 avatar Mar 07 '23 07:03 kojix2