plot.dist.py output to screen only
space-beaver opened this issue · comments
I've calculated mosdepth coverage with the command:
mosdepth -n -b 500 -x -t 4 -Q30
I run plot-dist.py with:
python mosdepth-0.3.3/scripts/plot-dist.py *.global.dist.txt
However, the output prints to screen and an empty html is created. Is there something I'm doing wrong? Output file attached. TIA.
Hi, you have many chromosomes in there so the html output just gets too big. You can get more reasonable output with:
grep -v ^NW example.mosdepth.global.dist.txt > subset.mosdepth.global.dist.txt
then use plot-dist.py on that.
Solved, many thanks. Is there a way to shift the legend to the right, or easiest just to turn off?
You can probably edit plot_dist.py to do that, it's really just meant as an example. You can also use multiqc on the mosdepth output to get nicer plots.
Actually Multiqc does produce nicer plots. Thanks for recommendation!!