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

Count does not support height parameter #38

Open
insectatorious opened this issue Mar 6, 2023 · 1 comment
Open

Count does not support height parameter #38

insectatorious opened this issue Mar 6, 2023 · 1 comment

Comments

@insectatorious
Copy link

insectatorious commented Mar 6, 2023

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)

@kojix2
Copy link
Member

kojix2 commented Mar 7, 2023

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.

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