diff options
Diffstat (limited to 'wqflask/base/trait.py')
-rwxr-xr-x | wqflask/base/trait.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py index 71691899..6d070d54 100755 --- a/wqflask/base/trait.py +++ b/wqflask/base/trait.py @@ -408,6 +408,7 @@ class GeneralTrait(object): #self.cursor.execute(query) #trait_qtl = self.cursor.fetchone() if trait_qtl: + print("trait_qtl:", trait_qtl) self.locus, self.lrs, self.pvalue, self.mean = trait_qtl print("self.locus:", self.locus) if self.locus: @@ -421,6 +422,8 @@ class GeneralTrait(object): if result: self.locus_chr = result[0] self.locus_mb = result[1] + else: + self.locus = self.locus_chr = self.locus_mb = "" else: self.locus = self.locus_chr = self.locus_mb = self.lrs = self.pvalue = self.mean = "" |