diff options
author | pjotrp | 2016-02-23 11:41:44 +0000 |
---|---|---|
committer | Pjotr Prins | 2016-04-20 09:01:21 +0000 |
commit | e5951ad5f3bb244e4dc53cd04c291dcbdef544a0 (patch) | |
tree | 1e6e5d5f609f5711e9329710db68af028120be04 | |
parent | e1e6adeb07536b6c4afc849e7f3a994dca3fda1d (diff) | |
download | genenetwork2-e5951ad5f3bb244e4dc53cd04c291dcbdef544a0.tar.gz |
With missing samples to not add them to the result set
-rwxr-xr-x | wqflask/wqflask/correlation/show_corr_results.py | 9 |
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 |