aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility
diff options
context:
space:
mode:
authorzsloan2020-04-03 16:57:59 -0500
committerzsloan2020-04-03 16:57:59 -0500
commit897f3291f9d943b4deaef7bc924197c268bc8b3f (patch)
tree93726be068b460909e1ca2a64ab73dd04ad34806 /wqflask/utility
parentd5708b26edf07bf4dacb1730e75af1fda5e376e6 (diff)
downloadgenenetwork2-897f3291f9d943b4deaef7bc924197c268bc8b3f.tar.gz
Added option to select cofactors from collection for R/qtl
Fixed some issues with displaying the R/qtl results from the RData HET3-ITP dataa
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'])