From 562e7ba9b6b5a051da1a9f0a046f39f480998be8 Mon Sep 17 00:00:00 2001 From: Lei Yan Date: Sat, 22 Feb 2014 22:04:38 -0600 Subject: On branch master --- .../maintenance/dataset/datasampledir/load_genotypes/config.ini | 2 +- wqflask/maintenance/dataset/load_genotypes.py | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'wqflask/maintenance') 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 -- cgit v1.2.3