From 1c40e4791b0c4fc21afc2194ac82df75e18d2bc7 Mon Sep 17 00:00:00 2001 From: Devon Ryan Date: Thu, 5 Mar 2020 09:45:41 +0100 Subject: [PATCH] Fix dotted line (#921) * Fix the dashed line in plotHeatmap with reference-point TES and sorting by region_length * fix test --- deeptools/plotHeatmap.py | 2 +- galaxy/wrapper/test-data/plotPCA_result2.tabular | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deeptools/plotHeatmap.py b/deeptools/plotHeatmap.py index 8bd6b42e6..57ebeb43c 100644 --- a/deeptools/plotHeatmap.py +++ b/deeptools/plotHeatmap.py @@ -539,7 +539,7 @@ def plotMatrix(hm, outFileName, _len *= 0.5 _reg_len.append((hm.parameters['upstream'][idx] + _len) / hm.parameters['bin size'][idx]) elif hm.parameters['ref point'][idx] == 'TES': - _reg_len.append((hm.parameters['downstream'][idx] - _len) / hm.parameters['bin size'][idx]) + _reg_len.append((hm.parameters['upstream'][idx] - _len) / hm.parameters['bin size'][idx]) foo.append(_reg_len) regions_length_in_bins[idx] = foo diff --git a/galaxy/wrapper/test-data/plotPCA_result2.tabular b/galaxy/wrapper/test-data/plotPCA_result2.tabular index ebdc6ff74..f2b79eed3 100644 --- a/galaxy/wrapper/test-data/plotPCA_result2.tabular +++ b/galaxy/wrapper/test-data/plotPCA_result2.tabular @@ -1,4 +1,4 @@ #plotPCA --outFileNameData Component bowtie2-test1.bam bowtie2-test1.bam Eigenvalue 1 -0.7071067811865476 -0.7071067811865475 4.0 -2 -0.7071067811865475 0.7071067811865476 1.2325951644078315e-32 +2 -0.7071067811865475 0.7071067811865476 2.49319462166397e-32