From 2956bded432ebb92e7adf8c9821bba5885d19908 Mon Sep 17 00:00:00 2001 From: Lei Yan Date: Wed, 5 Feb 2014 15:23:42 -0600 Subject: On branch master --- wqflask/maintenance/dataset/genotypes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'wqflask') 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 -- cgit v1.2.3