Skip to content

Commit

Permalink
Fix #493
Browse files Browse the repository at this point in the history
  • Loading branch information
dpryan79 committed Mar 14, 2017
1 parent 4647ada commit 3d2cfd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.4.3

* Fixed incorrect label ordering in the `plotCorrelation` command with the `--outFileCorMatrix` options.
* Fixed bug #491, which involved python 3 and bamCoverage.

2.4.2

* Fixed an issue where `computeMatrix reference-point --referencePoint center` would break if 1-base regions were used. This was bug #456.
Expand Down
2 changes: 1 addition & 1 deletion deeptools/correlation.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def save_corr_matrix(self, file_handle):
saves the correlation matrix
"""
if self.column_order:
self.corr_matrix[self.column_order, self.column_order]
self.corr_matrix = self.corr_matrix[:, self.column_order][self.column_order]
self.labels = [self.labels[i] for i in self.column_order]

file_handle.write("\t'" + "'\t'".join(self.labels) + "'\n")
Expand Down

0 comments on commit 3d2cfd9

Please sign in to comment.