diff options
-rw-r--r-- | wqflask/wqflask/correlation_matrix/show_corr_matrix.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wqflask/wqflask/correlation_matrix/show_corr_matrix.py b/wqflask/wqflask/correlation_matrix/show_corr_matrix.py index a67ea9f4..f77761d8 100644 --- a/wqflask/wqflask/correlation_matrix/show_corr_matrix.py +++ b/wqflask/wqflask/correlation_matrix/show_corr_matrix.py @@ -150,14 +150,14 @@ class CorrelationMatrix(object): this_trait_vals.append(sample_value) self.trait_data_array.append(this_trait_vals) + groups = [] + for sample in self.all_sample_list: + groups.append(1) + try: corr_result_eigen = np.linalg.eig(np.array(self.pca_corr_results)) corr_eigen_value, corr_eigen_vectors = sortEigenVectors(corr_result_eigen) - groups = [] - for sample in self.all_sample_list: - groups.append(1) - if self.do_PCA == True: self.pca_works = "True" self.pca_trait_ids = [] |