rrazaghi / modbamtools

Set of tools to manipulate and visualize modified base bam files
Apache License 2.0
49 stars 4 forks source link

modbamtools plot command will append on more output if the same prefix is used #37

Open pwh124 opened 1 year ago

pwh124 commented 1 year ago

modbamtools plot command will append on more output if the same prefix is used. This could cause major issues when trying to optimize a plot.

Example - these two commands were run consecutively

modbamtools plot --batch genes.bed -c --prefix test_batch_hp_removed_gm12878_batch --samples GM12878 --out . hp_removed_gm12878_ul_sup_megalodon_chr20.bam

modbamtools plot --batch genes.bed -c --prefix test_batch_hp_removed_gm12878_batch --samples GM12878 --out . hp_removed_gm12878_ul_sup_megalodon_chr20.bam

It leads to those three loci plotted back-to-back in the HTML file.