From 1e9d7476697bf8b60ab1004f25b295f81d94de49 Mon Sep 17 00:00:00 2001 From: pjotrp Date: Wed, 24 Feb 2016 11:49:14 +0000 Subject: When a sample does not exist we should not set sample_data to None. Better to leave it out so it never gets processed again. --- wqflask/wqflask/correlation/show_corr_results.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wqflask/wqflask/correlation/show_corr_results.py b/wqflask/wqflask/correlation/show_corr_results.py index 06b4860e..dd661092 100755 --- a/wqflask/wqflask/correlation/show_corr_results.py +++ b/wqflask/wqflask/correlation/show_corr_results.py @@ -708,14 +708,11 @@ class CorrelationResults(object): for sample in sample_names: if sample not in excluded_samples: - print("Looking for",sample,"in",start_vars) + # print("Looking for",sample,"in",start_vars) value = start_vars.get('value:' + sample) 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 #def checkForLitInfo(self,geneId): -- cgit v1.2.3