Closed kkmll closed 1 year ago
You can combine both the --formula
and the --ggs
arguments:
❯ vcfstats --vcf examples/sample.vcf \
--outdir examples/ \
--formula 'COUNT(1) ~ CONTIG[1,2,10,X]' \
--title 'Number of variants on each chromosome (modified)' \
--config examples/config.toml \
--ggs 'scale_x_discrete(name ="Chromosome", \
limits=["1","2","10","X"]); \
ylab("# Variants")'
Thanks..
How can I keep chr order as I like while using the command below;
Assume I set CONTIG as [1-22] I don't want it to plot chr10 after chr1.
I see the this command as well;
but while using this command if I don't want to see all chromosomes in the plot and kick some available ones out, the code evaluates the as na and throws and error if I am not doing something wrong.
Thanks for the nice tool.