diff options
author | zsloan | 2022-06-13 21:07:54 +0000 |
---|---|---|
committer | zsloan | 2022-06-13 21:07:54 +0000 |
commit | 462912cce1469d23c9f4f585b83a325e7be9a3ff (patch) | |
tree | b449ff7b1e67d2fbd8b24853f1c64f4885c0b2bb /wqflask/base/trait.py | |
parent | bc6dbb85e1283faed1e10f96d1ab9da5f064d3ba (diff) | |
download | genenetwork2-462912cce1469d23c9f4f585b83a325e7be9a3ff.tar.gz |
Check for chromosome of 'Un' and print location as 'Not available' in such cases
Diffstat (limited to 'wqflask/base/trait.py')
-rw-r--r-- | 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 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: |