diff options
author | zsloan | 2021-03-30 18:29:56 +0000 |
---|---|---|
committer | zsloan | 2021-03-30 18:29:56 +0000 |
commit | ef51e08753defdfc7f3e67f8788cd1362d2cf631 (patch) | |
tree | 0e93559d8916dfb3933f1ef0e134567c918b1378 | |
parent | 6a5576bb1271060c703871aedf16360847c68f8b (diff) | |
download | genenetwork2-ef51e08753defdfc7f3e67f8788cd1362d2cf631.tar.gz |
Shifted some code out of the try/except that shouldn't have been inside it
-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 = [] |