diff options
author | DannyArends | 2015-10-08 11:38:29 +0200 |
---|---|---|
committer | DannyArends | 2015-10-08 11:38:29 +0200 |
commit | 8f25786a98447039362f74b8a37dbeacf5f07156 (patch) | |
tree | 1dcb3600a2c42e7277478474801f317a2e249cfd /wqflask | |
parent | b4370bebdb1f33184ffa22038cbc5d877edde5c6 (diff) | |
download | genenetwork2-8f25786a98447039362f74b8a37dbeacf5f07156.tar.gz |
Minor, adding a better check for NA
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/wgcna/wgcna_analysis.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wqflask/wqflask/wgcna/wgcna_analysis.py b/wqflask/wqflask/wgcna/wgcna_analysis.py index 1174ce47..ba806b6d 100644 --- a/wqflask/wqflask/wgcna/wgcna_analysis.py +++ b/wqflask/wqflask/wgcna/wgcna_analysis.py @@ -106,7 +106,8 @@ class WGCNA(object): print "PowerEstimate: {}".format(self.sft[0]) self.results['PowerEstimate'] = self.sft[0] - if r_is_NA(self.sft[0]): + if self.sft[0][0] == "NA": + print "No power is suitable for the analysis, just use 1" self.results['Power'] = 1 # No power could be estimated else: self.results['Power'] = self.sft[0][0] # Use the estimated power |