marbl / ModDotPlot

MIT License
114 stars 8 forks source link

Swapped labels a vs b plot? #29

Closed KewinOgink closed 2 weeks ago

KewinOgink commented 3 months ago

Hi thanks for the great tool!

I am testing it and I noticed a difference and it got me confused. I looked at https://github.com/marbl/ModDotPlot/issues/22 but it I downloaded moddotplot last week so it should not be this.

I have a 144kb sequence that I compare to a 239kb sequence using the command

for sample in sample17 sample18; do
        moddotplot static \
                -f sample16.fa $sample\
                -o sample16_vs_${sample} --compare-only \
                -w 100 --identity 70 --breakpoints 70 80 90 95 100 --palette Spectral_4 --dpi 1200 \
done

The output I get is this. image

The strange thing is I know that sample 16 is 144kb, sample 17 238 and sample 18 172kb, also by looking at their fasta sequences: image

When I look at the bed file it looks like they are swapped, as the header is #query_name query_start query_end reference_name reference_start reference_end perID_by_events

image

Can this be a bug? Should the labels be switched?

alexsweeten commented 2 weeks ago

Thanks for catching this. Fixed with v0.8.6.