aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance/dataset
diff options
context:
space:
mode:
authorLei Yan2014-02-05 15:23:42 -0600
committerLei Yan2014-02-05 15:23:42 -0600
commit2956bded432ebb92e7adf8c9821bba5885d19908 (patch)
tree4283073caf21788ad48462d8251d564019302df5 /wqflask/maintenance/dataset
parentce3b232328ad8fcfb321419ec74fa6cec465a66d (diff)
downloadgenenetwork2-2956bded432ebb92e7adf8c9821bba5885d19908.tar.gz
On branch master
Diffstat (limited to 'wqflask/maintenance/dataset')
-rw-r--r--wqflask/maintenance/dataset/genotypes.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/wqflask/maintenance/dataset/genotypes.py b/wqflask/maintenance/dataset/genotypes.py
index 164f0ff6..88d28cf6 100644
--- a/wqflask/maintenance/dataset/genotypes.py
+++ b/wqflask/maintenance/dataset/genotypes.py
@@ -24,13 +24,16 @@ def load_genos(file):
cells = line.split()
if line.startswith("Chr"):
strains = cells[4:]
+ strains = [strain.lower() for strain in strains]
continue
genotype = {}
genotype['chr'] = cells[0]
genotype['locus'] = cells[1]
genotype['cm'] = cells[2]
genotype['mb'] = cells[3]
- genotype['values'] = cells[4:]
+ values = cells[4:]
+ genotype['values'] = values
+ genotype['dicvalues'] = utilities.to_dic(strains, values)
genotypes.append(genotype)
return strains, genotypes
\ No newline at end of file