From 462912cce1469d23c9f4f585b83a325e7be9a3ff Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 13 Jun 2022 21:07:54 +0000 Subject: Check for chromosome of 'Un' and print location as 'Not available' in such cases --- wqflask/base/trait.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'wqflask/base') 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: -- cgit v1.2.3