diff --git a/CHANGES.txt b/CHANGES.txt index f880d4e8cd..43ed0c5351 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -4,6 +4,8 @@ * Fixed a small X-axis tick offset issue. This caused the location of tick marks in profile plots to be shifted to the left by 0.5 to 1 bin. This was generally not notable, only really appearing when very few bins (e.g., 4) were used. The issue was mostly that the end tick would appear after the end of the plot, since its coordinate was the end of the bin. (issue #888) * multiBamSummary and multiBigwigSummary no longer exclude small bins at the end of genomic chunks. multiBamSummary now has a `--genomicChunkSize` option in case users need to control the size of the genome used for multiprocessing for consistency. (issue #887) * Added 4 new colormaps, which were copied from the seaborn project (issue #879). These are: rocket, mako, vlag, and icefire. + * Fixed an issue in the Galaxy wrapper of plotCorrelation where the X and Y. + * Fixed an issue with the `--Offset` option, where a single negative value wouldn't include only a single position, but rather that base through the end of the read. (stems from issue #902) 3.3.1 diff --git a/deeptools/bamCoverage.py b/deeptools/bamCoverage.py index f2bb2e423e..c0002a59d7 100644 --- a/deeptools/bamCoverage.py +++ b/deeptools/bamCoverage.py @@ -376,7 +376,10 @@ def get_fragment_from_read(self, read): offset[0] -= 1 offset = [offset[0], offset[0] + 1] else: - offset = [offset[0], None] + if offset[0] < -1: + offset = [offset[0], offset[0] + 1] + else: + offset = [offset[0], None] if offset[1] == 0: # -1 gets switched to 0, which screws things up offset = (offset[0], None)