diff options
author | root | 2014-02-19 14:19:19 -0600 |
---|---|---|
committer | root | 2014-02-19 14:19:19 -0600 |
commit | b91219e4180173a96dd7535e40db8d788a60db77 (patch) | |
tree | 9863a9535f385f14e3b10fd65d6c9b8afe3ec4ac /wqflask | |
parent | ee6ce155a4816bf937e7a4facb622d5f17fd394f (diff) | |
download | genenetwork2-b91219e4180173a96dd7535e40db8d788a60db77.tar.gz |
Committer: root <root@alexandria.uthsc.edu>
On branch master
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/maintenance/dataset/load_phenotypes.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/wqflask/maintenance/dataset/load_phenotypes.py b/wqflask/maintenance/dataset/load_phenotypes.py index 274b8593..e5a85b32 100644 --- a/wqflask/maintenance/dataset/load_phenotypes.py +++ b/wqflask/maintenance/dataset/load_phenotypes.py @@ -4,22 +4,25 @@ import csv import utilities def main(argv): - # + # config config = utilities.get_config(argv[1]) print "config:" for item in config.items('config'): print "\t%s" % (str(item)) # + inbredsetid = config.get('config', 'inbredsetid') + print "inbredsetid: %s" % inbredsetid + # datafile datafile = open(config.get('config', 'datafile'), 'r') phenotypedata = csv.reader(datafile, delimiter='\t', quotechar='"') - for row in phenotypedata: - #print row - pass - # + phenotypedata_head = phenotypedata.next() + print "phenotypedata head:\n\t%s" % phenotypedata_head + # metafile metafile = open(config.get('config', 'metafile'), 'r') phenotypemeta = csv.reader(metafile, delimiter='\t', quotechar='"') - for row in phenotypemeta: - print row[1] + phenotypemeta_head = phenotypemeta.next() + print "phenotypemeta head:\n\t%s" % phenotypemeta_head + # if __name__ == "__main__": print "command line arguments:\n\t%s" % sys.argv |