aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance/dataset
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/maintenance/dataset')
-rw-r--r--wqflask/maintenance/dataset/datasampledir/load_genotypes/config.ini2
-rw-r--r--wqflask/maintenance/dataset/load_genotypes.py9
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