diff options
author | GN2 | 2020-04-03 17:00:25 -0500 |
---|---|---|
committer | GN2 | 2020-04-03 17:00:25 -0500 |
commit | 6b75fd4a98f3493aa6098e17f7fb079504ff8dbd (patch) | |
tree | 93726be068b460909e1ca2a64ab73dd04ad34806 /wqflask/utility/gen_geno_ob.py | |
parent | 39583763ab23b4a0a8114efc2b128ab26469045c (diff) | |
parent | 897f3291f9d943b4deaef7bc924197c268bc8b3f (diff) | |
download | genenetwork2-6b75fd4a98f3493aa6098e17f7fb079504ff8dbd.tar.gz |
Merge branch 'testing' of https://github.com/genenetwork/genenetwork2 into HEAD
Diffstat (limited to 'wqflask/utility/gen_geno_ob.py')
-rw-r--r-- | wqflask/utility/gen_geno_ob.py | 4 |
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']) |