diff --git a/CHANGES.txt b/CHANGES.txt index 76073ec0b1..229d9dcd69 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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. diff --git a/deeptools/correlation.py b/deeptools/correlation.py index 6aa4629cd3..5f925a5419 100644 --- a/deeptools/correlation.py +++ b/deeptools/correlation.py @@ -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")