aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility
diff options
context:
space:
mode:
authorGN22020-04-03 17:00:25 -0500
committerGN22020-04-03 17:00:25 -0500
commit6b75fd4a98f3493aa6098e17f7fb079504ff8dbd (patch)
tree93726be068b460909e1ca2a64ab73dd04ad34806 /wqflask/utility
parent39583763ab23b4a0a8114efc2b128ab26469045c (diff)
parent897f3291f9d943b4deaef7bc924197c268bc8b3f (diff)
downloadgenenetwork2-6b75fd4a98f3493aa6098e17f7fb079504ff8dbd.tar.gz
Merge branch 'testing' of https://github.com/genenetwork/genenetwork2 into HEAD
Diffstat (limited to 'wqflask/utility')
-rw-r--r--wqflask/utility/gen_geno_ob.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/wqflask/utility/gen_geno_ob.py b/wqflask/utility/gen_geno_ob.py
index aa5b27c4..db40f6ea 100644
--- a/wqflask/utility/gen_geno_ob.py
+++ b/wqflask/utility/gen_geno_ob.py
@@ -45,10 +45,12 @@ class genotype(object):
chr_ob = None
for marker in qtl_results:
locus = Locus(self)
- if str(marker['chr']) != this_chr:
+ if (str(marker['chr']) != this_chr) and this_chr != "X": #ZS: This is really awkward but works as a temporary fix
if this_chr != "":
self.chromosomes.append(chr_ob)
this_chr = str(marker['chr'])
+ if this_chr == "20":
+ this_chr = "X"
chr_ob = Chr(this_chr, self)
if 'chr' in marker:
locus.chr = str(marker['chr'])