diff options
author | Zachary Sloan | 2014-10-02 21:07:49 +0000 |
---|---|---|
committer | Zachary Sloan | 2014-10-02 21:07:49 +0000 |
commit | 04136ee53bc1b240583e2af68f534cd81d31a5af (patch) | |
tree | c196098eae91974bfe2b4e9edb1b6d76a1b46e7d /wqflask/base | |
parent | 85aa283c7489e6f55237d4dc85a26cea4f7a3c02 (diff) | |
download | genenetwork2-04136ee53bc1b240583e2af68f534cd81d31a5af.tar.gz |
Fixed an error when there's no locus for mRNA expression traits
Diffstat (limited to 'wqflask/base')
-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 = "" |