diff options
author | Lei Yan | 2014-02-22 22:04:38 -0600 |
---|---|---|
committer | Lei Yan | 2014-02-22 22:04:38 -0600 |
commit | 562e7ba9b6b5a051da1a9f0a046f39f480998be8 (patch) | |
tree | 2b791b936c60f9726bb81d80342fedadd80eb60e /wqflask/maintenance/dataset | |
parent | 866305ffa728cb6e90f16015b0b881ba6cb0362e (diff) | |
download | genenetwork2-562e7ba9b6b5a051da1a9f0a046f39f480998be8.tar.gz |
On branch master
Diffstat (limited to 'wqflask/maintenance/dataset')
-rw-r--r-- | wqflask/maintenance/dataset/datasampledir/load_genotypes/config.ini | 2 | ||||
-rw-r--r-- | wqflask/maintenance/dataset/load_genotypes.py | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/wqflask/maintenance/dataset/datasampledir/load_genotypes/config.ini b/wqflask/maintenance/dataset/datasampledir/load_genotypes/config.ini index 6f2adbd2..7b2fba9d 100644 --- a/wqflask/maintenance/dataset/datasampledir/load_genotypes/config.ini +++ b/wqflask/maintenance/dataset/datasampledir/load_genotypes/config.ini @@ -1,5 +1,5 @@ [config] -speciesid = 1 +inbredsetid = 1 genofile = datasampledir/load_genotypes/sample.geno U = x H = 0 diff --git a/wqflask/maintenance/dataset/load_genotypes.py b/wqflask/maintenance/dataset/load_genotypes.py index bca99b95..124d3776 100644 --- a/wqflask/maintenance/dataset/load_genotypes.py +++ b/wqflask/maintenance/dataset/load_genotypes.py @@ -11,7 +11,14 @@ def main(argv): for item in config.items('config'): print "\t%s" % (str(item)) # variables - speciesid = config.get('config', 'speciesid') + inbredsetid = config.get('config', 'inbredsetid') + print "inbredsetid: %s" % inbredsetid + species = datastructure.get_species(inbredsetid) + speciesid = species[0] + print "speciesid: %s" % speciesid + genofreeze = datastructure.get_genofreeze_byinbredsetid(inbredsetid) + genofreezeid = genofreeze[0] + print "genofreezeid: %s" % genofreezeid genofile = open(config.get('config', 'genofile'), 'r') metadic = {} # parse genofile |