aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorpjotrp2016-02-23 11:41:44 +0000
committerPjotr Prins2016-04-20 09:01:21 +0000
commite5951ad5f3bb244e4dc53cd04c291dcbdef544a0 (patch)
tree1e6e5d5f609f5711e9329710db68af028120be04 /wqflask
parente1e6adeb07536b6c4afc849e7f3a994dca3fda1d (diff)
downloadgenenetwork2-e5951ad5f3bb244e4dc53cd04c291dcbdef544a0.tar.gz
With missing samples to not add them to the result set
Diffstat (limited to 'wqflask')
-rwxr-xr-xwqflask/wqflask/correlation/show_corr_results.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/wqflask/wqflask/correlation/show_corr_results.py b/wqflask/wqflask/correlation/show_corr_results.py
index 09d5ecdb..21a2c26c 100755
--- a/wqflask/wqflask/correlation/show_corr_results.py
+++ b/wqflask/wqflask/correlation/show_corr_results.py
@@ -710,10 +710,11 @@ class CorrelationResults(object):
if sample not in excluded_samples:
print("Looking for",sample,"in",start_vars)
value = start_vars.get('value:' + sample)
- if value and not value.strip().lower() == 'x':
- self.sample_data[str(sample)] = float(value)
- else:
- self.sample_data[str(sample)] = None
+ if value:
+ if not value.strip().lower() == 'x':
+ self.sample_data[str(sample)] = float(value)
+ else:
+ self.sample_data[str(sample)] = None
##XZ, 12/16/2008: the input geneid is of mouse type