diff options
author | BonfaceKilz | 2020-08-19 02:31:31 +0300 |
---|---|---|
committer | BonfaceKilz | 2020-08-19 02:34:42 +0300 |
commit | ba123e1e0fe693f9778993c3f8e5a70a28658a4c (patch) | |
tree | 6d02bac212da1bfeeb8330b94971383cde053602 /wqflask/utility/gen_geno_ob.py | |
parent | bafbb5b7a4b7db2ca230f292eb45be7e67985259 (diff) | |
download | genenetwork2-ba123e1e0fe693f9778993c3f8e5a70a28658a4c.tar.gz |
Fix dictionary iteration methods
Run `2to3-3.8 -f dict -w .`
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-dict> and
<https://stackoverflow.com/questions/17695456/why-does-python-3-need-dict-items-to-be-wrapped-with-list>
Diffstat (limited to 'wqflask/utility/gen_geno_ob.py')
-rw-r--r-- | wqflask/utility/gen_geno_ob.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/utility/gen_geno_ob.py b/wqflask/utility/gen_geno_ob.py index 23b0b650..ae42f834 100644 --- a/wqflask/utility/gen_geno_ob.py +++ b/wqflask/utility/gen_geno_ob.py @@ -175,7 +175,7 @@ class Locus(object): start_pos = 3 for allele in marker_row[start_pos:]: - if allele in geno_table.keys(): + if allele in list(geno_table.keys()): self.genotype.append(geno_table[allele]) else: #ZS: Some genotype appears that isn't specified in the metadata, make it unknown self.genotype.append("U")
\ No newline at end of file |