shazam::plotMutability() misaligns mutability bars and nucleotide motifs on "bar" style

Issue #158 resolved
Peter Blazso created an issue

Motifs (or nucleotide bars below) and mutability bars are not aligned correctly on the X axis. Mutability starts to be plot from coordinate 1 but nucleotide motifs starts on 0 (zero). Consequently, every mutability bar is shifted to right. i also suggest a small change that will fix this. See the 2-lines of fix on the attached pic ("bugfix.jpg") since I was not allowed to do a pull request. See the errors on the attached "plotMutability-bug.svg" picture and the fixed version on "plotMutability-fixed.svg".

This will not fix the rightmost nucleotide bar plotted with double width. It is still buggy.

Comments (3)

  1. ssnn

    Thanks for reporting @Peter Blazso . The issue is with the alignment of the bars. I pushed a fix in #48cc707, also for the hedgehog plot. The rightmost nucleotide looks good to me with this fix. Please update shazam and let me know it that works for you.

  2. Log in to comment