aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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