pnucolab / pyoncoprint

Python OncoPrint library based on Matplotlib
BSD 2-Clause "Simplified" License
21 stars 6 forks source link

Fix mutation legend and annotations for unsorted samples #6

Closed heseber closed 2 years ago

heseber commented 2 years ago

Recently I provided a bug fix for wrongly assigned annotations if samples are resorted. I forgot to properly handle the situation when samples are unsorted. This is now fixed. Furthermore, the legend for Genomic Alterations was not correctly displayed for patches with width or height other than 1. For example, a rectangle of width=0.5 and height=0.5 was not centered in the background rectangle. This is now also fixed. Please increase the version number, because otherwise pip won't install the newer version unless a "force" argument is added to force a reinstallation.

pjb7687 commented 2 years ago

I didn't increase the version number since 0.3.0 has never been released to PyPI. The current master branch has a minor issue with legends and I will try to fix it and then release asap. Thanks!