From 897f3291f9d943b4deaef7bc924197c268bc8b3f Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 3 Apr 2020 16:57:59 -0500 Subject: 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 --- wqflask/utility/gen_geno_ob.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'wqflask/utility/gen_geno_ob.py') 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']) -- cgit v1.2.3