aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2022-06-13 21:07:54 +0000
committerzsloan2022-06-13 21:07:54 +0000
commit462912cce1469d23c9f4f585b83a325e7be9a3ff (patch)
treeb449ff7b1e67d2fbd8b24853f1c64f4885c0b2bb /wqflask
parentbc6dbb85e1283faed1e10f96d1ab9da5f064d3ba (diff)
downloadgenenetwork2-462912cce1469d23c9f4f585b83a325e7be9a3ff.tar.gz
Check for chromosome of 'Un' and print location as 'Not available' in such cases
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/base/trait.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index ee5dda38..11b28c5c 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -204,6 +204,9 @@ class GeneralTrait:
"""
+ if self.chr == "Un":
+ return 'Not available'
+
if self.chr and self.mb:
self.location = 'Chr %s @ %s Mb' % (self.chr, self.mb)
elif self.chr: