diff options
author | Lei Yan | 2014-02-05 15:23:42 -0600 |
---|---|---|
committer | Lei Yan | 2014-02-05 15:23:42 -0600 |
commit | 2956bded432ebb92e7adf8c9821bba5885d19908 (patch) | |
tree | 4283073caf21788ad48462d8251d564019302df5 /wqflask | |
parent | ce3b232328ad8fcfb321419ec74fa6cec465a66d (diff) | |
download | genenetwork2-2956bded432ebb92e7adf8c9821bba5885d19908.tar.gz |
On branch master
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/maintenance/dataset/genotypes.py | 5 |
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 |