aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance/dataset
diff options
context:
space:
mode:
authorLei Yan2014-02-22 22:04:38 -0600
committerLei Yan2014-02-22 22:04:38 -0600
commit562e7ba9b6b5a051da1a9f0a046f39f480998be8 (patch)
tree2b791b936c60f9726bb81d80342fedadd80eb60e /wqflask/maintenance/dataset
parent866305ffa728cb6e90f16015b0b881ba6cb0362e (diff)
downloadgenenetwork2-562e7ba9b6b5a051da1a9f0a046f39f480998be8.tar.gz
On branch master
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