aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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